[Samba] Samba nns winbind not working

Marco Gemignani marko.gem at inwind.it
Fri Apr 12 10:53:49 UTC 2019


Hi,

i have a centos7 system, build samba from source usif samba-4.9.6.tar.gz

done provision as ad dc and all working good (i use samba a lot of time 
in past)

than i have problem on domain users/group, system not read them

vi /usr/local/samba/etc/smb.conf
[global]
         dns forwarder = 192.168.0.1
         netbios name = DC
         realm = TECNOGM.LAN
         server role = active directory domain controller
         workgroup = TECNOGM
         idmap_ldb:use rfc2307 = yes
         username map = /usr/local/samba/etc/user.map
         vfs objects = acl_xattr
         map acl inherit = yes
         store dos attributes = yes
         template shell = /bin/bash
         template homedir = /data/%D/users/%U

[netlogon]
         path = /usr/local/samba/var/locks/sysvol/tecnogm.lan/scripts
         read only = No

[sysvol]
         path = /usr/local/samba/var/locks/sysvol
         read only = No
[profiles]
         comment = Windows profiles
         path = /data/%D/profiles
         read only = No

[users]
         comment = Users home directories
         path = /data/%D/users
         read only = No

/usr/local/samba/etc/user.map

!root = TECNOGM\Administrator

net rpc rights grant "TECNOGM\Domain Admins" SeDiskOperatorPrivilege -U 
"TECNOGM\administrator"

vi /etc/pam.d/password-auth

added

auth        sufficient    pam_winbind.so use_first_pass

account     [default=bad success=ok user_unknown=ignore] pam_winbind.so

password    sufficient    pam_winbind.so use_authtok

vi /etc/nsswitch.conf

added winbind to group and password



THE PROBLEM:

the system not read domain users and groups, infact

getent passwd TECNOGM\\test

give no result












More information about the samba mailing list