nss_ldap: could not search LDAP server - Server is unavailable

Status
Not open for further replies.
Joined
Feb 21, 2012
Messages
4
Hi,
I have installed Freenas 8.0.3 p1.
I have configured LDAP and CIFS that work correctly on a ZFS share.
I am trying using LDAP to authenticate users for SSH service.
Users can login with ssh but the enviroment is not properly setted with LDAP attributes.
Normal users can not read the information on LDAP with getent passwd or getent group (root can do it without problems)
As normal user when I try to execute a command like whoami, getent or csh, on freenas log I see this error: "nss_ldap: could not search LDAP server - Server is unavailable"
Searching on the web it seems to be a pam problem but I not sure

LDAP Auxiliary Parameters configuration:

ldap_version 3
timelimit 30
bind_timelimit 30
bind_policy soft
pam_ldap_attribute uid
pam_member_attribute memberuid

thanks for the help
 

mmx

Cadet
Joined
Sep 16, 2011
Messages
4
Solved

I got the error too and I found a work around.

Te nss_ldap module doesn't use the credentials already entered into the LDAP UI, so you have to add it into the auxiliary parameters like this . . .

binddn cn=admin,dc=yourdomain,dc=co
bindpw ******yyyyybbbbb

Cheers.

MMX
 
Status
Not open for further replies.
Top