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 <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>:
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
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba