[bryan@fedora ~]$ sudo
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: unable to load /usr/libexec/sudo/sudoers.so: libldap_r-2.4.so.2: cannot open shared object file: No such file or directory
sudo: fatal error, unable to load plugins
This is what my /lib64/ looks like with the symlink I created:
[bryan@fedora ~]$ ls -la /lib64/ | grep libldap
-rwxr-xr-x. 1 root root 15144 Aug 16 05:32 libldap-2.4.so.2
lrwxrwxrwx. 1 root root 16 Aug 16 05:32 libldap-2.4.so.2.0.200 -> libldap-2.4.so.2
lrwxrwxrwx. 1 root root 27 Oct 5 23:42 libldap_r-2.4.so.2 -> /usr/lib/libldap_r-2.4.so.2
lrwxrwxrwx. 1 root root 18 Aug 16 05:32 libldap_r-2.4.so.2.0.200 -> libldap_r-2.4.so.2
lrwxrwxrwx. 1 root root 18 Aug 16 05:32 libldap.so.2 -> libldap.so.2.0.200
-rwxr-xr-x. 1 root root 413832 Aug 16 05:32 libldap.so.2.0.200
When I try to remove the symlink, either by rm or unlink, I get permission denied:
Yes, I am aware sudo passwd root allows for root password change.
However, my issue was that sudo was broken, so running sudo passwd root was not an option for me.
I had to follow How to Reset the root Password :: Fedora Docs as a result as aforementioned.