lib/pg_ldap_sync/application.rb in pg-ldap-sync-0.1.0 vs lib/pg_ldap_sync/application.rb in pg-ldap-sync-0.1.1
- old
+ new
@@ -83,10 +83,11 @@
unless name
log.warn "user attribute #{ldap_user_conf[:name_attribute].inspect} not defined for #{entry.dn}"
next
end
+ name.downcase! if ldap_user_conf[:lowercase_name]
log.info "found user-dn: #{entry.dn}"
user = LdapRole.new name, entry.dn
users << user
entry.each do |attribute, values|
@@ -109,9 +110,10 @@
unless name
log.warn "user attribute #{ldap_group_conf[:name_attribute].inspect} not defined for #{entry.dn}"
next
end
+ name.downcase! if ldap_group_conf[:lowercase_name]
log.info "found group-dn: #{entry.dn}"
group = LdapRole.new name, entry.dn, entry[ldap_group_conf[:member_attribute]]
groups << group
entry.each do |attribute, values|