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

can not use uri

i try tu use ldap_initialize() with uri it always fails

so i try with ldapsearch, and it is the same
* with -H option => it does not work
example: ldapsearch -H "ldap:///dc=ordilibre,dc=org"; -x
Could not create LDAP session handle (3): Time limit exceeded

* with -b option => it works
example: ldapsearch -b "dc=ordilibre,dc=org" -x
# extended LDIF
# LDAPv3
# base <dc=ordilibre,dc=org> with scope sub
# filter: (objectclass=*)
# requesting: ALL

# ordilibre.org
dn: dc=ordilibre,dc=org
objectClass: top
objectClass: dcObject
objectClass: organization
o: nana
dc: ordilibre

# admin, ordilibre.org
dn: cn=admin,dc=ordilibre,dc=org
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator

# search result
search: 2
result: 0 Success

thanks sylvain