Re: How can I specify ticket cache for ldap_sasl_interactive_bind_s
Rich Megginson <[email protected]> Wed, 18 Nov 2009 13:50:09 -0700
| Newsgroups | gmane.comp.mozilla.devel.directory |
|---|---|
| Message-ID | <[email protected]> |
Mark wrote:
> Kinit gets a TGT and puts it into a cache. When I do an
> ldap_sasl_interactive_bind_s() to do a SASL bind to the LDAP server,
> how does it know where the cache is (ie file name) to get the TGT and
> eventually save the LDAP ticket? Can I specify the cache for this bind
> and/or session? If so how do I specify it?
>
> I ask because my application may need to support multiple
> 'users' (multiple sets of TGTs and service tickets) at the same time.
> It seems to me that one way to support multiple users would be to put
> the ticket caches in different files or paths. I realize that normally
> the UID is appended to the cache name, but in my case these are not
> real linux users, just users of my application.
man kinit
...
KRB5CCNAME Location of the Kerberos 5 credentials (ticket)
cache.
...
/tmp/krb5cc_[uid] default location of Kerberos 5 credentials
cache
([uid] is the decimal UID of the user).
>
>
> Thanks ahead for the help,
> Mark