[krbdev.mit.edu #5784] need krb5_set_config_files on windows

sharma via RT rt-comment at krbdev.mit.edu
Tue Oct 9 19:26:21 EDT 2007


Hi

Actually I am looking for krb5_init_context_with_config_files like
functionality. If krb5.conf or krb5.ini files are available in my
application's private directory, I would like to use these files for
Kerberos context initialization.

Last month I was looking into Kerberos source code to implement the
functionality discussed above. I used krb5_init_context followed by
krb5_set_config_files calls that only works on UNIX systems. There are some
problems on Windows system like krb5_set_config_files API is not exported
and even after exporting this API manually, the krb5_init_context always
needs krb5.ini file in C:\WINDOWS directory.

I would appreciate if krb5_init_context_with_config_files functionality can
be provided in next Kerberos release.

I have few more questions [Kerberos compilations, some memory leaks, static
and dynamic library compilation], let me know whether I can discuss with you
or create bug reports.

Thanks

SAM SHARMA

-----Original Message-----
From: RT User,,,, [mailto:rt at MIT.EDU] On Behalf Of Ken Raeburn via RT
Sent: Tuesday, October 09, 2007 2:12 PM
To: sam.sharma at gat.com
Subject: [krbdev.mit.edu #5784] need krb5_set_config_files on windows

[sam.sharma at gat.com - Thu Sep 27 23:04:32 2007]:

> The krb5_set_config_files api is not exported into krb5_32.dll on windows
> platforms. In my application I need to use this api to point a different
> krb5.ini file location after calling krb5_init_context().

I'm actually looking at whether we can get rid of krb5_set_config_files.  We
mark it private in the 
headers in the current releases, it's not even in the installed header in
our development version, 
and as you've noticed, we don't export it on Windows.  If you need that
functionality, could you 
explain why, and whether something like a
krb5_init_context_with_config_files might be better?

This would be a discussion better had on the krbdev at mit list, I think...






More information about the krb5-bugs mailing list