Practical Tips: add the Linux operating system to the domain

Source: Internet
Author: User
Tags net time
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.