how do you set the admin password on openldap 2.4

Posted by dingfelder on Server Fault See other posts from Server Fault or by dingfelder
Published on 2012-10-14T19:44:42Z Indexed on 2012/10/16 5:09 UTC
Read the original article Hit count: 517

Filed under:
|
|

I am getting started with openLdap 2.4 and am having a bit of trouble, all the examples I see seem to refer to previous versions which used the text config file slapd.conf but from what I see on discussions about v2.4, this has been deprecated.

I thought prehaps I needed to add a user, and log in as them> but when I try and run an ldapadd command, I get a prompt to enter a password:

Enter LDAP Password: 
ldap_bind: Invalid credentials (49)

Notes: I installed openldap server via yum (in fedora 15), and have installed phpldapadminbut also can try things on the command line if anyone has suggestions.

After installing and starting I get the following response from a search:

# ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
# extended LDIF
# LDAPv3
# base <> with scope baseObject
# filter: (objectclass=*)
# requesting: namingContexts 
dn:
namingContexts: dc=my-domain,dc=com    
# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

I am glad to remove and reinstall the server if that helps, can anyone provide a link to tips that works for version 2.4 for a new setup?

© Server Fault or respective owner

Related posts about linux

Related posts about admin