Revert "fix ldap a bit" @babelouest

This reverts commit 5cb99a657e5b7375cca149181ae4ce6e77c43b40.