GitLab11.3.9 使用 Crowd3.3.2 的帳號實現 SSO 單點登入,以及GitLab配置騰訊企業郵箱
阿新 • • 發佈:2018-12-13
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 Applicaton
, Name
輸入 gitlab
, Password
輸入 123456
,然後點選 Next
,其他步驟參考 4.12章節
。
GitLab
與 Crowd
打通需要修改 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