smb.conf 配置
workgroup = test
netbios name = nagois
os level = 33
security = domain
realm = sunny.com
encrypt passwords = yes
password server = 192.168.0.2
allow trusted domains = No
idmap uid = 500-100000000
idmap gid = 500-100000000
template shell = /bin/bash
template homedir = /home/%U
winbind use default domain = Yes
winbind offline logon = true
winbind enum users = No
winbind enum groups = No
winbind nested groups = Yes
winbind separator = /
nsswitch.conf 配置
passwd: files ldap winbind
shadow: files ldap winbind
group: files ldap winbind
加入域
net rpc join -U administrator@sunny.com
启动winbind 服务
/etc/init.d/winbind restart
查看用户和组信息
wbinfo -u
wbinfo -g
转载于:https://blog.51cto.com/mbywin/1537563
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/109756.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...