lib/cratus/config.rb
def defaults
      {
        group_dn_attribute: :cn,
        group_member_attribute: :member,
        group_description_attribute: :description,
        group_objectclass: :group,
        group_basedn: 'ou=groups,dc=example,dc=com',
        group_memberof_attribute: :memberOf,
        user_dn_attribute: :samaccountname,
        user_objectclass: :user,
        user_basedn: 'ou=users,dc=example,dc=com',
        user_account_control_attribute: :userAccountControl,
        user_department_attribute: :department,
        user_lockout_attribute: :lockouttime,
        user_mail_attribute: :mail,
        user_displayname_attribute: :displayName,
        user_memberof_attribute: :memberOf,
        host: 'ldap.example.com', port: 389,
        basedn: 'dc=example,dc=com',
        username: 'username',
        password: 'p@assedWard!',
        include_distribution_groups: true
      }
    end
def defaults
      {
        group_dn_attribute: :cn,
        group_member_attribute: :member,
        group_description_attribute: :description,
        group_objectclass: :group,
        group_basedn: 'ou=groups,dc=example,dc=com',
        group_memberof_attribute: :memberOf,
        user_dn_attribute: :samaccountname,
        user_objectclass: :user,
        user_basedn: 'ou=users,dc=example,dc=com',
        user_account_control_attribute: :userAccountControl,
        user_department_attribute: :department,
        user_lockout_attribute: :lockouttime,
        user_mail_attribute: :mail,
        user_displayname_attribute: :displayName,
        user_memberof_attribute: :memberOf,
        host: 'ldap.example.com', port: 389,
        basedn: 'dc=example,dc=com',
        username: 'username',
        password: 'p@assedWard!',
        include_distribution_groups: true
      }
    end
def defaults { group_dn_attribute : :cn , group_member_attribute : :member , group_description_attribute : :description , group_objectclass : :group , group_basedn : 'ou=groups,dc=example,dc=com' , group_memberof_attribute : :memberOf , user_dn_attribute : :samaccountname , user_objectclass : :user , user_basedn : 'ou=users,dc=example,dc=com' , user_account_control_attribute : :userAccountControl , user_department_attribute : :department , user_lockout_attribute : :lockouttime , user_mail_attribute : :mail , user_displayname_attribute : :displayName , user_memberof_attribute : :memberOf , host : 'ldap.example.com' , port : 389 , basedn : 'dc=example,dc=com' , username : 'username' , password : 'p@assedWard!' , include_distribution_groups : true } end
A Hash of the default configuration options
A Hash of the default configuration options