[18865] in Kerberos_V5_Development
any hidden dependency for krb5_context?
daemon@ATHENA.MIT.EDU (Bin Lu)
Mon Jun 16 18:57:13 2014
From: Bin Lu <blu@paloaltonetworks.com>
To: "krbdev@mit.edu" <krbdev@mit.edu>
Date: Mon, 16 Jun 2014 22:57:00 +0000
Message-ID: <841A051D8BD4144AA7B5AC63D97F9F05B25BAC@sjccmbxpw01p.paloaltonetworks.local>
Content-Language: en-US
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu
Hi,
I am doing something like this:
Initialize several krb5_context in one thread and put it in a global (pool) structure, then other threads get krb5_context from the pool and do the real work.
I noticed that the krb5_context objects work fine in the thread where they are initialized, but when they are used in other threads, they don't (error code: KRB5_REALM_CANT_RESOLVE). I thought the realm should have been resolved during krb5_init_context() from env("KRB5_CONFIG"). so my question is does a krb5_context object rely on any hidden settings ?
Thanks,
-binlu
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev