[Samba] Samba4 + Winbind
Lukz Ferris
lukz_95 at hotmail.com
Wed Jan 4 12:25:29 UTC 2017
Rowland,
I looked at Samba wiki, but it doesn't helped me as I wanted, maybe I'm doing something wrong.
This is what I tried to do:
yum install pam*
./configure.developer --with-pam
make && make install
ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib64/libnss_winbind.so
ln -s /lib64/libnss_winbind.so /lib64/libnss_winbind.so.2
modified my nsswitch.conf
passwd: files winbind
group: files winbind
shadow: files
my smb.conf:
# Global parameters
[global]
netbios name = DEVLUCAS1
realm = LUCAS.UFES.BR
workgroup = LUCAS
server role = active directory domain controller
winbind use default domain = Yes
winbind cache time = 300
winbind reconnect delay = 30
winbind enum groups = Yes
#winbind use default domain = Yes
template shell = /home/U%
[netlogon]
path = /usr/local/samba/var/locks/sysvol/lucas.ufes.br/scripts
read only = No
[sysvol]
path = /usr/local/samba/var/locks/sysvol
read only = No
ln -s /usr/local/samba/lib/security/pam_winbind.so /lib/security
added in /etc/pam.d/system-auth:
auth sufficient pam_winbind.so
account sufficient pam_winbind.so
session required pam_mkhomedir.so
session required pam_winbind.so
I don't know what to do next, or what I should had to do. I only know that my domain users aren't listed by getent passwd and I can't authenticate them.
Lucas
On Wed, 4 Jan 2017 11:30:43 +0000
Lukz Ferris via samba <samba at lists.samba.org> wrote:
> Hello everyone,
>
>
> I'm trying to use winbind, but my winbind entries aren't listed by
> getent passwd. I searched many tutorials, but all of them was useless
> to me. Anyone know a good tutorial to install and use winbind in
> Centos 6.8?
>
>
>
> Lucas
Have you looked at the Samba wiki ?
https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Domain_Member
Setting up Samba as a Domain Member - SambaWiki<https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Domain_Member>
wiki.samba.org
Introduction. A Samba domain member is a Linux machine joined to a domain that is running Samba and does not provide domain services, such as an NT4 primary domain ...
It might help if you posted the smb.conf you are using.
Rowland
More information about the samba
mailing list