Arcath/Adauth — pull request #23 by smsm1 (2012-02-27 15:11:08+00:00)
Title: Potential for a nil error to be thrown, rather than nil being returned

If @conn.search(:filter => Net::LDAP::Filter.eq('sAMAccountName', login)) returns nil, then the .first throws a Nil error.