Skip Menu |
 

Date: Thu, 27 Sep 2007 16:05:19 -0700
From: sam sharma <sam.sharma@gat.com>
Subject: need krb5_set_config_files on windows
To: krb5-bugs@mit.edu

Hi

 

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().

 

Some one please export this api into windows dynamic library in new 1.6.3 release. I think these files need some modification:

 

1. API prototype change in krb5.h and krb5.hin, and init_os_ctx.c header and source files

 

Kerberos 1.6.2: krb5_error_code krb5_set_config_files

 

New: krb5_error_code KRB5_CALLCONV krb5_set_config_files

 

2. Add krb5_set_config_files api export definition in krb_32.def file.

 

Thanks

 

SAM SHARMA

 

 

 

 

 

 

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

Show quoted text
> 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@mit list, I think...
Date: Tue, 09 Oct 2007 16:26:06 -0700
From: sam sharma <sam.sharma@gat.com>
Subject: RE: [krbdev.mit.edu #5784] need krb5_set_config_files on windows
To: rt-comment@krbdev.mit.edu
CC: "'Constantin Scheder'" <constantin.scheder@GA.com>
RT-Send-Cc:
Download (untitled) / with headers
text/plain 1.8KiB
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

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

[sam.sharma@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@mit list, I think...
Date: Tue, 09 Oct 2007 21:25:02 -0600
From: Jeffrey Altman <jaltman@mit.edu>
To: rt@krbdev.mit.edu
Subject: Re: [krbdev.mit.edu #5784] need krb5_set_config_files on windows
RT-Send-Cc:
Download (untitled) / with headers
text/plain 1.1KiB
sharma via RT wrote:
Show quoted text
> 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.

This is not true. The %WinDir% directory is the default directory but
you can specify any directory you want either via the registry or
process environment variables.

Show quoted text
> 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.

On Windows, there is no static compilation option; only dynamic
libraries are supported.