Query LDAP, by auth method.
Command: Linux copy
ldapsearch -h $DOMAIN -D '$USER@$DOMAIN' -w $PASSWORD -b 'dc=$DOMAIN,dc=local'
References: