ldap_auth.rb.patch

Fix first Bug - Matthias Frey, 08/17/2015 02:04 PM

Download (480 Bytes)

View differences:

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