how to enable nss-wrapper in samba 4.3.9
Andreas Schneider
asn at samba.org
Fri Dec 16 07:07:32 UTC 2016
On Friday, 16 December 2016 01:31:11 CET Fengwei wrote:
> Hi all,
> Thanks for your attetion to my question.I have another quetion about the
> samba.
If a user account has got through the LDAP authentication for
> samba,samba will use the function getpwnam() to obtain user information.The
> function getpwnam() is in CNU C Library and the Name Service Switch(NSS)
> configuration file, /etc/nsswitch.conf is used by this function to
> determine the sources from which to obtain name-service information in a
> range of categories, and in what order. I set the /etc/nsswitch.conf file
> as follows: passwd: compat ldap
> group: compat ldap
> shadow: compat ldap
>
> hosts: files dns
> networks: files
>
> protocols: db files
> services: db files
> ethers: db files
> rpc: db files
>
> netgroup: nis
> As a result, if the user account has the same name as in LDAP,samba will get
> the user information from the local file, /etc/passwd. How can samba get
> the user information from ldap but not to change the the order of the
> services in the passwd database?
It can't. Do not use conflicting user names!
Andreas
--
Andreas Schneider GPG-ID: CC014E3D
Samba Team asn at samba.org
www.samba.org
More information about the samba-technical
mailing list