[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

SAMBA LDAP PDC + SAMBA LDAP BDC



Настроил сабжевую связку. Репликация проходит отлично. Но есть проблема на стороне BDC. Когда выполняю net rpc user вываливается ошибка:
Could not connect to server 127.0.0.1
Connection failed: NT_STATUS_CONNECTION_REFUSED
В логе smbd.log присутствет также ошибки:
[2008/08/21 09:35:02, 1] lib/smbldap.c:another_ldap_try(1150)
  Connection to LDAP server failed for the 1 try!
[2008/08/21 09:35:03, 1] lib/smbldap.c:another_ldap_try(1150)
  Connection to LDAP server failed for the 2 try!
[2008/08/21 09:35:04, 1] lib/smbldap.c:another_ldap_try(1150)
  Connection to LDAP server failed for the 3 try!
И т.д. При этом если остановить самбу "/etc/init.d/samba stop" остается висеть smbd который убивается только killall -9 smbd.
Подскажите где может быть проблема. Вот конфиги samba на BDC:
############### SLAVE BDC smb.conf:

workgroup = DOMAIN
netbios name = BDC
server string = BDC
security = user
domain logons = Yes
domain master = No
os level = 127
time server = yes
wins support = yes
enable privileges = Yes
obey pam restrictions = No
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = eth0 lo
bind interfaces only = yes
hosts allow = 192.168., 127., localhost
unix charset = utf8
dos charset = cp1251
display charset = cp1251
load printers = no
printing = bsd
printcap name = /dev/null
wins support = yes

logon drive =
logon home =
logon path =
logon script = %G.bat

passdb backend = ldapsam:ldap://localhost/
ldap admin dn = cn=admin,dc=domain,dc=ru
ldap suffix = dc=domain, dc=ru
ldap group suffix = ou=Groups
ldap user suffix = ou=Users
ldap machine suffix = ou=Computers
ldap idmap suffix = ou=Users
ldap passwd sync = Yes
ldap delete dn = No

add user script = /usr/sbin/smbldap-useradd -m "%u"
delete user script = /usr/sbin/smbldap-userdel -r "%u"
add machine script = /usr/sbin/smbldap-useradd -t 1 -w "%u"
add group script = /usr/sbin/smbldap-groupadd -p "%g"
delete group script = /usr/sbin/smbldap-groupdel "%g"
add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
rename user script = /usr/sbin/smbldap-usermod -r "%unew" "%uold"


Reply to: