从samba到LDAP服务器的连接失败

从samba到LDAP服务器的连接失败,ldap,samba,Ldap,Samba,我使用samba和LDAP进行文件共享和目录服务 几天前,我注意到samba在连接LDAP服务时出现了问题,而之前它工作正常。但仍然可以访问共享目录。重新启动smbd服务后,将无法再访问该服务。因此,有很多必要的文件在网络中的人不可用! 有什么帮助吗 samba日志文件已报告: [2014/01/30 11:21:59, 1] lib/smbldap.c:1265(another_ldap_try) Connection to LDAP server failed for the 1 tr

我使用samba和LDAP进行文件共享和目录服务

几天前,我注意到samba在连接LDAP服务时出现了问题,而之前它工作正常。但仍然可以访问共享目录。重新启动smbd服务后,将无法再访问该服务。因此,有很多必要的文件在网络中的人不可用! 有什么帮助吗

samba日志文件已报告:

[2014/01/30 11:21:59,  1] lib/smbldap.c:1265(another_ldap_try)
  Connection to LDAP server failed for the 1 try!
[2014/01/30 11:22:00,  1] lib/smbldap.c:1265(another_ldap_try)
  Connection to LDAP server failed for the 2 try!
[2014/01/30 11:22:01,  1] lib/smbldap.c:1265(another_ldap_try)
  Connection to LDAP server failed for the 3 try!
[2014/01/30 11:22:02,  1] lib/smbldap.c:1265(another_ldap_try)
  .
  .  (the number is just counted up)
  .
  Connection to LDAP server failed for the 13 try!
[2014/01/30 11:22:12,  1] lib/smbldap.c:1265(another_ldap_try)
  Connection to LDAP server failed for the 14 try!
[2014/01/30 11:22:13,  1] lib/smbldap.c:1265(another_ldap_try)
  Connection to LDAP server failed for the 15 try!
[2014/01/30 11:22:14,  0] smbd/server.c:1201(main)
  ERROR: failed to setup guest info.
[2014/01/30 11:22:14,  0] smbd/server.c:1069(main)
  smbd version 3.4.7 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2014/01/30 11:22:14,  0] smbd/server.c:1115(main)
  standard input is not a socket, assuming -D option
[2014/01/30 11:22:14,  0] lib/smbldap.c:1086(smbldap_connect_system)
  failed to bind to server ldapi:/// with dn="uid=samba,ou=system-accounts,dc=example,dc=com" Error: Invalid credentials
        (unknown)
一些相应的系统日志:

Jan 30 14:27:34 atom-lan slapd[2320]: connection_read(24): no connection!
Jan 30 14:27:35 atom-lan winbindd[2872]: [2014/01/30 14:27:35,  0] lib/smbldap.c:656(smbldap_store_state)
Jan 30 14:27:35 atom-lan winbindd[2872]:   PANIC: assert failed at lib/smbldap.c(656): tmp_ldap_state == smbldap_state
.
. (repetition)
.
Jan 30 14:42:55 atom-lan init: smbd main process (5977) terminated with status 255
Jan 30 14:42:55 atom-lan init: smbd main process ended, respawning
Jan 30 14:42:55 atom-lan smbd[6037]: [2014/01/30 14:42:55,  0] smbd/server.c:1115(main)
Jan 30 14:42:55 atom-lan smbd[6037]:   standard input is not a socket, assuming -D option
Jan 30 14:42:55 atom-lan smbd[6037]: [2014/01/30 14:42:55,  0] lib/smbldap.c:1086(smbldap_connect_system)
Jan 30 14:42:55 atom-lan smbd[6037]:   failed to bind to server ldapi:/// with dn="uid=samba,ou=system-accounts,dc=example,dc=com" Error: Invalid credentials

伙计们,我对这个问题的解释不够充分,也不清楚没有人写评论或解决方案?有什么问题吗?!这不是一个关于编程的问题,因此在这里是离题的。你应该在标题上问这个你的URL正确吗?ldapi?不是ldap或ldap?为什么是ldapi?