debian-mirror-gitlab/lib/gitlab/encrypted_ldap_command.rb
2022-07-17 14:43:12 +02:00

24 lines
520 B
Ruby

# 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