LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   nss_ldap doesn't work!! (https://www.linuxquestions.org/questions/linux-software-2/nss_ldap-doesnt-work-460287/)

mundacho 07-02-2006 10:58 AM

nss_ldap doesn't work!!
 
hello,

I've just installed openldap to make my mandrake system to log me in via ldap.
I've configured the server and everything works fine, i've migrated my passwd, group and host database to the server, then changed the nsswitch.conf file to consult ldap and then configured the /etc/ldap.conf file to acces the directory.

when I make

Code:

cusipsrv $ getent passwd
i get only the /etc/passwd file content. it seems that the libraries are not able to contact the server (which is working).
how could i get some information from the libraries (I mean nss_ldap.so)?? if there is an error with them they should write it somewhere, isn't it??
could someone help? thanks in advance,

mundacho

acid_kewpie 07-02-2006 04:32 PM

i've been having similar frustrations with this myself recently. how are you doing with the ldapsearch tool? that's always the first step to manually suck some data out on demand. only then should you worry about the integration to the system. You've not mentioned anything about the ldap server in question. I was using an AD 2003 backend and my lack of "getent passwd" details was down to the fact that is was not obtaining a uid or a gid for any users, and as such it's ignored all the data. I struggled a lot to find any way to debug the scenario, but using ethereal was a massive boost, as it can easily decode plaintext LDAP queries, so you can see directly wether the data was recieved by the box or not, any error codes from the server etc... hope this helps you get a litle closer.


All times are GMT -5. The time now is 11:22 PM.