[Samba] Can't contact LDAP server,

Markus Krause krause at biochem.mpg.de
Wed May 23 06:34:33 GMT 2007


Zitat von empirium <empirium at o2.pl>:
> I have samba 3 with ldap as a authentication backend. When I use
> pdbedit -a user everything works ok and the user is adding to the ldap
> database.
> But I have problem with exporting smbpasswd to ldap, when I try pdbedit
> -i smbpasswd:/etc/samba/smbpasswd -e ldapsam
> I've got a problem that failed to bind to server ldap://localhost
> Error: Can't contact LDAP server,
> but my ldap serwer is on the other host than localhost. I dont know why
> it choose localhost as a ldap server.
> And it is strange because if I use pdbedit -a user everything works ok.
> do you know anybody what is wrong?
>
> part of my smb.conf
> passdb backend = ldapsam:ldap://10.0.1.57
> ldap suffix = dc=test,dc=pl
> ldap machine suffix = ou=machines
> ldap user suffix = ou=users
> ldap group suffix = ou=groups
> ldap admin dn = cn=admin,dc=test,dc=pl
> ldap delete dn = no
>
>   -- To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba

we had a similar problem some time ago, there seems to be a bug in  
pdbedit. we got around it by calling "pdbedit -i  
smbpasswd:/etc/samba/smbpasswd -e ldapsam:
ldap://myldapserv.domain"

hth
   markus



+-----------------------------------------------------------------+
| Markus Krause, Mogli-Soft                                       |
| Support for Mac OS X, Webmail/Horde, LDAP, RADIUS, MySQL        |
| by order of the                                                 |
|    Computing Center of the Max-Planck-Institute of Biochemistry |
+--------------------------------+--------------------------------+
| E-Mail: krause at biochem.mpg.de  |  Tel.: 089 - 89 40 85 99       |
|         markus.krause at mac.com  |  Fax.: 089 - 89 40 85 98       |
|  Skype: markus.krause          | iChat: markus.krause at mac.com   |
+--------------------------------+--------------------------------+

----------------------------------------------------------------------
      This message was sent using https://webmail2.biochem.mpg.de
If you encounter any problems please report to rz-linux at biochem.mpg.de




More information about the samba mailing list