Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

(dc: mail=myself@anymail.com)

and not default username.

(uid:)

example:

ssh -l user@anymail.com 192.168.0.100

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.