LDAP registrates new users with a username different from uid

Hello,

my LDAP config in Gitlab CE 7.4.3 has an “interesting” behaviour concerning the usernames which are given to new user who register/login via LDAP.

Example:
“git.testuser” logs in via LDAP, the corresponding gitlab user is “git-testuser” (notice the - )

  ldap:   
   main: 
    label: 'xxx-LDAP'
    host: 'ldap.xxx.com'
    port: 636
    uid: 'cn'
    method: 'ssl' # "tls" or "ssl" or "
    base: 'dc=xxx,dc=com'
    active_directory: true
    allow_username_or_email_login: false
    user_filter: ''

Big Question

Does anyone know if there is a rule in Omniauth (or elsewhere) that transforms the dots into dashes?

br.
Johannes