免费注册 查看新帖 |

Chinaunix

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

求助:linux加入域后,域用户访问samba服务提示登陆失败 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-07 20:17 |只看该作者 |倒序浏览
服务都装了,我帖下我的配置文件.
AD server :192.168.10.100   hcq.bazz.local
samba:192.168.10.10      hcq
1、krb5配置
#vi /etc/krb5.conf
[logging]
default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log


[libdefaults]
default_realm = BAZZ.LOCAL
dns_lookup_realm = false
dns_lookup_kdc = false
ticket_lifetime = 24h
forwardable = yes

[realms]
BAZZ.LOCAL = { #
kdc = 192.168.10.100:88 #
admin_server = 192.168.10.100:749 #
default_domain = bazz.local
}

[domain_realm]
.bazz.local= BAZZ.LOCAL
  bazz.local= BAZZ.LOCAL

[kdc]
profile = /var/kerberos/krb5kdc/kdc.conf

[appdefaults]
pam = {
debug = false
ticket_lifetime = 36000
renew_lifetime = 36000
forwardable = true
krb4_convert = false
}

连接AD server
kinit administrator@ BAZZ.LOCAL
密码后一切正常

2、smb.conf配置
#vi /etc/samba/smb.conf
#===================== Global Settings =========================
[global]
        workgroup = BAZZ
        netbios name = hcq
        idmap uid    = 15000-20000
        idmap gid    = 15000-20000
        winbind enum groups = yes
        winbind enum users  = yes
        winbind separator   = /
;       winbind use default domain = yes
        template homedir = /home/%D/%U
        template shell   = /bin/bash
        hosts allow =192.168.10. 127.

# ----------------------- Domain Members Options ------------------------
        security = domain
;       passdb backend = tdbsam
;      realm = BAZZ.LOCAL
        encrypt passwords = yes
        password server = 192.168.10.100

[homes]
   path = /home/%D/%U
   browseable = no
   writable = yes
   valid users = bazz.local/%U
   create mode = 0777
   directory mode = 0777


3、配置nsswitch.conf
#vi /etc/nsswitch.conf
修改以下位置
passwd:     files winbind
shadow:     files
group:      files winbind


4、启动服务,加入AD域
[root@lamp ~]# net rpc join -S hcq.bazz.local -U administrator
Password:
Joined domain BAZZ.
5、验证
[root@lamp ~]# net rpc testjoin
Join to 'BAZZ' is OK


在2003里也可以看到linux的主机名加入到域了,但是我登陆samba用户时输入administrator时提示我登录失败。。。。。。。。。。



请各位前辈帮忙。。

[ 本帖最后由 xllgix718 于 2009-3-7 20:21 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-03-07 21:19 |只看该作者

回复 #1 xllgix718 的帖子

testparm 测试一下samba
ldap的认证可能有问题

论坛徽章:
0
3 [报告]
发表于 2009-03-08 23:29 |只看该作者
把wbinfo -t和wbinfo -u的内容拿来。或者你要用wbinfo -u显示出来的用户名格式登录。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP