blob: 3675646185e758bbaa68664ff8fa2f438f91cc8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# frozen_string_literal: true
# rubocop:disable Rails/Output
module Gitlab
class EncryptedLdapCommand < EncryptedCommandBase
DISPLAY_NAME = "LDAP"
EDIT_COMMAND_NAME = "gitlab:ldap:secret:edit"
class << self
def encrypted_secrets
Gitlab::Auth::Ldap::Config.encrypted_secrets
end
def encrypted_file_template
<<~YAML
# main:
# password: '123'
# user_dn: 'gitlab-adm'
YAML
end
end
end
end
# rubocop:enable Rails/Output
|