Revert "Fixes #3949: Update LDAP authentication procedure"

This reverts commit 880fc6485c29489b3cc8a8eb82ed00fab8bfa385.