Starting LDAP authentication

There is very little chance that this is actually what you want since at LDAP level you never authenticate with the uid. You should take a look at the Active Directory example on https://extensions.xwiki.org/xwiki/bin/view/Extension/LDAP/Authenticator/UseCases/#HActiveDirectory (sAMAccountName suggests that you are using Active Directory).