Disable LDAP authentication on Ubuntu

Solution 1:

A quick way to disable LDAP authentication is to remove any ldap sources from /etc/nsswitch.conf.