Class: Simp::Cli::Config::Item::LdapSyncPw
- Inherits:
-
PasswordItem
- Object
- Simp::Cli::Config::Item
- PasswordItem
- Simp::Cli::Config::Item::LdapSyncPw
- Defined in:
- lib/simp/cli/config/item/ldap_sync_pw.rb
Instance Attribute Summary
Attributes inherited from PasswordItem
#can_generate, #generate_by_default
Attributes inherited from Simp::Cli::Config::Item
#allow_user_apply, #config_items, #description, #die_on_apply_fail, #fact, #fail_on_missing_answer, #key, #next_items_tree, #silent, #skip_apply, #skip_query, #skip_yaml, #value
Instance Method Summary collapse
-
#encrypt(string) ⇒ Object
LDAP Bind PW must known and stored in cleartext.
-
#initialize ⇒ LdapSyncPw
constructor
A new instance of LdapSyncPw.
- #validate(string) ⇒ Object
Methods inherited from PasswordItem
#query_ask, #query_extras, #query_generate_password
Methods inherited from Simp::Cli::Config::Item
#apply, #default_value, #highline_question_type, #next_items, #not_valid_message, #os_value, #print_banner, #print_summary, #puppet_value, #query, #query_ask, #query_extras, #query_status, #recommended_value, #safe_apply, #say_blue, #say_green, #say_red, #say_yellow, #to_yaml_s
Constructor Details
#initialize ⇒ LdapSyncPw
Returns a new instance of LdapSyncPw.
9 10 11 12 13 |
# File 'lib/simp/cli/config/item/ldap_sync_pw.rb', line 9 def initialize super @key = 'ldap::sync_pw' @description = %Q{The LDAP sync password} end |
Instance Method Details
#encrypt(string) ⇒ Object
LDAP Bind PW must known and stored in cleartext
22 23 24 |
# File 'lib/simp/cli/config/item/ldap_sync_pw.rb', line 22 def encrypt string string end |
#validate(string) ⇒ Object
16 17 18 |
# File 'lib/simp/cli/config/item/ldap_sync_pw.rb', line 16 def validate string !string.to_s.strip.empty? && super end |