ldap_auth.rb.patch
ldap_auth.rb 2015-08-17 15:10:42.306369179 +0200 | ||
---|---|---|
148 | 148 |
def is_in_group?(user, group) |
149 | 149 |
result=@ldap.search( |
150 | 150 |
:base => group, |
151 |
:attributes => @options[:group_field],
|
|
151 |
:attributes => [@options[:group_field]],
|
|
152 | 152 |
:filter => "(#{@options[:group_field]}=#{user.first})") |
153 | 153 | |
154 | 154 |
if result && result.first |