additional info: nisMapEntry: multiple values provided
Hi All,
I created a OPENLDAP server on RHEL 7.2, created another NFS server on RHEL 7.2 and created a NFS client on RHEL 7.
I'm having user home dir and application a/c home dir on the NFS server those are 2 different exports.
But when I login to the NFS client machine, I want both the user home dir and application a/c home dir to be mounted under /home on the NFS client.
I'm able to achieve this requirement by creating local mount using autofs as below on the NFS client.
[root@r7ldnclient ~]# cat /etc/auto.home
* -rw c7gluster1.ajrhel7.net:/home/& \
c7gluster1.ajrhel7.net:/exports/apphome/&
But instead of local AUTOFS on the NFS client, I want to create a LDAP nisMapEntry both for user home dir and application home dir.
OPENLDAP SERVER on RHEL 7.2 : I created as below
/home, auto.master, ajrhel7.net
dn: cn=/home,nisMapName=auto.master,dc=ajrhel7,dc=net
objectClass: nisObject
cn: /home
nisMapName: auto.master
nisMapEntry: auto.home
auto.home, ajrhel7.net
dn: nisMapName=auto.home,dc=ajrhel7,dc=net
objectClass: top
objectClass: nisMap
nisMapName: auto.home
/, auto.home, ajrhel7.net
dn: cn=/,nisMapName=auto.home,dc=ajrhel7,dc=net
objectClass: nisObject
cn: /
nisMapName: auto.home
nisMapEntry: -fstype=nfs,rw c7gluster1.ajrhel7.net:/home/&
My NFS Server is exporting user home dir & application home dir as below
[root@c7gluster1 home]# exportfs -v
/exports/apphome
192.168.7.0/24(rw,wdelay,root_squash,no_subtree_check,sec=sys,rw,secure,root_squash,no_all_squash)
/home 192.168.7.0/24(rw,wdelay,root_squash,no_subtree_check,sec=sys,rw,secure,root_squash,no_all_squash)
But I want LDAP nisMapEntry for application home dir to be mounted on the same mount point i.e /home just like the user home home get mounted
[root@ajc7master ldif]# cat autofs-appmap.ldif
dn: cn=/,nisMapName=auto.home,dc=ajrhel7,dc=net
objectClass: nisObject
cn: /
nisMapName: auto.home
nisMapEntry: -fstype=nfs,rw c7gluster1.ajrhel7.net:/home/&
nisMapEntry: -fstype=nfs,rw c7gluster1.ajrhel7.net:/exports/apphome/&
[root@ajc7master ldif]#
Error :
[root@ajc7master ldif]# ldapadd -D "cn=ajroot,dc=ajrhel7,dc=net" -x -W -f autofs-appmap.ldif
Enter LDAP Password:
adding new entry "cn=/,nisMapName=auto.home,dc=ajrhel7,dc=net"
ldap_add: Constraint violation (19)
additional info: nisMapEntry: multiple values provided
So please suggest how do I create nisMapEntry for 2 exports to be mounted on the same mount point