[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
PAM Authentication
- To: openldap-technical@openldap.org
- Subject: PAM Authentication
- From: Miha Krajnc <miha.krajnc.mb@gmail.com>
- Date: Tue, 11 May 2010 11:02:18 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=o/NV1okxwMXT6g5ole2vEMWTt6FSzsIsXr8eA1hYogE=; b=IuotCBSD9P9SoNHjMtxAqMpxIwSNMIEoR59Z9ZeM93tEqT/isX1+nPY+y9RuaR2gaC FMl9zrWugPkTvKgoozVE2slnCuLus3PSQKXR3mXIwS2V+3wsYJq8C/ZzWE2DcyW8EGgX M8/E1+m21jlayjER8xHjLo2P6CSJDZJAU9PBA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=Hrr8iNolXNBhEPSRQemZiArYamlR4fwvF19zON/jn3tlfcDMIHXBCIC7T2L907dZgE JA+PyUANQlMVXNVY3yT6y734pf77pdaTaFRM2fMnu6tHe9bUxd7Uh3Xf1aM3VM/zQV5U miGYDpL0Qs7N7LOx6oNmmFtW3EfwjnYMULtLw=
I have set up 2 servers, a web server and a database server. The database server has mysql and OpenLDAP (configured, with 1 Posix user). The web server has apache, php, etc. I want to connect with the web server to the database server with PAM (libpam-ldap) and use creditentials from the database server for user logins. I have set up libpam-ldap, but the authentecation doesnt work. Further investegation (/var/log/auth.log ) shows that the teh web server cant contact the database server. However, i also ha ve phpLDAPadmin installed aon the web server, and i can connect to the database server from there. Anyone know what could be wrong?
Here is the auth.log:
May 11 10:57:33 web sudo: nss_ldap: could not connect to any LDAP server as cn=admin,dc=stef,dc=si - Can't contact LDAP server
May 11 10:57:33 web sudo: nss_ldap: failed to bind to LDAP server ldap:///192.168.1.107:389/: Can't contact LDAP server
May 11 10:57:33 web sudo: nss_ldap: reconnecting to LDAP server...
May 11 10:57:33 web sudo: nss_ldap: could not connect to any LDAP server as cn=admin,dc=stef,dc=si - Can't contact LDAP server
May 11 10:57:33 web sudo: nss_ldap: failed to bind to LDAP server ldap:///192.168.1.107:389/: Can't contact LDAP server
--
Lep pozdrav, Miha Krajnc.