LinuxSir.cn,穿越时空的Linuxsir!

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

samba出错

[复制链接]
发表于 2006-5-18 10:52:29 | 显示全部楼层 |阅读模式
调来调去,samba也没法正常工作……

现在出现这个了:

smbpasswd -a xxx
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!
fetch_ldap_pw: neither ldap secret retrieved!
ldap_connect_system: Failed to retrieve password from secrets.tdb
Connection to LDAP server failed for the 2 try!
fetch_ldap_pw: neither ldap secret retrieved!
ldap_connect_system: Failed to retrieve password from secrets.tdb
Connection to LDAP server failed for the 3 try!
fetch_ldap_pw: neither ldap secret retrieved!
ldap_connect_system: Failed to retrieve password from secrets.tdb
Connection to LDAP server failed for the 4 try!

哪位朋友知道该如何解决吗?谢谢!

我的smb.conf

[global]

   workgroup = xxx

  netbios name = xxx

   server string = Samba Server %v

   printcap name = cups
   load printers = yes

   printing = cups

   printer admin = @adm

   log file = /var/log/samba/log.%m

   max log size = 50

   hosts allow = 192.168.0. 127.

  map to guest = bad user

   security = user

  encrypt passwords = yes

   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

   domain logons = no

   dns proxy = no



#============================ Share Definitions ==============================
[homes]
   comment = Home Directories
   browseable = no
   writable = yes

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
# to allow user 'guest account' to print.
   guest ok = yes
   writable = no
   printable = yes
   create mode = 0700
# =====================================
# print command: see above for details.
# =====================================
   print command = lpr-cups -P %p -o raw %s -r   # using client side printer drivers.

[print$]
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   write list = @adm root
   guest ok = yes



[public]
   comment = public
   path = /var/public
   valid users = xxx
   public = no
   writable = yes
   printable = no
发表于 2006-5-18 15:33:23 | 显示全部楼层
用LDAP?
如果就10来20人用的,不用搞到ldap那么复杂吧?
回复 支持 反对

使用道具 举报

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

本版积分规则

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