debian-mirror-gitlab/lib/gitlab/encrypted_ldap_command.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
520 B
Ruby
Raw Normal View History

2021-02-22 17:27:13 +05:30
# frozen_string_literal: true
# rubocop:disable Rails/Output
module Gitlab
2021-10-27 15:23:28 +05:30
class EncryptedLdapCommand < EncryptedCommandBase
DISPLAY_NAME = "LDAP"
EDIT_COMMAND_NAME = "gitlab:ldap:secret:edit"
2021-02-22 17:27:13 +05:30
2021-10-27 15:23:28 +05:30
class << self
def encrypted_secrets
Gitlab::Auth::Ldap::Config.encrypted_secrets
2021-02-22 17:27:13 +05:30
end
def encrypted_file_template
<<~YAML
# main:
# password: '123'
2022-07-16 23:28:13 +05:30
# bind_dn: 'gitlab-adm'
2021-02-22 17:27:13 +05:30
YAML
end
end
end
end
# rubocop:enable Rails/Output