lib/cratus/config.rb in cratus-0.2.7 vs lib/cratus/config.rb in cratus-0.3.7
- old
+ new
@@ -1,7 +1,8 @@
module Cratus
# A generic way of constructing a mergeable configuration
+ # rubocop:disable Metrics/MethodLength
class Config < OpenStruct
# A Hash of the default configuration options
def defaults
{
group_dn_attribute: :cn,
@@ -19,10 +20,11 @@
user_displayname_attribute: :displayName,
user_memberof_attribute: :memberOf,
host: 'ldap.example.com', port: 389,
basedn: 'dc=example,dc=com',
username: 'username',
- password: 'p@assedWard!'
+ password: 'p@assedWard!',
+ include_distribution_groups: true
}
end
# Construct a base config using the following order of precedence:
# * environment variables