updated to add use of ldap with devise