[samba] Samba + LDAP

Mikhail V. Drogovozov mikhail на mail.knastu.ru
Пт Мар 4 09:00:25 MSK 2005


Как уже только не пробывал.
smb.conf:
[global]
        security = user
        encrypt passwords = yes
        netbios name = ldap
        workgroup = fct
        server string = LDAP FCT Server
        ldap suffix = dc=ldap,dc=fct
        ldap admin dn = "cn=root,dc=ldap,dc=fct"

#./smbpasswd -w passwd
Setting stored password for "cn=root,dc=ldap,dc=fct" in secrets.tdb

#./smbpasswd -D 10 -a root
Netbios name list:-
my_netbios_names[0]="LDAP"
Trying to load: ldapsam_compat
Attempting to register passdb backend ldapsam
Successfully added passdb backend 'ldapsam'
Attempting to register passdb backend ldapsam_compat
Successfully added passdb backend 'ldapsam_compat'
Attempting to register passdb backend smbpasswd
Successfully added passdb backend 'smbpasswd'
Attempting to register passdb backend tdbsam
Successfully added passdb backend 'tdbsam'
Attempting to register passdb backend guest
Successfully added passdb backend 'guest'
Attempting to find an passdb backend to match ldapsam_compat (ldapsam_compat)
Found pdb backend ldapsam_compat
pdb backend ldapsam_compat has a valid init
Attempting to find an passdb backend to match guest (guest)
Found pdb backend guest
pdb backend guest has a valid init
New SMB password:
Retype new SMB password:
smbldap_search: base => [dc=ldap,dc=fct], filter => [(&(uid=root)(objectclass=sa
mbaAccount))], scope => [2]
smbldap_open_connection: ldaps://localhost:636
smbldap_open_connection: connection opened
ldap_connect_system: Binding to ldap server ldaps://localhost:636 as "cn=root,dc
=ldap,dc=fct"
failed to bind to server with dn= cn=root,dc=ldap,dc=fct Error: Can't contact LD
AP server
        (unknown)
Connection to LDAP server failed for the 1 try!
smbldap_open_connection: ldaps://localhost:636
smbldap_open_connection: connection opened
ldap_connect_system: Binding to ldap server ldaps://localhost:636 as "cn=root,dc
=ldap,dc=fct"
failed to bind to server with dn= cn=root,dc=ldap,dc=fct Error: Can't contact LD
AP server
        (unknown)
Connection to LDAP server failed for the 2 try!
smbldap_open_connection: ldaps://localhost:636
smbldap_open_connection: connection opened
ldap_connect_system: Binding to ldap server ldaps://localhost:636 as "cn=root,dc=
ldap,dc=fct"
failed to bind to server with dn= cn=root,dc=ldap,dc=fct Error: Can't contact LD
AP server
        (unknown)
Connection to LDAP server failed for the 4 try!
^C

Не понятно почему SAMBA хочет соединится с ldaps://localhost:636,
указываю в smb.conf порт, но все равно ldaps, я хочу сначала просто
ldap:// видимо поэтому и не хочет пускать дальше. Как быть? Кто делал?
Подскажите.

---
С уважением, Mikhail V. Drogovozov
     E-mail: mikhail на mail.knastu.ru
    Моб.тел: +7-924-225-1264
        ICQ: 149731111



Подробная информация о списке рассылки Samba