Article Title: Practical Tips: add the Linux operating system to the domain method. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. Configure DNS
# Vi/etc/resolv. conf
Nameserver 192.168.2.30
Nameserver 192.168.2.32
# Vi/etc/host. conf
# Nslookup 192.168.2.32 DNS Lookup
# Net time SET 192.168.2.32 time synchronization. The client uses the server time as the standard.
2. samba
First, make sure that the samba package is installed in Linux and run the following command to check the basic library support of the samba package. Generally, the RPM installation will not be faulty.
# Smbd-B | grep LDAP
HAVE_LDAP_H
HAVE_LDAP
HAVE_LDAP_DOMAIN2HOSTLIST
......
# Smbd-B | grep KRB
HAVE_KRB5_H
HAVE_ADDRTYPE_IN_KRB5_ADDRESS
HAVE_KRB5
......
# Smbd-B | grep ADS
WITH_ADS
WITH_ADS
# Smbd-B | grep WINBIND
WITH_WINBIND
WITH_WINBIND
3. krb5 Configuration
Configure/etc/krb5.conf. After the configuration is complete, run
# Kinit administrator@HXBANK.COM
4. Samba Configuration
Edit/etc/samba/smb. conf and restart the samba service.
# Service samba restart
# Net ads join-U administrator@HXBANK.COM to join the domain, then you need to enter the domain administrator password
5. winbind Configuration
Edit/etc/nsswitch. conf and change passwd and group to (files depends on whether your linux system configures NIS. If you configure NIS, compat is used)
Passwd: files winbind
Group: files winbind
Save and restart the samba service. (Re) Start winbind.
Use wbinfo-u to search users and wbinfo-g to test whether winbind is normal.