桑巴Ldap的问题

当我通过smbclient连接samba服务器时,会产生类似的错误

smbclient //192.168.1.56/smbshare -U sakshi Unknown parameter encountered: "ldap machine suffix ou" Ignoring unknown parameter "ldap machine suffix ou" Enter sakshi's password: Receiving SMB: Server stopped responding session setup failed: Call timed out: server did not respond after 20000 milliseconds 

您好我有samba问题在桑巴configuration我的configuration是这样的

我的testparm输出是: –

 Load smb config files from /etc/samba/smb.conf Unknown parameter encountered: "ldap machine suffix ou" Ignoring unknown parameter "ldap machine suffix ou" Processing section "[smbshare]" Processing section "[printers]" Processing section "[print$]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] workgroup = OPENLDAP server string = %h server (Samba, Ubuntu) map to guest = Bad User passdb backend = ldapsam:ldap://openldap.server pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . unix password sync = Yes syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 add machine script = sudo /usr/sbin/smbldap-userad -t 0 -w "%u" dns proxy = No ldap admin dn = cn=admin,dc=openldap,dc=server ldap group suffix = ou=Groups ldap idmap suffix = ou=idmap ldap passwd sync = yes ldap suffix = dc=openldap,dc=server ldap ssl = no ldap user suffix = ou=People usershare allow guests = Yes panic action = /usr/share/samba/panic-action %d [smbshare] comment = for ldap user path = /test valid users = sakshi [printers] comment = All Printers path = /var/spool/samba create mask = 0700 printable = Yes browseable = No [print$] comment = Printer Drivers path = /var/lib/samba/printers 

和我的smbd输出是

 [2011/04/04 17:08:43, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 12 try! [2011/04/04 17:08:44, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 13 try! [2011/04/04 17:08:45, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 14 try! [2011/04/04 17:08:46, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 15 try! [2011/04/04 17:08:47, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 1 try! [2011/04/04 17:08:48, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 2 try! [2011/04/04 17:08:49, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 3 try! [2011/04/04 17:08:50, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 4 try! [2011/04/04 17:08:51, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 5 try! [2011/04/04 17:08:52, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 6 try! [2011/04/04 17:08:53, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 7 try! [2011/04/04 17:08:54, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 8 try! [2011/04/04 17:08:55, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 9 try! [2011/04/04 17:08:56, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 10 try! [2011/04/04 17:08:57, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 11 try! [2011/04/04 17:08:58, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 12 try! [2011/04/04 17:08:59, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 13 try! [2011/04/04 17:09:00, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 14 try! [2011/04/04 17:09:01, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 15 

更新

我改变了我的机器后缀,像这样: ldap machine suffix = ou=Computer但我仍然有一个问题。

我在一个系统上的Ubuntu平台上configuration了samba + ldap,现在我可以通过微软端访问samba共享,但是我仍然得到这个错误:

 [2011/04/07 17:15:21, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 6 try! [2011/04/07 17:15:22, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 7 try! [2011/04/07 17:15:23, 1] lib/smbldap.c:another_ldap_try(1175) Connection to LDAP server failed for the 8 try! 

首先,你的smb.conf里有一行代码,如下所示:

 ldap machine suffix ou=machines 

或类似的东西。 它看起来像这样,还有一个=字符:

 ldap machine suffix = ou=machines 

那么看起来你的LDAP服务器或者没有运行,或者configuration不正确,这是主要的问题。 你开始了吗? 在什么平台上,使用哪个samba版本,什么types的LDAP服务器等?