LDAP snippets for RoR