實用技巧:把Linux作業系統加入到域方法

來源:互聯網
上載者:User

 

1.配置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尋找

# net time SET 192.168.2.32 時間同步,用戶端以伺服器時間為準

2.samba

首先確保Linux系統中安裝了samba包,並用下述命令來檢查samba包的基礎庫支援,一般的RPM安裝都不會有問題。

# 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配置

配置編輯/etc/krb5.conf,配置完成後,執行

# kinit administrator@HXBANK.COM

4.Samba配置

編輯配置/etc/samba/smb.conf後,重啟samba服務

# service samba restart

# net ads join -U administrator@HXBANK.COM 加入域,這時需要輸入欄位管理員密碼

5.winbind配置

編輯/etc/nsswitch.conf,更改passwd和group為(files需視你linux系統配置NIS與否,如配置NIS,則為compat)

passwd: files winbind

group: files winbind

儲存後(重)啟動samba服務。(重)啟動winbind。

用 wbinfo -u檢索使用者,wbinfo -g檢索使用者組來測試winbind是否正常。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.