cschiewek/devise_ldap_authenticatable — Issue #69: Devise::LdapAdapter.get_ldap_param return nil when array passed
Author: jsirex
Created: 2012-01-18 16:00:55+00:00
State: open

I have in ldap user with two 'mail' attribute

When I try to search it using get_ldap_param I get nil. When user has only one attribute all ok.

Here is a little test i wrote in irb:

irb(main):006:0> a = [1,2]
=> [1, 2]
irb(main):007:0> a = a.first if false
=> nil
irb(main):008:0> a
=> [1, 2]
```
So 'a' got a right result but return result is 'nil'.
File: ldap_adapter.rb, line: 103