I'd like to make an Ubuntu box member of an AD and automount home directories during login from a Samba server.
I managed to join the AD the realmd way. So I can look-up users and their passwd lines.
But I failed to automount the user homes. What I did so far:
- Add autofs to services in
sssd
config - Create an automount config
auto.home
:* -fstype=cifs,rw,sec=krb5 ://myserver/&
I just couldn't find any instructions how to integrate autofs with realmd/sssd approach in Ubuntu 14.04. Any hints?
When I try it manually as root user (sudo -s
)
kinit myuser
mount -t cifs -o rw,user=myuser,sec=krb5 //myserver/myuser /home/myuser
I get: Permission denied
. Which may be due to the fact that sssd uses some hashing algorithm to calculate a user ID, while the Samba server uses some enumeration.
So actually want sssd to handle all credential stuff.