dockerldapcontainerstuleap

How to delete a user from the LDAP container


I need to delete a user from the LDAP container.

First of all I searched for the user using :

$ ldapsearch -x -b "dc=tuleap,dc=local" -s sub "objectclass=*"

I found the user and than I execute :

$ ldapdelete  -v -D "uid=user,dc=tuleap,dc=local" -w userpassword

I get this :

ldap_initialize( DEFAULT )
ldap_bind: Invalid credentials (49)

Any one can help to resolve this issue.


Solution

  • After a long period of researching, I found a solution for that.

    First I searched for the user using ldapsearch

    ldapsearch -x -b "uid=user,ou=people,dc=tuleap,dc=local" -s sub "objectclass=*"
    

    After that I deleted the user using ldapdelete

    ldapdelete  -v -c -D "cn=Manager,dc=tuleap,dc=local" -w ladap-manager-password "uid=user,ou=people,dc=tuleap,dc=local"
    

    Executing tuleap]# cat .env I found the ladap-manager-password