Ubuntu 8.04 - LDAP - Question about nsswitch.conf
I have been trying to get LDAP 2.4 working on ubuntu 8.04. I have checked a couple of sites to find out the best practice for accomplishing this task. I have also followed the direction for setting up nsswitch and pam to use ldap. ( this includes libpam-ldap, libnss-db libnss-ldap nss-updatedb) It appears that I have gotten it working because I checked the log files which says that the server is starting, i check netstat and it appears that the service is listening for request on the expected port. But, there is something that I have a question on. To explain we will first look at my /etc/nsswitc.conf file.
example of my /etc/nsswitch.conf
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: files ldap
group: files ldap
shadow: files ldap
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 ldap
networks: ldap files
protocols: ldap db files
services: ldap db files
ethers: ldap db files
rpc: ldap db files
Now everything works fine with this set up. from my understanding it is because account information is either looked up on file (/etc/passwd) or on ldap database accessed on the server. but if i remove the file from passwd: entry so that passwd entry look this passwd: ldap instead of passwd: file ldap. I am unable to authenticate.
My question is " Did I set up LDAP (client or server) incorrectly? " or " Is there just something that I am missing out on?"
Thx in advance