Samba failed to bind ldap
Hi!
I just set up 2 tjener for my school administrations. Since one of 3
schools changes location this summer, i got me a backup of the
sarge-based tjener's ldap and restored it on a etch-machine, then
rsync'ed /var/lib/ldap to the other one:
1st machine:
#/etc/init.d/slapd stop
#tar -cjf ldapbak.tar.bz2 /var/lib/ldap
#/etc/init.d/slapd start
#rsync ldapbak.tar.bz2 root@xxx.xxx.xxx.xxx:/
2nd machine
#/etc/init.d/slapd stop
#cd /
#rm -Rf /var/lib/ldap
#tar -xjf ldapbak.tar.bz2
#/etc/init.d/slapd start
(Both tjener are on different location with physical divided networks)
I restored the home0-directories, the smb.cnf-shares and the dhcpd.conf,
adding staticxx-ip's to the workstations.
Now think of my surprise: one tjener works fine with smb-clients, the
other (rsync'ed) one refuses to do.
win98 clients get something like "wrong domainpassword",
# smbclient -L 10.0.2.2
called from tjener and notebook says
"Error connecting to 10.0.2.2 (Verbindungsaufbau wurde abgelehnt)
Connection to 10.0.2.2 failed"
reading the sambalogs i found
/var/log/samba/log.smbd:
[2007/08/21 12:23:02, 0] smbd/server.c:main(847) smbd version 3.0.24
started.
Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/08/21 12:23:03, 0] lib/smbldap.c:smbldap_connect_system(977)
failed to bind to server ldap://ldap with
dn="cn=smbadmin,ou=People,dc=skole,dc=skolelinux,dc=no" Error: Invalid
credentials
[2007/08/21 12:23:03, 1] lib/smbldap.c:another_ldap_try(1150)
Connection to LDAP server failed for the 1 try!
[2007/08/21 12:23:04, 1] lib/smbldap.c:another_ldap_try(1150)
Connection to LDAP server failed for the 2 try!
[2007/08/21 12:23:05, 1] lib/smbldap.c:another_ldap_try(1150)
So smbd is not running. I did some
#debian-edu-restart-services
and then a
#ps aux | grep mbd
and got
root 19544 0.0 0.1 6912 1412 ? Ss 14:31 0:00
/usr/sbin/nmbd -D
root 19546 1.6 0.3 11520 3380 ? Ss 14:31 0:00
/usr/sbin/smbd -D
The log showed the same error as before and - about 2 minutes later -
#ps aux | grep mbd
only shows
root 19544 0.0 0.1 6912 1412 ? Ss 14:31 0:00
/usr/sbin/nmbd -D
The smbd has closed
So what's going wrong here?
readU
Frank
Reply to: