Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How to change the LDAP root password.

In my root machine "/etc/ldap/sldap.d" file is not there. insted of the file sldap.d directory only is there. I have generated the password by using "slappasswd " command. please help me...?

share|improve this question

migrated from stackoverflow.com Dec 19 '10 at 6:57

This question came from our site for professional and enthusiast programmers.

1 Answer 1

Without more information (configuration, tree structure, version of OpenLDAP) I'm going to try to give a generic answer.

As root on your LDAP server, go to "/etc/ldap" and then do "grep -Rl rootpw". The name of the file that comes back contains the setting for the root (or 'admin') password for your directory server. Open that file with your favorite text editor, and look for the line 'rootpw'. Change that value you to the one that you generated via 'slappasswd', restart slapd and you should be set.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.