LDAP Login - fix for usernames containing special characters
GitLab has other requirements for usernames than LDAP. The field that is used for the GitLab username ("sAMAccountName") allows for example spaces (see http://www.selfadsi.org/ads-attributes/user-sAMAccountName.htm).
That is why I made a fix that works for me.