[Samba] Why would nsswitch.conf be needed at all ?

Gerald (Jerry) Carter jerry at samba.org
Thu Jan 20 16:15:16 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Frederic Olivie wrote:

| I'm not sure I agree. Samba is a unix process which needs
| to know about a username/uid mapping. As it gets this
| information internally via winbind, I just don't understand
| why it has to make sure the mapping is also recognized
| by the system.
|
| The only real use I see of the nsswitch.conf is to
| allow any other non samba software to get access to
| this mapping (/bin/ls as a simple example).
|
| So, why would samba ever need to control that the
| system is able to do this mapping when everything
| happens internally (sending a job to cups is certainly
| not a case in which a usernam/uid mapping is usefull.
| It would only be if one chooses to use lprm from
| a shell under one of the domain users) ?

The design philosophy makes the code path cleaner if you use
NSS.  This way you don't have one code path when winbindd
is present and one when it is not.  Granted it is not a clean
in practice as I make is sound but it is much cleaner.

And unless you are running on an appliance type box,
most people would prefer to see user and group names
when they run 'ls -l' so you end up needing NSS anyways.





cheers, jerry
=====================================================================
Alleviating the pain of Windows(tm)      ------- http://www.samba.org
GnuPG Key                ----- http://www.plainjoe.org/gpg_public.asc
"I never saved anything for the swim back."     Ethan Hawk in Gattaca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB79kUIR7qMdg1EfYRApbsAKCph9XNSuVtu3TqtYe1IWehvYY8kQCeOf/+
E903LPGl4Dxk9ukXRPlO+fo=
=aYYv
-----END PGP SIGNATURE-----


More information about the samba mailing list