I have a problem about nsswitch.conf

Allen Chen achen at harbourfrontcentre.com
Wed Sep 28 13:47:37 UTC 2005


×ó³ÌÁ¢ wrote:

>Hello,everybody,
>
> 
>
>         I have configed LDAP Server on RedhatAS4, and config Redhat9 as a
>LDAP Client.
>
>         And I config /etc/pam.d/sshd use ldap, then I can login LDAP client
>via ssh.
>
>         Then I config /etc/nsswitch.conf on LDAP client below:
>
>                  Passwd: ldap files
>
>                   Shadow: ldap files
>
>                   Group: ldap files
>
> 
>
>         And then for test:
>
>         I new add a account ¡®test¡¯ that just exist LDAP database. Uid is
>1003
>
>         
>
>         [zuochengli at ldapserver.corp.ebj home]$ touch /tmp/test
>
>         [zuochengli at ldapserver.corp.ebj home]$ sudo chown 1003 /tmp/test
>
>         [zuochengli at ldapserver.corp.ebj home]$ ls ¨Cl /tmp/test
>
>         -rw-rw-r--    1  1003     zuochengli        0 Sep 26 21:21
>/tmp/test
>
>         
>
>         Client don¡¯t find information via LDAP Server.
>
>         
>
>         What I need to do and then the Client can find information via LDAP
>Sever?
>
>         Any advice?
>
>         Thanks!!!
>
> 
>
> 
>
>MSN:zuochengli at hotmail.com
>Tel:+86-10-58602288-6293
>FAX:+86-10-64315872,64312801
>
>»¶Ó­·ÃÎÊ www.elong.com
>ÒÕÁúÍøÐÅÏ¢¼¼Êõ(±±¾©)ÓÐÏÞ¹«Ë¾
>
>µØÖ·£º±±¾©Êг¯ÑôÇø¾ÆÏÉÇÅÖз10ºÅÐÇ¿Æ´óÏÃB×ùÈý²ã 100021
>
> 
>
>  
>
On your client box redha, try authconfig command and select ldap options.

Use "getent passwd" command, you should get all of the users' information.

Good luck.

Allen Chen.




More information about the redhat-list mailing list