logo       

Re: Unable to get information from a non local host LDAP server: msg#00033

ldap.padl.nss

Subject: Re: Unable to get information from a non local host LDAP server

Erling (sent by Nabble.com) wrote:
I have some problems getting nss_ldap to work. When I type "getent passwd" on
the client I get the following error in the syslog:

Mar 28 14:30:30 localhost getent: nss_ldap: could not connect to any LDAP
server as (null) - Can't contact LDAP server

The setup works when I use a openldap server running on the same host, but
not when I try to use slapd from a different host.

Is it possible to increase the amount of logging information from nss_ldap?
Other debugging tips? I can query the remote ldap server with ldapsearch
from the client so I think the server is okay.


--
View this message in context:
http://www.nabble.com/Unable-to-get-information-from-a-non-local-host-LDAP-server-t1355423.html#a3628860
Sent from the NSS LDAP forum at Nabble.com.

Did you setup nss_ldap's configuration file? It seems that it still contains "localhost" as ldap server (the default). You don't say which OS/Distro you are working with, but usually ldapsearch and nss_ldap use different config files. On Linux you can use "strace -e trace=file getent passwd" to see which config files nss_ldap is trying to open.

HTH
Heinrich




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise