« Return to Thread: gdm[7355]: pam_ldap: ldap_simple_bind Can't contact LDAP server

gdm[7355]: pam_ldap: ldap_simple_bind Can't contact LDAP server

by pj_kejti :: Rate this Message:

Reply to Author | View in Thread

Hi,

I'm having problems trying to authenticate over ldap. I have my server running on port 389, when I try ldapsearch on hosts it works, when I try to connect through ssh with ldap accounts it works, but when I try to login on clients - I can't. /var/log/syslog shows "gdm[7355]: pam_ldap: ldap_simple_bind Can't contact LDAP server". I feel like I've tried everything, but with no results... If anyone could help me, I'd apprecieate it. Here are my conf files:

# /etc/nsswitch.conf

passwd:         files ldap
group:          files ldap
shadow:         files ldap

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

#/etc/pam_ldap.conf

pam_filter !(uidNumber=0)
base dc=dc=xxx,dc=xxx
uri ldap://127.0.0.1/
ldap_version 3
rootbinddn cn=admin,dc=xxx,dc=xxx
pam_password md5

# /etc/libnss-ldap.conf

host 127.0.0.1
base dc=xxx,dc=xxx
uri ldap://127.0.0.1/
ldap_version 3
rootbinddn cn=admin,dc=xxx,dc=xxx

and files from /etc/pam.d
# /etc/pam.d/common-account - authorization settings common to all services

account sufficient pam_ldap.so
account required pam_unix.so try_first_pass


# /etc/pam.d/common-auth - authentication settings common to all services

auth sufficient pam_ldap.so
auth required pam_unix.so nullok_secure try_first_pass


# /etc/pam.d/common-password - password-related modules common to all services

password sufficient pam_ldap.so
password required pam_unix.so nullok obscure min=4 max=8 md5 try_first_pass


# /etc/pam.d/common-session - session-related modules common to all services

session required pam_unix.so
session required        pam_mkhomedir.so skel=/etc/skel umask=0022

Those are server files - do I have to change those same files on clients?

Thanks for any help

 « Return to Thread: gdm[7355]: pam_ldap: ldap_simple_bind Can't contact LDAP server