app[:configuration] = { :scalr => { # Tells Scalr to use LDAP for authentication :auth_mode => 'LDAP',
:connections => { :ldap => { # Tells Scalr what LDAP server to connect to :bind_type => 'simple', :host => 'ldaps://ad.ddd.ccc.com:3269', :port => '3269',
# Tells Scalr where to look at for users and groups :base_dn => 'CN=USER,OU=xxxx,DC=ad,DC=xxx,DC=com', :base_dn_groups => 'OU=xxx,OU=Sites,DC=ad,DC=xxx,DC=com',
:user => 'cn="xx,ou=xx,ou=xxx,ou=xxx,dc=ad,dc=xxx,dc=com"', :password => '*****',
# Tells Scalr what attributes to look at :username_attribute => 'sAMAccountName', :groupname_attribute => 'memberOf',
# Tells Scalr how group membership is represented :group_member_attribute_type => 'memberUid',
# Tells Scalr to use filters to speed up queries :filter => { :users => '(&(objectClass=posixAccount))', :groups => '(&(objectClass=groupOfNames))', },
# Uncomment for debug output if you can't login :debug => 1, } }
app[:configuration] = {
:scalr => {
# Tells Scalr to use LDAP for authentication
:auth_mode => 'ldap',
:connections => {
:ldap => {
# Tells Scalr what LDAP server to connect to
:bind_type => 'regular',
:host => 'ldaps://auth01.my.company.com',
:port => '636',
:user => 'CN=Scalr,OU=Service Accounts,DC=my,DC=company,DC=com',
:pass => 'xxxxxxxxxxxxxxxx',
# User Attributed
:domain => 'my.company.com',
:mail_attribute => 'mail',
:fullname_attribute => 'displayName',
# Tells Scalr where to look at for users and groups
:base_dn => 'OU=Employees,DC=my,DC=company,DC=com',
:base_dn_groups => 'OU=Security Groups,DC=my,DC=company,DC=com',
# Tells Scalr what attributes to look at CN
:username_attribute => 'sAMAccountName',
:groupname_attribute => 'CN',
# Tells Scalr how group membership is represented
:group_member_attribute_type => 'member',
# Tells Scalr to use filters to speed up queries
:filter => {
:users => '(&(objectClass=person))',
:groups => '(&(objectClass=group))',
},
}
}
}
}