diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2024-10-21 22:58:20 -0400 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2024-10-21 22:58:20 -0400 |
commit | 39358af4e65a0bcd193797ac5003b0adc9b4225b (patch) | |
tree | 638ee26202acd5e8d21affac3f8b0457b58cfd9c /scripts/hostname | |
parent | 8e3d7dfa20b966b928078d8071d10fb186a0d781 (diff) | |
download | infrastructure-39358af4e65a0bcd193797ac5003b0adc9b4225b.tar.gz |
more packages
Diffstat (limited to 'scripts/hostname')
-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 |