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
Zitat von empirium <empirium@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/sambawe 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@biochem.mpg.de | Tel.: 089 - 89 40 85 99 | | markus.krause@mac.com | Fax.: 089 - 89 40 85 98 | | Skype: markus.krause | iChat: markus.krause@mac.com | +--------------------------------+--------------------------------+ ---------------------------------------------------------------------- This message was sent using https://webmail2.biochem.mpg.de If you encounter any problems please report to rz-linux@biochem.mpg.de
Hi Markus, You will need to check your ldap.conf and tell it where to find the ldap server. Should be something like this in there: #/etc/ldap.conf host ldap1.domainname.com ldap2.domainname.com or host 192.168.0.100 Cheers, Adrian Sender.>From: Markus Krause <krause@biochem.mpg.de> >To: samba@lists.samba.org >Subject: Re: [Samba] Can't contact LDAP server, >Date: Wed, 23 May 2007 08:34:33 +0200 >Zitat von empirium <empirium@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_________________________________________________________________ Join the millions of Australians using Live Search. Try live.com.au http://ninemsn.com.au/share/redir/adTrack.asp?mode=click&clientID=740&referral=million&URL=http://live.com.au