# File lib/simp/cli/config/items/data/simp_options_ldap_base_dn.rb, line 13 def recommended_value if @config_items.key?( 'cli::is_ldap_server') and @config_items.fetch( 'cli::is_ldap_server').value if item = @config_items.fetch( 'cli::network::hostname', nil ) item.value.split('.')[1..-1].map{ |domain| "dc=#{domain}" }.join(',') end else nil end end