Subject: overriding the shell with nss_ldap
To: None <netbsd-help@netbsd.org>
From: Thierry Lacoste <th.lacoste@wanadoo.fr>
List: netbsd-help
Date: 06/17/2006 17:23:36
I'm running an ssh server which is a NIS client.
In order to restrict the access I added
+:::::::::/usr/pkg/bin/scponly at the end of /etc/master.passwd.
Now I'd like to replace NIS with OpenLDAP.
Everything is OK with databases/nss_ldap and security/pam-ldap
except that I can't figure out how to locally override the shell.
I copied /usr/pkg/share/examples/nss_ldap/nsswitch.ldap
to /etc/nsswitch.conf. Here's an excerpt:
# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
passwd: files ldap
group: files ldap
The above comment doesn't sound good.
Any suggestion?
Regards,
Thierry.