[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Accessing LDAP attributes inside slapd

>>>>> "Mark" == Mark Adamson <adamson@andrew.cmu.edu> writes:

> Ganesan
> Look at the connection_internal_open() function in
> servers/slapd/connection.c.  I needed to do something similar to what you
> are doing when I was working on the SASL authorization code.

Thanks. This looks like exactly what I need. I was wondering yesterday how
SASL integration with secrets in the database will go about doing this and
you already gave me the answer :-).

> The *conn and *ldp are filled in with the Connection info you need for
> backend searches and an *LDAP handle to use for reading back the search
> results with the clientside LDAP libraries. Parameter *id is the NDN that
> you want to claim to be on the "client" end of the connection.

I am looking at your code in slapd/saslauthz.c to understand how to do

>   Be sure to call connection_internal_close() when you're done.

Will do. Thanks again.