I'm trying to get an LDAP server up and running, nut I'm having some trouble accessing it from "the outside world". Everything seems to work locally (I can add stuff, search it, it returns results etc). Only when I try to do this from another computer, it keeps saying:
ldap_bind: Can't contact LDAP server (-1)
I changed my ldap.conf to include my host, my netstat seems to be fine:
tcp 0 0 0.0.0.0:389 0.0.0.0:* LISTEN
tcp 0 0 :::389 :::* LISTEN
I use this command to search:
ldapsearch -h correct.hostname -D -v "cn=Manager,dc=example" -x -W -b "dc=example" mail
In my hosts.allow I added slapd: ALL and ldap: ALL. Still, it refuses to connect. Who can help me?