Files
gitlabhq/lib/gitlab/encrypted_ldap_command.rb
2023-11-10 12:09:27 +00:00

23 lines
459 B
Ruby

# 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