Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
cfde36dc
Commit
cfde36dc
authored
Mar 19, 2020
by
Imre Farkas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix smartcard config initialization
parent
99b76451
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
changelogs/unreleased/210596-fix_smartcard_config_initializer.yml
...gs/unreleased/210596-fix_smartcard_config_initializer.yml
+5
-0
config/initializers/1_settings.rb
config/initializers/1_settings.rb
+12
-9
No files found.
changelogs/unreleased/210596-fix_smartcard_config_initializer.yml
0 → 100644
View file @
cfde36dc
---
title
:
Fix smartcard config initialization
merge_request
:
27560
author
:
type
:
fixed
config/initializers/1_settings.rb
View file @
cfde36dc
...
...
@@ -74,15 +74,6 @@ if Settings.ldap['enabled'] || Rails.env.test?
end
end
Gitlab
.
ee
do
Settings
[
'smartcard'
]
||=
Settingslogic
.
new
({})
Settings
.
smartcard
[
'enabled'
]
=
false
if
Settings
.
smartcard
[
'enabled'
].
nil?
Settings
.
smartcard
[
'client_certificate_required_host'
]
=
Settings
.
gitlab
[
'host'
]
if
Settings
.
smartcard
[
'client_certificate_required_host'
].
nil?
Settings
.
smartcard
[
'client_certificate_required_port'
]
=
3444
if
Settings
.
smartcard
[
'client_certificate_required_port'
].
nil?
Settings
.
smartcard
[
'required_for_git_access'
]
=
false
if
Settings
.
smartcard
[
'required_for_git_access'
].
nil?
Settings
.
smartcard
[
'san_extensions'
]
=
false
if
Settings
.
smartcard
[
'san_extensions'
].
nil?
end
Settings
[
'omniauth'
]
||=
Settingslogic
.
new
({})
Settings
.
omniauth
[
'enabled'
]
=
true
if
Settings
.
omniauth
[
'enabled'
].
nil?
Settings
.
omniauth
[
'auto_sign_in_with_provider'
]
=
false
if
Settings
.
omniauth
[
'auto_sign_in_with_provider'
].
nil?
...
...
@@ -671,6 +662,18 @@ Gitlab.ee do
end
end
#
# Smartcard
#
Gitlab
.
ee
do
Settings
[
'smartcard'
]
||=
Settingslogic
.
new
({})
Settings
.
smartcard
[
'enabled'
]
=
false
if
Settings
.
smartcard
[
'enabled'
].
nil?
Settings
.
smartcard
[
'client_certificate_required_host'
]
=
Settings
.
gitlab
.
host
if
Settings
.
smartcard
[
'client_certificate_required_host'
].
nil?
Settings
.
smartcard
[
'client_certificate_required_port'
]
=
3444
if
Settings
.
smartcard
[
'client_certificate_required_port'
].
nil?
Settings
.
smartcard
[
'required_for_git_access'
]
=
false
if
Settings
.
smartcard
[
'required_for_git_access'
].
nil?
Settings
.
smartcard
[
'san_extensions'
]
=
false
if
Settings
.
smartcard
[
'san_extensions'
].
nil?
end
#
# Extra customization
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment