在ubutntu上用Samba配置活動目錄域控制器
阿新 • • 發佈:2018-03-18
視頻 roo div directory tar ati ebo mba onf
本文是對Youtube上的一個視頻做個簡單總結:視頻地址:configure Active Directory Domain Controller With Samba on Ubuntu Server
主要讓我了解如下知識:
1. Linux下可以有活動目錄域控制器
2. Windows 機器可以加入這個域控制器
3. 配置過程記錄:
環境:Active Directory Domain Controller: Ubuntu 14.10 IP:192.168.1.5 255.255.255.0
客戶端:Win7 IP:192.168.1.6 255.255.255.0 192.168.1.1 DNS:192.168.1.5
a. 安裝Ubuntu 14.10
b. 設置root賬戶密碼,並以root賬戶登錄
c. apt -y install samba
d. reboot
e. 配置靜態IP: vi /etc/network/interfaces static address 192.168.1.5 netmask 255.255.255.0 gateway 192.168.1.1
f. rm -rf /etc/samba/smb.conf
g. samba-tool domain provision --use-rfc2307 --interactive
h. 啟動samba 服務 /etc/init.d/samba start
i. 查看下samba啟動了哪些端口:netstat -pult |grep samba
j. 將win7 加入UCST.PS域
在ubutntu上用Samba配置活動目錄域控制器