[Samba] Trying to use LDAP: Failed to bind to server: Invalid Credentials

Craig White craigwhite at azapple.com
Tue Dec 23 11:08:03 GMT 2003


On Tue, 2003-12-23 at 02:38, johnmurphy at ntlworld.com wrote:

> 1. About the “ldap admin dn “ setting in smb.conf. 
> 
> I’ve put 
> ldap admin dn = “cn=Manager,ou=People,dc=IT,dc=local”
> as a modification of the example in the Howto. Where they have used “quenya and com” I have used “IT and local”. Are the quote marks needed?
---
do not use the quotes in smb.conf
---
> Does this have to match a setting in either the slapd.conf  or  LFIF file used to initialise the database and could this account for the “Invalid Credentials” message?
---
yes, it needs to match the rootdn in slapd.conf - otherwise it won't
work
---
> 2. The password I use is “colafoo”. So I’ve typed “smbpasswd –w colafoo”. In my slapd.conf file there are two lines starting rootpw. Should either of these be set to colafoo.  They were both commented out. On the other hand there are three lines in the LDIF file starting “userPassword:  {SSHA}”. I generated the password using
> “slappasswd –s colafoo” and put the result into the files. Have I made an error there? 
---
you should have 1 line in slapd.conf 
rootpw  {METHOD} output_of_'slapppasswd -s colaroo'
---
> Finally
> 3. The LDIF file contains references to “Setting up admin handle for People OU”
> “dn: cn=admin etc”. What is the difference between Manager and admin?
---
depends upon what you make it - you are designing your own ldap
structure.

Another suggestion has been to learn LDAP first before learning to
interact with Samba. Seemed to be a good suggestion.

Craig



More information about the samba mailing list