NSSwitch settings on 5.4

Uwe Laverenz uwe at laverenz.de
Tue May 17 07:34:43 PDT 2005


On Mon, May 16, 2005 at 09:18:09AM +0930, Ian Moore wrote:

> passwd: files ldap
> group: files ldap

This is correct and sufficient for local files + ldap.

> On my 5.4-Release system, the default nsswitch.conf is:

AFAIK there never  was a "default" nsswitch.conf in FreeBSD 5.4, I always
had to create a new one from scratch.

> group: compat
> group_compat: nis
> hosts: files dns
> networks: files
> passwd: compat
> passwd_compat: nis
> shells: files

Nope, delete this.

> Using the 'compat ldap' version, I get errors in /var/log/messages:
>   May 13 22:42:26 daemon -csh: NSSWITCH(nsparser): /etc/nsswitch.conf  line 1:
>   'compat' used with other sources
>   May 13 22:42:26 daemon -csh: NSSWITCH(nsparser): /etc/nsswitch.conf  line 5:
>   'compat' used with other sources

man nsswitch.conf

cu,
Uwe


More information about the freebsd-questions mailing list