diff options
author | Imre Farkas <ifarkas@gitlab.com> | 2019-07-08 15:02:01 +0200 |
---|---|---|
committer | Imre Farkas <ifarkas@gitlab.com> | 2019-07-08 15:03:26 +0200 |
commit | 92fd96ab2964deb1c547971104ddac3379589b22 (patch) | |
tree | 44836ef9b8d723060338bfb9834ba25a3d25bbf6 | |
parent | 008aa6af4fa6a874bc893e214907a0ea1afb17f5 (diff) | |
download | gitlab-ce-if-smartcard_required_for_git_access_doc.tar.gz |
Doc for "Require session with smartcard login for Git access"if-smartcard_required_for_git_access_doc
-rw-r--r-- | doc/administration/auth/smartcard.md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/administration/auth/smartcard.md b/doc/administration/auth/smartcard.md index b33c5359b44..9dd5bdfb108 100644 --- a/doc/administration/auth/smartcard.md +++ b/doc/administration/auth/smartcard.md @@ -184,3 +184,31 @@ attribute. As a prerequisite, you must use an LDAP server that: 1. Save the file and [restart](../restart_gitlab.md#installations-from-source) GitLab for the changes to take effect. + +### Require browser session with smartcard sign-in for Git access + +**For Omnibus installations** + +1. Edit `/etc/gitlab/gitlab.rb`: + + ```ruby + gitlab_rails['smartcard_required_for_git_access'] = true + ``` + +1. Save the file and [reconfigure](../restart_gitlab.md#omnibus-gitlab-reconfigure) + GitLab for the changes to take effect. + +**For installations from source** + +1. Edit `config/gitlab.yml`: + + ```yaml + ## Smartcard authentication settings + smartcard: + # snip... + # Browser session with smartcard sign-in is required for Git access + required_for_git_access: true + ``` + +1. Save the file and [restart](../restart_gitlab.md#installations-from-source) + GitLab for the changes to take effect. |