On 06/11/2014 08:41 AM, Jan Synacek wrote:
Is it intentional? If yes, could you please explain why, or point me to a documentation where I can find the answer?
It's the program's first call to libldap, so libldap needs to initialize itself. I guess it's looking up the default host. I don't think that's documented.
There should be an "initialize libldap" function so you can do it yourself earlier, but for now you can do that with ldap_get_option(), ldap_set_option() or create an LDAP* (with ldap_initialize() etc).