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

Could not create LDAP session handle (3): Time limit exceeded

I'm having trouble using the URI style of specification for ldap searches.

In short, I have an ldap search that I can execute successfully either: But when I try to translate this to the URI style it fails with
"Could not create LDAP session handle (3): Time limit exceeded".
This happens both with: I have read RFC2255 but maybe I'm just getting the URI construction wrong still.

More detail ....

This search succeeds:
ldapsearch -v -x -h tester2 -D "cn=Manager,dc=infoeng,dc=flinders,dc=edu,dc=au" -W -b ou=diskquotas,dc=infoeng,dc=flinders,dc=edu,dc=au

So does this one (server specification moved from -h to -H):
ldapsearch -v -x -D "cn=Manager,dc=infoeng,dc=flinders,dc=edu,dc=au" -W -H "ldap://tester2" -b ou=diskquotas,dc=infoeng,dc=flinders,dc=edu,dc=au

But when I try to put the search base into the -H URI argument, ...
ldapsearch -v -x -D "cn=Manager,dc=infoeng,dc=flinders,dc=edu,dc=au" -W -H "ldap://tester2/ou=diskquotas,dc=infoeng,dc=flinders,dc=edu,dc=au"

it fails with the message:
ldap_initialize( ldap://tester2/ou=diskquotas,dc=infoeng,dc=flinders,dc=edu,dc=au )
Could not create LDAP session handle (3): Time limit exceeded

And by the way, it appears to fail immediately - there's not much timeouting happening, and I'm not seeing any activity in slapd's syslog output.

I get similar results from ldap_initialize() in my C code, but ldap_init() manages just fine (not using the URI format, that is).

I am using OpenLDAP 2.1.21  Is it possible that this is the problem?  I think it's more likely that I'm just doing something incorrectly with the URI format.  I would be much obliged if somebody could point out my error.