Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Ldap Server configured an running and another server listen to this users database. (Ldap client)
I need to force users login on ssh with user as email


and not default username.



ssh -l

Is this possible?

share|improve this question
This isn't configured in SSH but rather your LDAP client (libnss_ldap.conf to recognize the user, pam_ldap.conf for authorization). – grawity May 16 '12 at 20:28
I added these parameter ( pam_login_attribute mail ) to booth files.. should I do anything else? – habibbr May 17 '12 at 20:33
done the trick isto remap nss_map_attribute uid mail – habibbr May 18 '12 at 20:12
If you found a solution, post it below as an answer. – grawity May 18 '12 at 20:38
ok I did it the trick is to map uid to mail nss_map_attribute uid mail – habibbr May 18 '12 at 21:29

You must log in to answer this question.

Browse other questions tagged .