[Samba] error while migrating users to ldap with pdbedit

Markus Krause krause at biochem.mpg.de
Mon Mar 26 16:26:50 GMT 2007


Zitat von Volker Lendecke <Volker.Lendecke at SerNet.DE>:

> On Sat, Mar 24, 2007 at 10:31:16PM +0100, Volker Lendecke wrote:
>> On Wed, Mar 21, 2007 at 08:08:22PM +0100, Volker Lendecke wrote:
>> > Give me two or three days and I'll fix it. I'm just really
>> > busy right now.
>>
>> Attached find the patch I checked in as revision 21962.
>
> This time with patch...
>
> Volker

Hi Volker,

thanks for the patch, but there seems to be a problem still. running  
pdbedit leeds to:

sandy01:/usr/local/samba/lib # pdbedit -i smbpasswd -e ldapsam -s  
/usr/local/samba/lib/smb.conf.ldap
smbldap_search_domain_info: Searching
for:[(&(objectClass=sambaDomain)(sambaDomainName=SANDY01))]
smbldap_open_connection: connection opened
add_new_domain_info: added: domain = SANDY01 in the LDAP database
smbldap_search_domain_info: Searching
for:[(&(objectClass=sambaDomain)(sambaDomainName=SANDY01))]
smbldap_search_domain_info: Searching
for:[(&(objectClass=sambaDomain)(sambaDomainName=SANDY01))]
smbldap_open_connection: connection opened
smbldap_search_domain_info: Searching
for:[(&(objectClass=sambaDomain)(sambaDomainName=SANDY01))]
smbldap_open_connection: connection opened
failed to bind to server ldap://localhost with  
dn="cn=Manager,dc=biochem,dc=mpg,dc=de"
Error: Can't contact LDAP server
        (unknown)
Connection to LDAP server failed for the 1 try!
smbldap_open_connection: connection opened
failed to bind to server ldap://localhost with  
dn="cn=Manager,dc=biochem,dc=mpg,dc=de"
Error: Can't contact LDAP server
        (unknown)
Connection to LDAP server failed for the 2 try!
smbldap_open_connection: connection opened
failed to bind to server ldap://localhost with  
dn="cn=Manager,dc=biochem,dc=mpg,dc=de"
Error: Can't contact LDAP server
        (unknown)
Connection to LDAP server failed for the 3 try!
smbldap_open_connection: connection opened
failed to bind to server ldap://localhost with  
dn="cn=Manager,dc=biochem,dc=mpg,dc=de"
Error: Can't contact LDAP server
        (unknown)
Connection to LDAP server failed for the 4 try!
sandy01:/usr/local/samba/lib #



i used the following smb.conf.ldap:
--- smb.conf.ldap
[global]
netbios name = sandy01
netbios aliases = sandy01a sandy01b sandy01c
interfaces = 10.4.0.106/255.255.0.0
bind interfaces only = yes
socket address = 10.4.0.106
encrypt passwords = yes
debug level = 2
wins server = 10.5.0.17
nt acl support = no
ldap admin dn = cn=Manager,dc=biochem,dc=mpg,dc=de
ldap group suffix = ou=group
ldap idmap suffix = ou=Idmap
ldap machine suffix = ou=Machines
ldap suffix = dc=biochem,dc=mpg,dc=de
ldap user suffix = ou=people
passdb backend = ldapsam:ldap://ldapserv.biochem.mpg.de:389/
--- end of smb.conf.ldap

some things were created in ldap:
   sambaDomainName=SANDY01

so the connection to ldap actually is successfull, the ldap admin dn  
and the password must be correct also. but the further actions seem to  
be tried to localhost instead of ldapserv.


any hints on how to solve this?

regards
   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