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

Re: Question about ldap_init()/ldap_initialize() behavior with OpenLDAP



I understand the order, which I have read in the man page that you have mentioned.   What I'm not clear on, and what is not detailed in the respective man page, is whether or not ldap_init()/ldap_initailize() will use ldap.conf or the respective environment variables.


Thanks,
Frank


On Wed, Mar 30, 2016 at 10:37 AM, Dan White <dwhite@cafedemocracy.org> wrote:
On 03/30/16 10:19 -0400, Frank Crow wrote:
I'm not clear on whether I'm allowed to ask "C" API questions here.   If
not, I apologize in advance and please disregard in that case.   However,
the question is more about configuration than coding.

I'm seeing that the ldap_init() function allows the hostname parameter to
be null or a list of hosts.    If it is null, the function attempts to
determine the default ldap host.

How does it determine the default LDAP host when the hostname parameter is
null?   Does it load the list of hosts from the ldap.conf URI parameter?
And/or does it use the LDAPURI environment variable?

The order is detailed in the ldap.conf manpage, within the DESCRIPTION
section.

--
Dan White



--
Frank