我使用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