Monday 10 February 2014

How to reset the Open Directory administrator password in 10.9

Sometimes there are times when you will require access to Open Directory on your Apple 10.9 Server and because it has been so long since you last used it or because the original administrator decides to disappear without sharing the password, you will not know the password and will be stuck. However, if you follow these steps then you can reset the password to whatever you wish.

Go to the spotlight (magnifying glass in top right) and type Terminal and press Enter.

Within the terminal box type:

'ldapsearch -LLL -x -H ldap:// -s base namingContexts'

Hit enter.

The output should look similar to above, look out for the dc= entries and make a note of it.

Next within the terminal box type:

'sudo ldappasswd -x -H ldapi://%2Fvar%2Frun%2Fldapi -S uid=diradmin,cn=users,dc=macmini,dc=private'

Replace the dc= entries with the entires that are applicable to your setup. Also if the administrators UID isn't diradmin, then change that to what is applicable to your setup.

Hit enter.

At the new password prompt, enter a new password and repeat when prompted again.

You then should be able to authenticate within Workgroup Manager.

No comments:

Post a Comment

Please enter your comment here, all comments are subject to moderation