Welcome to mirror list, hosted at ThFree Co, Russian Federation.

encrypted_ldap_command.rb « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 442c675f19e9c080db5d945865146fbfdfabb87b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

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