I am using CentOS7. I have tried to test "autofs". I have created 2 centos servers as cent_ldap and cent_client. I have configured cent_client to use ldap authentication successfully. In cent_ldap I have created nfs export as
/home *(rw)
Using cent_client I have created
mkdir /mnt/fordirect -p
mkdir /mnt/forindirect -p
In the file /etc/auto.master.d/direct.autofs -> /- /etc/auto.direct
In the file auto.direct -> /mnt/fordirect -rw,sync cent_ldap:/home
In the file /etc/auto.master.d/indirect.autofs -> /mnt /etc/auto.indirect
In the file auto.indirect -> forindirect -rw,sync cent_ldap:/home
systemctl restart autofs autofs is started without any error
But when I test those mounts from root user
ls /mnt/fordirect --> user1 user2 user3
ls /mnt/forindirect --> #it didnt give any output
Can someone tell me why is there indirect mount didnt give any output?