Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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...?


migration rejected from Jul 5 '15 at 15:54

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by 84104, Ward, kasperd, mdpc, Jenny D Jul 5 '15 at 15:54

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

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.


Not the answer you're looking for? Browse other questions tagged or ask your own question.