I am having a frustrating time setting up ldap and automount, I am unsure if this is by design or if I am failing to understand something here.
To start off I have ldap setup and authentication working perfectly between servers using ssh, however when trying to use automount (using a nfs 3 share from the ldap server) the users directories appear to 'auto mount' as designed however the directories are owned by root, and I cannot write to them. However -- I can specify the share manually in /etc/fstab and mount them just fine! I'm totally perplexed at this point and have no idea where I am failing at.
So on my ldap server I have the nfs shares setup-
(All IP address schemes have been masked)
/etc/exports
Code: Select all
/home/ldapusers/scott/ 192.168.1.0/24(rw,sync,no_root_squash,no_all_squash)
Code: Select all
# scott, People, ldap.mydomain.com
dn: uid=scott,ou=People,dc=ldap,dc=mydomain,dc=com
uid: scott
cn: scott
sn: scott
mail: scott@ldap.domain.com
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword:: e2NyeXB0fSQ2JC4xMWhqTC9KJHNpWVJWeU5ZYXVGaTRLaHpJOXUyZ3VOcFJZY2J
HbzBuQXpET0lMdU1ZZVRCZDN5MnZ4V1E4Z29wQlVtVzJ1QzFQNFVhTkVRenpMUlpDNnh4bmw0UlYv
shadowLastChange: 16642
shadowMin: 0
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/bash
uidNumber: 5000
gidNumber: 5000
homeDirectory: /home/ldapusers/scott
On the client side I have this setup for automount:
/etc/auto.master
Code: Select all
/misc /etc/auto.misc
/net -hosts
+auto.master
/home/ldapusers/scott /etc/auto.home
Code: Select all
* -fstype=nfs,rw,nosuid,soft ldap.mydomain.com:/home/ldapusers/scott/&
Code: Select all
Domain = ldap.mydomain.com
[Mapping]
Nobody-User = nobody
Nobody-Group = nobody
[Translation]
Method = nsswitch
Code: Select all
[root@oem ldapusers]# ls -ld /home/ldapusers/
dr-xr-xr-x 3 root root 4096 Jul 26 20:44 /home/ldapusers/
Code: Select all
[root@oem scott]# ls -la /home/ldapusers/scott/
total 4
drwxr-xr-x 3 root root 0 Jul 26 21:25 .
dr-xr-xr-x 3 root root 4096 Jul 26 21:24 ..
drwx------ 2 scott scott 54 Jul 26 16:45 .ssh
Code: Select all
[root@pc scott]# md5sum /home/ldapusers/scott/.ssh/id_dsa.pub
9c0096871af61c2c65857afdebd689b7 /home/ldapusers/scott/.ssh/id_dsa.pub
Code: Select all
Jul 26 21:26:36 ldap rpc.mountd[2568]: can't stat exported dir /home/ldapusers/scott/md5su
Code: Select all
[root@pc home]# ls -l /home/ldapusers/
total 4
drwx------ 6 scott scott 4096 Jul 26 18:20 scott
Code: Select all
[root@pc home]# ls -la /home/ldapusers/scott/
total 32
drwx------ 6 scott scott 4096 Jul 26 18:20 .
dr-xr-xr-x 3 root root 4096 Jul 26 21:24 ..
-rw------- 1 scott scott 401 Jul 26 18:21 .bash_history
-rw-r--r-- 1 scott scott 18 Mar 5 17:06 .bash_logout
-rw-r--r-- 1 scott scott 193 Mar 5 17:06 .bash_profile
-rw-r--r-- 1 scott scott 231 Mar 5 17:06 .bashrc
-rw-rw-r-- 1 scott scott 0 Jul 26 18:20 me
drwxrwxr-x 2 scott scott 20 Jul 26 19:18 new
drwx------ 2 scott scott 54 Jul 26 16:45 .ssh
drwx------ 2 scott scott 36 Jul 26 16:47 .ssh.bad
drwx------ 2 scott scott 54 Jul 26 16:45 .ssh.bak
-rw-rw-r-- 1 scott scott 16 Jul 26 17:22 test
-rw------- 1 scott scott 632 Jul 26 17:33 .viminfo
Code: Select all
[root@oem home]# md5sum /home/ldapusers/scott/.ssh/id_dsa.pub
9c0096871af61c2c65857afdebd689b7 /home/ldapusers/scott/.ssh/id_dsa.pub