GitLab11.3.9 使用 Crowd3.3.2 的帳號實現 SSO 單點登錄,以及GitLab配置騰訊企業郵箱

GitLab11.3.9 的安裝方法: 點擊查看
  Crowd3.3.2 的安裝方法:點擊查看

  需要先在 Crowd 創建應用程序,參考 <Docker 創建 Crowd3.3.2 以及打通 Jira Software7.12.3和Confluence6.12.2 SSO 單點登錄> 中的 4.12章節,在 Application type 選擇 Generic Application, Description 輸入Gitlab ApplicatonName 輸入 gitlabPassword 輸入 123456,然後點擊 Next,其他步驟參考 4.12章節
  

  GitLabCrowd 打通需要修改 gitlab.rb
  修改後的內容如下:

external_url 'http://localhost/'
gitlab_rails['initial_root_password'] = File.read('/run/secrets/gitlab_root_password')

gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.exmail.qq.com"
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "[email protected]"
gitlab_rails['smtp_password'] = "email password"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = true
gitlab_rails['gitlab_email_from'] = '[email protected]'
gitlab_rails['smtp_domain'] = "exmail.qq.com"


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" => "crowd",
       "args" => {
         "crowd_server_url" => "http://crowd.mshk.top/crowd",
         "application_name" => "gitlab",
         "application_password" => "123456"
       }
     }
   ]

crowd_server_url修改成你的 Crowd 地址

  
  修改以後,進行到容器中執行命令進行重置配置,並重啓 gitlab 服務:

$ gitlab-ctl reconfigure && gitlab-ctl stop && gitlab-ctl start

  重啓以後,就可以使用 Crowd 中配置的帳號,進行登錄。


博文作者:迦壹
博客地址:GitLab11.3.9 使用 Crowd3.3.2 的帳號實現 SSO 單點登錄,以及GitLab配置騰訊企業郵箱
轉載聲明:可以轉載, 但必須以超鏈接形式標明文章原始出處和作者信息及版權聲明,謝謝合作!

比特幣地址:1KdgydfKMcFVpicj5w4vyn3T88dwjBst6Y
以太坊地址:0xbB0a92d634D7b9Ac69079ed0e521CC2e0a97c420


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章