Completely Unisntall OpenLDAP

General support questions
Post Reply
User avatar
Lipe_Shtogu
Posts: 3
Joined: 2019/04/08 08:54:27
Contact:

Completely Unisntall OpenLDAP

Post by Lipe_Shtogu » 2019/04/08 09:00:08

Hi all
i need to completely uninstall open ldap.
I have tried numerous times to uninstall but some files are still on my system.

yum -y remove openldap-servers openldap-clients
rm -rf /var/lib/ldap
userdel ldap

What command do i have to use for complete removal?

User avatar
TrevorH
Forum Moderator
Posts: 26320
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Completely Unisntall OpenLDAP

Post by TrevorH » 2019/04/08 09:15:01

You cannot.

The 'openldap' package itself is a dependency of many system critical packages and an attempt to yum remove openldap will end with

Error: Trying to remove "yum", which is protected

Why do you think you want to do this?
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

User avatar
Lipe_Shtogu
Posts: 3
Joined: 2019/04/08 08:54:27
Contact:

Re: Completely Unisntall OpenLDAP

Post by Lipe_Shtogu » 2019/04/08 10:38:43

Im trying to fresh install because i'm facing ldap_bind : Invalid Credentials (49)
i cannot proceed to full installation of ldap because of the password

User avatar
TrevorH
Forum Moderator
Posts: 26320
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Completely Unisntall OpenLDAP

Post by TrevorH » 2019/04/08 10:58:07

Uninstalling it will not help with that. It's a configuration error.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

User avatar
Lipe_Shtogu
Posts: 3
Joined: 2019/04/08 08:54:27
Contact:

Re: Completely Unisntall OpenLDAP

Post by Lipe_Shtogu » 2019/04/08 11:13:29

What to do?
The password that i have added is invalid

aks
Posts: 2806
Joined: 2014/09/20 11:22:14

Re: Completely Unisntall OpenLDAP

Post by aks » 2019/04/09 18:33:48

Do you mean that authentication to the machine is now trying against an LDAP installation that doesn't exist (in which case dive into pam module stacks)?
But yeah, it's easier to start off from fresh.

Post Reply