You are not logged in.
Arch is boring because everything runs too smooth . So for a challenge, I tried to set up an LDAP server and I can't getting it to work. I even have a book in front of me!!
I keep getting this error: ldap_result: Can't contact LDAP server (-1)
This is my query: ldapsearch -x '(objectclass=*)' -W -D "cn=admin, dc=example, dc=com"
This is my slapd.conf:
include /etc/openldap/schema/core.schema
pidfile /var/run/slapd.pid
argsfile /var/run/slapd.args
access to *
by self write
by users read
by anonymous auth
database bdb
suffix "dc=exemple,dc=com"
rootdn "cn=admin,dc=exemple,dc=com"
rootpw secret
directory /var/lib/openldap/openldap-data
index objectClass eq
And this is my ldap.conf:
BASE dc=exemple,dc=com
URI ldap://localhost
nmap localhost shows : 389/tcp open ldap so I guess the server is running
Can someone give me some hint??
-------------------------------------
EDIT:
hosts.allow damn it.
slapd:ALL:ALLOW.
I did not see any mention whatsoever in Mastering OpenLDAP book from Packt Publishing
Last edited by marxav (2007-09-30 22:46:47)
Offline