January 31st, 2010, 01:11 AM
LDAP : cant contact server
New with LDAP , I got it function on ubuntu 9.10 and can manage it with webmin. But do not know why I can't connect with the following :
The answer is :
ldapsearch -D "cn=admin,dc=example,dc=org" -b "dc=example,dc=org" -W
the "-x" option give the same result..
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Actually I can browse the database with webmin, but I can't add an access rule :
And still be able to add an user with the command line :
Failed to save access control rule : Cannot write to directory /etc/ldap/slapd.d
Can someone explain that?
sudo ldapadd -Y EXTERNAL -H ldapi:/// -f pop.ldif SASL/EXTERNAL authentication started SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth SASL SSF: 0 adding new entry "uid=testo,ou=people,dc=example,dc=org"