Samba Winbind2015/01/19 |
Join in Windows Active Directory Domain with Samba Winbind.
This tutorial needs Windows Active Directory Domain Service in your LAN.
This example shows to configure on the environment below.
Domain Server : Windows Server 2008 R2 Domain Name : E-FD3S0 Realm : E-FD3S.SRV.WORLD Hostname : e-fd3s.srv.world
|
|
[1] | Install Winbind. |
[root@lan ~]# yum -y install samba3x-winbind pam_krb5 krb5-libs
|
[2] | Configure Winbind. |
[root@lan ~]#
vi /etc/sysconfig/network-scripts/ifcfg-eth0 # change DNS setting to AD's one DNS1= 10.0.0.150
[root@lan ~]#
[root@lan ~]# /etc/rc.d/init.d/network restart
authconfig \ --enablekrb5 \ --krb5kdc=e-fd3s.srv.world \ --krb5adminserver=e-fd3s.srv.world \ --krb5realm=E-FD3S.SRV.WORLD \ --enablewinbind \ --enablewinbindauth \ --smbsecurity=ads \ --smbrealm=E-FD3S.SRV.WORLD \ --smbservers=e-fd3s.srv.world \ --smbworkgroup=E-FD3S0 \ --winbindtemplatehomedir=/home/%U \ --winbindtemplateshell=/bin/bash \ --enablemkhomedir \ --enablewinbindusedefaultdomain \ --update Shutting down Winbind services: [FAILED] Starting Winbind services: [ OK ] |
[3] | Join in Windows Active Directory Domain. |
# join in Active Directory ( net ads join -U [AD's admin user]) [root@lan ~]# net ads join -U Serverworld Enter Administrator's password: Using short domain name -- E-FD3S0 Joined 'LAN' to dns domain 'e-fd3s.srv.world' DNS update failed!
[root@lan ~]#
/etc/rc.d/init.d/winbind start Starting Winbind services: [ OK ] [root@lan ~]# chkconfig winbind on # display Active Directory users list [root@lan ~]# wbinfo -u administrator guest serverworld krbtgt # switch to a user in Active Directory [root@lan ~]# su - serverworld Creating directory '/home/serverworld'. [serverworld@lan ~]$ |
Sponsored Link |
|