ldap_server: Move code into authenticate_ldap_simple_bind()