[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: PAM Authentication
- To: openldap-technical@openldap.org
- Subject: Re: PAM Authentication
- From: Miha Krajnc <miha.krajnc.mb@gmail.com>
- Date: Fri, 14 May 2010 13:08:48 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=fz0bheRHNQZC3AI7xVoFg6b9PZAardHuf2Xu+PXXolo=; b=ZHniipNwXgx5lz1W2+eRA2DDgXv6ZTDDtZWD+IZHFl26rXq1FOK/lBRglBpDmL6UUr 9io/2RLn6nRVn/QJahni9Tk+hY7SmCop0eHeyfpB7injA8qvSOA1JKGyBBM8wf7tAGCM qghOACd5p8axRdOZTYx9J+G2dpBOfvP2Tr4I8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=H1lkHOfiYeRHX/XyRpZblrWZpNaLPISDKIBMnuZ8LcqeF6XBKc4hAOATXhA6y/eqdT puLpX9jlUGrshFRE/5bT5li/iPRsWOXWmH2ZoW3lnNqTP1EPz6ntZgQpww5m2SIAOMuJ nMzVXNkaLkwtX6iqrxGEXvKb1dKDLrLdYFeH4=
- In-reply-to: <AANLkTik-bYn4ffwrOw8_8EVrPjHRgy-UFzTMkx3Ox_pj@mail.gmail.com>
- References: <AANLkTik-bYn4ffwrOw8_8EVrPjHRgy-UFzTMkx3Ox_pj@mail.gmail.com>
Ok, i found out what it is, really dumb mistake, there are three slashes in the address (ldap:///192.168.1.107:389/).�This�can confuze most people, since when you are asked to put in the address of the ldap server, three are three slashes ("ldapi:///")
2010/5/11 Miha Krajnc
<miha.krajnc.mb@gmail.com>
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.
--
Lep pozdrav, Miha Krajnc.