- 要将主机加入Active Directory(AD),请输入:
#net ads加入-U administrator
输入管理员密码:Passw0rd
使用短域名 - SAMDOM
加入'M1'到dns域'samdom.example.com'
#net rpc join -U administrator
输入管理员密码:Passw0rd
加入域SAMDOM。
RPC模式是NT4域。
ADS模式是活动目录。
原文地址:https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Domain_Member#Resolving_SRV_Records
- To join the host to an Active Directory (AD), enter:
# net ads join -U administrator
Enter administrator's password: Passw0rd
Using short domain name -- SAMDOM
Joined 'M1' to dns domain 'samdom.example.com'
- To join the host to an NT4 domain, enter:
# net rpc join -U administrator
Enter administrator's password: Passw0rd
Joined domain SAMDOM.