Hii
I am uisng Openldap-2.4.7 on fedora core 7... i hav configured my slapd.conf file n ldap.conf file...
n started the server using the comand /usr/local/libexec/slapd
n wen i try to perform any client operation for ex...
ldapsearch -x -b ' ' -s base '(objectclass=*)' namingContexts
i get the following error..
Ldap_sasl_bind (simple) :can't connect to the server (-1)...
Plz help ASAP
Thanks and Regards Divya
--------------------------------- Meet people who discuss and share your passions. Join them now.
divya shree writes:
/usr/local/libexec/slapd (...) ldapsearch -x -b ' ' -s base '(objectclass=*)' namingContexts (...) Ldap_sasl_bind (simple) :can't connect to the server (-1)...
Either slapd could not start (check if it is still running) or /etc/(open)ldap/ldap.conf does not contain an URI or HOST line with the correct server address. For the latter see man ldap.conf, or ldapsearch parameteres -h localhost or something.
Also note that ' ' is not a valid DN, use -b ''.
openldap-technical@openldap.org