unable to log in using openldap user
Hi,
I need some guidance on setting openldap server and to do
authentication using openldap users.
openldap server: jessie 64-bit
openldap client: jessie 64-bit
ldapsearch test from client to server:
# ldapsearch -h 192.168.191.120 -D cn=admin,dc=test,dc=lab -W -x -b
'dc=test,dc=lab' 'userName=*'
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <dc=test,dc=lab> with scope subtree
# filter: userName=*
# requesting: ALL
#
# search result
search: 2
result: 0 Success
log during log in test with user admin
Feb 3 09:25:33 clt nscd: nss_ldap: could not connect to any LDAP
server as cn=admin,dc=test,dc=lab - Can't contact LDAP server
Feb 3 09:25:33 clt nscd: nss_ldap: failed to bind to LDAP server
ldap:///192.168.191.120: Can't contact LDAP server
Feb 3 09:25:33 clt nscd: nss_ldap: reconnecting to LDAP server...
Feb 3 09:25:33 clt nscd: nss_ldap: could not connect to any LDAP
server as cn=admin,dc=test,dc=lab - Can't contact LDAP server
Feb 3 09:25:33 clt nscd: nss_ldap: failed to bind to LDAP server
ldap:///192.168.191.120: Can't contact LDAP server
Feb 3 09:25:33 clt nscd: nss_ldap: reconnecting to LDAP server
(sleeping 1 seconds)...
Feb 3 09:25:34 clt nscd: nss_ldap: could not connect to any LDAP
server as cn=admin,dc=test,dc=lab - Can't contact LDAP server
Feb 3 09:25:34 clt nscd: nss_ldap: failed to bind to LDAP server
ldap:///192.168.191.120: Can't contact LDAP server
Feb 3 09:25:34 clt nscd: nss_ldap: could not search LDAP server -
Server is unavailable
Feb 3 09:25:34 clt nscd: nss_ldap: could not connect to any LDAP
server as cn=admin,dc=test,dc=lab - Can't contact LDAP server
Feb 3 09:25:34 clt nscd: nss_ldap: failed to bind to LDAP server
ldap:///192.168.191.120: Can't contact LDAP server
Feb 3 09:25:34 clt nscd: nss_ldap: reconnecting to LDAP server...
Feb 3 09:25:34 clt nscd: nss_ldap: could not connect to any LDAP
server as cn=admin,dc=test,dc=lab - Can't contact LDAP server
Feb 3 09:25:34 clt nscd: nss_ldap: failed to bind to LDAP server
ldap:///192.168.191.120: Can't contact LDAP server
Feb 3 09:25:34 clt nscd: nss_ldap: reconnecting to LDAP server
(sleeping 1 seconds)...
Feb 3 09:25:35 clt nscd: nss_ldap: could not connect to any LDAP
server as cn=admin,dc=test,dc=lab - Can't contact LDAP server
Feb 3 09:25:35 clt nscd: nss_ldap: failed to bind to LDAP server
ldap:///192.168.191.120: Can't contact LDAP server
Feb 3 09:25:35 clt nscd: nss_ldap: could not search LDAP server -
Server is unavailable
Feb 3 09:25:36 clt login[2549]: pam_unix(login:auth): check pass; user unknown
Feb 3 09:25:36 clt login[2549]: pam_unix(login:auth): authentication
failure; logname=LOGIN uid=0 euid=0 tty=/dev/tty1 ruser= rhost=
Feb 3 09:25:36 clt login[2549]: pam_ldap: ldap_simple_bind Can't
contact LDAP server
Feb 3 09:25:36 clt login[2549]: pam_ldap: reconnecting to LDAP server...
Feb 3 09:25:36 clt login[2549]: pam_ldap: ldap_simple_bind Can't
contact LDAP server
Feb 3 09:25:40 clt login[2549]: FAILED LOGIN (1) on '/dev/tty1' FOR
'UNKNOWN', Authentication failure
article followed to setup openldap server:
http://www.server-world.info/en/note?os=Debian_8&p=openldap
any help would be appreciated, perhaps there's something really basic
is/are missing
Reply to: