Received: from gaws12.sd.gat.com (gaws12.sd.gat.com [141.248.128.112]) by krbdev.mit.edu (8.12.9) with ESMTP id l99NQGHW008153; Tue, 9 Oct 2007 19:26:16 -0400 (EDT) Received: from p125235 ([141.248.125.235]) by gat.com (PMDF V6.1-1X6 #31440) with ESMTP id <0JPO03PNV3RMI9@gat.com> for rt-comment@krbdev.mit.edu; Tue, 09 Oct 2007 16:26:10 -0700 (PDT) Date: Tue, 09 Oct 2007 16:26:06 -0700 From: sam sharma Subject: RE: [krbdev.mit.edu #5784] need krb5_set_config_files on windows In-Reply-To: To: rt-comment@krbdev.mit.edu CC: "'Constantin Scheder'" Reply-To: sam.sharma@gat.com Message-ID: Organization: Nirvana, A Division Of General Atomics MIME-Version: 1.0 X-Mimeole: Produced By Microsoft MimeOLE V6.00.3790.4073 X-Mailer: Microsoft Outlook, Build 10.0.6822 Content-Type: text/plain; charset=us-ascii Importance: Normal X-Priority: 3 (Normal) X-Msmail-Priority: Normal Thread-Index: AcgKuP8WclV45BZ0RS6aZGSKR0heuAAD5wfQ Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by krbdev.mit.edu id l99NQGHW008153 RT-Send-Cc: X-RT-Original-Encoding: us-ascii Content-Length: 1920 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@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...