diff options
Diffstat (limited to 'scripts/hostname/nfs1/30-autofs')
-rw-r--r-- | scripts/hostname/nfs1/30-autofs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/scripts/hostname/nfs1/30-autofs b/scripts/hostname/nfs1/30-autofs index 0393acc..fe3a468 100644 --- a/scripts/hostname/nfs1/30-autofs +++ b/scripts/hostname/nfs1/30-autofs @@ -13,13 +13,6 @@ objectClass: automountMap automountMapName: auto_home EOF -# auto_home: * -ldap_add "automountKey=*,automountMapName=auto_home,${automount_basedn}" <<EOF -objectClass: automount -automountKey: * -automountInformation: ${fqdn}:/user/&/priv -EOF - # /nfs/user: auto_user ldap_add "automountKey=/nfs/user,automountMapName=auto_master,${automount_basedn}" <<EOF objectClass: automount @@ -32,6 +25,7 @@ automountMapName: auto_user EOF # auto_user: $user/{pub,priv} +# auto_home: $user for userquota in ${nfs_homedirs:-}; do user=$(echo "$userquota" | awk -F: '{print $1}') ldap_add "automountKey=${user},automountMapName=auto_user,${automount_basedn}" <<EOF @@ -39,6 +33,11 @@ objectClass: automount automountKey: ${user} automountInformation: /priv ${fqdn}:/user/&/priv /pub ${fqdn}:/user/&/pub EOF + ldap_add "automountKey=${user},automountMapName=auto_home,${automount_basedn}" <<EOF +objectClass: automount +automountKey: ${user} +automountInformation: ${fqdn}:/user/&/priv +EOF done # /nfs/group: auto_group |