| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |
Message-ID: <78c6bd860807081454w6d39aa6bx89e956657e7cb07a@mail.gmail.com> Date: Tue, 8 Jul 2008 17:54:15 -0400 From: "Michael B Allen" <ioplex@gmail.com> To: aditham@yahoo.com In-Reply-To: <e2fe0cfc-80a3-4f71-b74f-0781eed13872@c58g2000hsc.googlegroups.com> MIME-Version: 1.0 Content-Disposition: inline Cc: kerberos@mit.edu Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kerberos-bounces@mit.edu On Tue, Jul 8, 2008 at 11:25 AM, <aditham@yahoo.com> wrote: > I need to initialize multiple krb5_context's in a multi-threaded > program > and each context *must* be initialized from a different config file. > > krb5_init_context() seems to read config from /etc/krb5.conf or the > file > pointed to by KRB5_CONFIG. Setting the environment variable will not > work since > "env"is for the process, not the thread. > > I was wondering if there is a better way to do this, other than > creating a mutex > to set/get the KRB5_CONFIG env variable before each krb5_init_context. Not really. What I did was add a krb5_config_set function to allow setting individual properties and then change the default krb5.conf location to an empty file. I believe Heimdal has such functions (although I don't know if the work was fully completed due to memory management issues). I don't know if MIT has such functions. Mike -- Michael B Allen PHP Active Directory SPNEGO SSO http://www.ioplex.com/ ________________________________________________ Kerberos mailing list Kerberos@mit.edu https://mailman.mit.edu/mailman/listinfo/kerberos
| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |