Hello there,
i'm practicing on mounting ldap home directories within autofs
actually i have two virtual machines one as server & other as client
the server has ldap server with home directories exported within NFS3 but not properly configured !!
as i got this error when trying to mount ldap home directories :
Code:
[root@exam01 ldapusr01]# getent passwd ldapusr01
ldapusr01:*:600:600:ldapusr01 ldapusr01:/home/ldapusr01 :/bin/bash
[root@exam01 ldapusr01]# su - ldapusr01
su: warning: cannot change directory to /home/ldapusr01 : No such file or directory
id: cannot find name for group ID 600
-bash: [: /home/ldapusr01: binary operator expected
-bash-4.1$
i know that the problem with NFS on the server machine but unfortunately i dont have time for fixing this issue
anyway this prevents me from getting the right procedures for mounting ldap home directories within NFS3 !!
so, i just want someone to help me by confirming that i'm using the right procedures
i use the following practice :
Code:
Configure autofs requirement :
a. serv1.lab (192.168.3.1) NFS 3 – exports /rhome for ldapuser03
b. ldapuser03 home directory is serv1.lab:/rhome/ldapuser03
c. ldapuser03 home directory should be auto mounted locally beneath /rhome as /rhome/ldapuser03
d. home directories must be writable by their users
i will will solve this by the following procedures :
Code:
1) enable nfs
yum -y install nfs-utils
2) check/install autofs
(rpm -qa | grep ^autofs) || yum -y install autofs
chkconfig autofs on
3) create automount entry
echo "/rhome /etc/auto.ldap" >> /etc/auto.master
echo "ldapuser03 -fstype=nfs,nfsvers=3,rw,sync serv1.lab:/rhome/ldapuser03" > /etc/auto.ldap
4) restart autofs
/etc/init.d/autofs stop && /etc/init.d/autofs start
5) confirm mounting ldap home directory
su - ldapuser03
because i have problems in configuring NFS on the server machine i didnt know wether i'm right or wrong
so please can anyone confirm the previous procedures ?
am i right using the options "-fstype=nfs,nfsvers=3" for mounting NFS 3 ?
any help will be appreciated,
please all accept my best regards,,