# showmount -e zfs-storage | grep /export/home /export/home (everyone) |
# cat /etc/auto.master /var/autofs/zfs-storage /etc/auto.zfs-storage # cat /etc/auto.zfs-storage | grep home home -vers=3,tcp zfs-storage:/export/home |
[zare@389client ~]$ ldapsearch -LLL -x -h 389-ds -b "dc=business,dc=com" objectclass="automountmap" dn: ou=auto.master,ou=automount,dc=business,dc=com ou: auto.master objectClass: top objectClass: organizationalunit objectClass: automountmap dn: ou=auto.home,ou=automount,dc=business,dc=com ou: auto.home objectClass: top objectClass: organizationalunit objectClass: automountmap [zare@389client ~]$ ldapsearch -LLL -x -h 389-ds -b "dc=business,dc=com" objectclass="automount" dn: cn=/home,ou=auto.master,ou=automount,dc=business,dc=com automountInformation: ldap:ou=auto.home,ou=automount,dc=business,dc=com cn: /home objectClass: top objectClass: automount dn: cn=*,ou=auto.home,ou=automount,dc=business,dc=com automountInformation: -fstype=nfs,rw,bg,intr,hard,nfsvers=3,tcp,noacl zfs-storage:/export/home/& cn: * objectClass: top objectClass: automount |
#yum -y install openldap-clients nss-pam-ldapd #yum install authconfig #authconfig --enableldap --enableldapauth --ldapserver=389-ds.business.com \ --ldapbasedn="dc=business,dc=com" --enablemkhomedir --update |
# cat pam_ldap.conf | grep -v ^$ | grep -v ^# base dc=business,dc=com uri ldap://389-ds.business.com/ ssl no tls_cacertdir /etc/openldap/cacerts pam_password md5 |
MAP_OBJECT_CLASS="automountMap" ENTRY_OBJECT_CLASS="automount" MAP_ATTRIBUTE="ou" ENTRY_ATTRIBUTE="cn" |
<autofs_ldap_sasl_conf usetls="yes" tlsrequired="no" authrequired="no" /> |
[root@389client /]# automount -m autofs dump map information =========================== global options: none configured Mount point: /home source(s): type: ldap map: ldap:ou=auto.home,ou=automount,dc=business,dc=com * | -fstype=nfs,rw,bg,intr,hard,nfsvers=3,tcp,noacl zfs-storage:/export/home/& |
zare@389client:~$ pwd /home/zare zare@389client:~$ df -h | grep home zfs-storage:/export/home/zare 2.0T 2.0T 98G 96% /home/zare zare@389client:~$ mount | grep home zfs-storage:/export/home/zare on /home/zare type nfs (rw,intr,hard,nfsvers=3,tcp,noacl,sloppy,addr=10.x.x.x) |