24 lines
520 B
Ruby
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'
|
|
# user_dn: 'gitlab-adm'
|
|
YAML
|
|
end
|
|
end
|
|
end
|
|
end
|
|
# rubocop:enable Rails/Output
|