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

Re: accessing the default base dn





--On Freitag, 7. September 2001 23:36 -0500 Dan Gohman <gohmandj@mrs.umn.edu> wrote:

In the C API, ldap_get_option and LDAP_OPT_HOST_NAME provide access to
the host name of the default ldap server. Is there any way to access
the default base dn?

LDAPv3 servers have a namingContext operational attribute in their rootDSE. You should use this to get the (list of) base dn held by the server.


--
Norbert Klasen
DAASI International GmbH                 phone: +49 7071 29 70336
Wilhelmstr. 106                          fax:   +49 7071 29 5114
72074 Tübingen                           email: norbert.klasen@daasi.de
Germany                                  web:   http://www.daasi.de