Server Fault is a question and answer site for system and network administrators. 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'm managed to set up LDAP in PAM (linux). A problem I have is that many users have different user names in LDAP than on the local machine... Is there a way to map those user names (e.g. local name->LDAP name) or do I need to rename the user account on the local machine to get LDAP to work?

share|improve this question

They shouldn't have local accounts at all. I thought that was the whole point of LDAP.

You can either rename their home directories to match their LDAP names, or specify their home directory path in LDAP's homeDirectory attribute. Hopefully you've already got their uidNumbers set correctly in LDAP otherwise file permissions won't match up.

share|improve this answer
I only use LDAP for password verification (LDAP is used here mostly for our email system, so no homeDirectory AFAIK). It works great if the local user has the same login name as on LDAP (no problem with uidNumber)... just would like to not have to rename the user accounts. – Arun Persaud Oct 29 '10 at 21:16

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.