LDAP + NFS + automount home directories permissions issue

autofsldapnfs

When an LDAP user logs into the system they have incorrect permissions to their home directory.

LDAP and NFS services exist on the same server.

The directory shows the correct ownership / permissions:

drwx------. 4 ldaptest ldaptest 4096 Jun  9  2014 ldaptest

however the UID / GID do not match those on the server

client:

bash-4.1$ id
uid=10001(ldaptest) gid=10001(ldaptest) groups=10001(ldaptest)     context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

server:

[root@ldap1 log]# id ldaptest
uid=502(ldaptest) gid=502(ldaptest) groups=502(ldaptest)

How do I resolve this?

Best Answer

Set up LDAP idmap on the server like you have on the workstations. Or add it to all. Use the same UID config method and settings.

Related Topic