blob: 5e1eabe7ec6a5687d599454b6a116ea34ad6c693 (
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'
# bind_dn: 'gitlab-adm'
YAML
end
end
end
end
# rubocop:enable Rails/Output
|