Hi,

I have GitLab 8.x configured for shibboleth authentication, and it works 
great. The only issue is that I would like to control the auto-created 
users' username. Presently it appears to generate them from whatever I set 
the 'email' attribute to, but this must be a valid email address format. I 
would like it to use HTTP_UID, but I cannot figure out how to do this.

The relevant config from gitlab.rb looks like this:

gitlab_rails['omniauth_enabled'] = true
gitlab_rails['omniauth_allow_single_sign_on'] = true
gitlab_rails['omniauth_block_auto_created_users'] = false
gitlab_rails['omniauth_providers'] = [
  {
    "name" => 'shibboleth',
    "args" => {
        "shib_session_id_field"         => "HTTP_SHIB_SESSION_ID",
        "shib_application_id_field"     => "HTTP_SHIB_APPLICATION_ID",
        "uid_field"                     => "HTTP_UID",
        "name_field"                    => "HTTP_CN",
        "info_fields"                   => {
            "email"     => "HTTP_MAIL",
        },
    },
    "label"     => "foo"
  }
]

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/82c72cd5-7c54-4689-bcf5-9708a0eb59ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to