mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-07-25 17:08:32 +00:00
23 lines
459 B
Ruby
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
|