LDAP usage on 6.6

Giacomo, thanks for your reply.

Your command is working but it’s not solving my problem…
I CAN query the LDAP directory from the nethserver itself, but I CANNOT query from other hosts inside the LAN.

so:

ldapsearch -h localhost -D "cn=libuser,dc=directory,dc=nh" -w $(cat /var/lib/nethserver/secrets/libuser ) -b "ou=People,dc=directory,dc=nh"

is working on the nethserver and is (obviously) failing on any client.

ldapsearch -h 192.168.1.1 -D "cn=libuser,dc=directory,dc=nh" -w $(cat /var/lib/nethserver/secrets/libuser ) -b "ou=People,dc=directory,dc=nh"

is not working at all, even from nethserver. (let’s say 192.168.1.1 is the IP address of the nethserver)
This is the output of the command, if it gives you any clue…

# extended LDIF
#
# LDAPv3
# base <ou=People,dc=directory,dc=nh> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 32 No such object

# numResponses: 1