LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1699|回复: 8

samba 3.0 无法添加smb用户问题

[复制链接]
发表于 2006-5-4 23:10:15 | 显示全部楼层 |阅读模式
问题是无法添加smb用户
具体的提示如下

[root@linux samba]# smbpasswd -a root
New SMB password:
Retype new SMB password:

fetch_ldap_pw: neither ldap secret retrieved!
ldap_connect_system: Failed to retrieve password from secrets.tdb
Connection to LDAP Server failed for the 1 try!
smbldap_search_suffix: Problem during the LDAP search: (unknown) (Invalid credentials)
fetch_ldap_pw: neither ldap secret retrieved!
ldap_connect_system: Failed to retrieve password from secrets.tdb
Connection to LDAP Server failed for the 1 try!
ldapsam_search_one_group: Problem during the LDAP search: LDAP error: (unknown)
(Invalid credentials)fetch_ldap_pw: neither ldap secret retrieved!
ldap_connect_system: Failed to retrieve password from secrets.tdb
Connection to LDAP Server failed for the 1 try!
smbldap_search_suffix: Problem during the LDAP search: (unknown) (Invalid credentials)
Failed to add entry for user root.
Failed to modify password entry for user root


samba版本samba-3.0.0-1.test.rh90.i386.rpm
系统版本 redhat9.0
smbpasswd已经touch了
是不是需要在smb.conf中配置什么?还是系统少了什么文件?
发表于 2006-5-6 00:34:09 | 显示全部楼层
没有尝试过加root进samba,你试下其他用户
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-6 00:47:22 | 显示全部楼层

信息再详细一点

smb.conf 配置

[global]
workgroup =workgroup
security=user
;  smb passwd file = /etc/samba/smbpasswd   #这句加不加后面的效果一样

[tmp]
   comment = Temporary file space
   path = /tmp
   read only = no
   public = no
   valid =root



[root@linux root]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[tmp]"
Unknown parameter encountered: "valid"
Ignoring unknown parameter "valid"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[root@linux root]# useradd root
useradd: user root exists

[root@linux root]# smbpasswd -a root
New SMB password:
Retype new SMB password:
Mismatch - password unchanged.
Unable to get new password.
[root@linux root]# smbpasswd -a root
New SMB password:
Retype new SMB password:
failed to bind to server with dn=  Error: Can't contact LDAP server
        (unknown)
Connection to LDAP Server failed for the 1 try!
Connection to LDAP Server failed for the 2 try!
Connection to LDAP Server failed for the 3 try!
Connection to LDAP Server failed for the 4 try!
Connection to LDAP Server failed for the 5 try!
.
.
.


大概是什么问题?如何排查?
看testparm好像是有效用户有问题,但是后面添加用户的时候好像又要用LDAP服务?
这个是什么?google了一下好像是网络协议?感觉smbpasswd在security=users级别不需要网络服务阿?


还怀疑是版本问题(因为看名字好像是test版),升级安装3.0.22.文件倚赖有很多.实在找不全
卸载,command line不能成功 gui模式下卸载了,但是装2.2....版说有些文件比原有的旧也不能装.


难道为了一个samba重装系统......

我是菜鸟,大虾帮帮忙....
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-6 01:03:13 | 显示全部楼层
Post by traveller_2
没有尝试过加root进samba,你试下其他用户



显示的是一样的,
1在smb.conf中valid=win
2加入新用户win #useradd
3给win加密码   #passwd win
4将win加入到smb用户中 #smbpasswd -a
结果一样

[root@linux root]# useradd win
[root@linux root]# useradd win
useradd: user win exists
[root@linux root]# passwd win
Changing password for user win.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[root@linux root]# smbpasswd -a win
New SMB password:
Retype new SMB password:
failed to bind to server with dn=  Error: Can't contact LDAP server
        (unknown)
Connection to LDAP Server failed for the 1 try!
Connection to LDAP Server failed for the 2 try!
Connection to LDAP Server failed for the 3 try!
Connection to LDAP Server failed for the 4 try!
^[Connection to LDAP Server failed for the 5 try!

.
回复 支持 反对

使用道具 举报

发表于 2006-5-6 09:57:26 | 显示全部楼层
; smb passwd file = /etc/samba/smbpasswd
这句前的分号应该去掉。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-6 12:57:07 | 显示全部楼层
俺在后面解释了
这句加上,不加上都一样的效果。
这个分号是后来试试屏蔽这句的时候加上的....
未屏蔽没有加分号
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-6 12:57:51 | 显示全部楼层
俺在后面解释了
这句加上,不加上都一样的效果。
这个分号是后来试试屏蔽这句的时候加上的....
回复 支持 反对

使用道具 举报

发表于 2006-5-6 16:19:32 | 显示全部楼层
failed to bind to server with dn= Error: Can't contact LDAP server
(unknown)
Connection to LDAP Server failed for the 1 try!
Connection to LDAP Server failed for the 2 try!
Connection to LDAP Server failed for the 3 try!
Connection to LDAP Server failed for the 4 try!
Connection to LDAP Server failed for the 5 try!

smb.conf其他地方设置有问题。无奈我没见过这情况
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-6 22:18:53 | 显示全部楼层
已经重装了系统...

我把这个smb.conf copy 到新系统中
顺利的加上了用户

现在估计是版本的问题


不过还是期待高手解答上述问题.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表