免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2287 | 回复: 1
打印 上一主题 下一主题

[samba] samba加入AD域 [复制链接]

论坛徽章:
2
IT运维版块每日发帖之星
日期:2015-07-13 23:10:20IT运维版块每日发帖之星
日期:2015-07-30 09:40:01
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-07-24 20:07 |只看该作者 |倒序浏览
我用samba加入AD域之后执行getent passwd和getent group都获取不到AD域账户的映射信息?这是什么情况?求解答
[root@samba-test ~]# wbinfo -t
checking the trust secret for domain RUICHI via RPC calls succeeded
[root@samba-test ~]# wbinfo -u
administrator
guest
krbtgt
zhangsan
lisi
wangwu
[root@samba-test ~]# wbinfo -g
domain computers
domain controllers
schema admins
enterprise admins
cert publishers
domain admins
domain users
domain guests
group policy creator owners
ras and ias servers
allowed rodc password replication group
denied rodc password replication group
read-only domain controllers
enterprise read-only domain controllers
dnsadmins
dnsupdateproxy
ruichi
[root@samba-test ~]#

NSS配置:
passwd:     files winbind
shadow:     files
group:      files winbind

smb.conf配置:

[global]
workgroup = RUICHI
netbios name = samba-test
security = ads
realm = RUICHI.COM
log file = /var/log/samba/log.%m
max log size = 50
dedicated keytab file = /etc/krb5.keytab
kerberos method = secrets and keytab

idmap config *:backend = tdb
idmap config *:range = 2000-9999
idmap config RUICHI:backend = ad
idmap config RUICHI:schema_mode = rfc2307
idmap config RUICHI:range = 10000-99999

winbind nss info = rfc2307
winbind trusted domains only = no
winbind use default domain = yes
winbind enum users = yes
winbind enum groups = yes
winbind refresh tickets = yes

vfs objects = acl_xattr
nt acl support = yes
map acl inherit = yes
store dos attributes = yes


执行getent passwd和getent group的时候获取不到映射账户的信息,求各位大神解答

论坛徽章:
0
2 [报告]
发表于 2015-10-23 10:45 |只看该作者
我的情况跟你类似,getent passwd有用户信息的,但getent group却没有组信息,真是奇怪,查不出问题在哪
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP