Affichage des articles dont le libellé est ldap. Afficher tous les articles
Affichage des articles dont le libellé est ldap. Afficher tous les articles

jeudi 30 janvier 2020

Managing entries/password in LDAP from command line

First you have to install the utilities of openLDAP to connect to your LDAP. LDAP is a protocol, it means that you can use the openldap library to connect to other ldap like apache ds for instance:

yum install openldap-clients.x86_64

You can change the password using the admin bind account



ldappasswd -H ldap://:10399 -x -D "uid=admin,ou=system" -W -S "uid=bhashya_avula,ou=Persons,dc=mycompany,dc=com"



Or you can use the user account to change the password

ldappasswd -H ldap://:10399 -x -D "uid=xcvvsd,ou=Persons,dc=,dc=com" -W -A -S

If the account is locked, you can unlock it using apache ds. First, make sure that your connection use display the operational information by checking the below box. 


ldapsearch -H ldap://localhost:10389 -b "uid=admin,ou=system" -wXXXXX -s sub "(cn=Soullard)" +










 
















Then remove  the pwdAccountLockedTime attribute



vendredi 5 février 2016

ApacheDS Guide

I had couple of issue removing a partition on apacheds. It seems that if you do not perform the operations in the right order you could crash you server and it would not start again. Here are the steps I performs to successfully remove a partition.

Remove the organization node


Connect to the configuration panel

Go to the advanced partition editor


Remove the partition

Delete the indexes on the partion:


Restart the server.
It should be ok

Connect from command line:

ldapsearch -x -H ldap://localhost:10399 -D"uid=admin,ou=system" -wXXXXX  -s sub "(cn=Soullard)" -LLL +