Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)

I need to delete a user from my LDAP container.

I started searched for user using :

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

I found a user and execute the below code :

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

I get this :

ldap_initialize( DEFAULT )

ldap_bind: Invalid credentials (49)

Anyone can help to resolve this issue.

1 Answer

0 votes
by (36.8k points)

I searched for the user using ldapsearch

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

Later I deleted the user using the 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

Come and join Linux training to gain great knowledge. 

Do check out the video below

 

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jan 21, 2021 in Linux by blackindya (18.4k points)
0 votes
1 answer
asked Dec 25, 2020 in Linux by blackindya (18.4k points)

Browse Categories

...