Changeset 827
- Timestamp:
- Aug 29, 2008, 6:17:32 PM (16 years ago)
- Location:
- server/common/oursrc/accountadm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
server/common/oursrc/accountadm/signup-scripts-backend.in
r769 r827 104 104 105 105 dn: apacheServerName=$username.scripts.mit.edu,ou=VirtualHosts,dc=scripts,dc=mit,dc=edu 106 object class: apacheConfig106 objectClass: apacheConfig 107 107 apacheServerName: $username.scripts.mit.edu 108 108 apacheServerAlias: $username.scripts … … 110 110 apacheSuexecUid: $uid1 111 111 apacheSuexecGid: $gid1 112 113 dn: scriptsVhostName=$username.scripts.mit.edu,ou=VirtualHosts,dc=scripts,dc=mit,dc=edu 114 objectClass: scriptsVhost 115 scriptsVhostName: $username.scripts.mit.edu 116 scriptsVhostAlias: $username.scripts 117 scriptsVhostAccount: uid=$username,ou=People,dc=scripts,dc=mit,dc=edu 118 scriptsVhostDirectory: 112 119 113 120 EOF -
server/common/oursrc/accountadm/vhostadd
r765 r827 27 27 IFS=: read user x uid gid x home x <<< "$pw" 28 28 29 user_dn=$(ldapsearch -LLL -x -b ou=People,dc=scripts,dc=mit,dc=edu '(uid=andersk)' dn | perl -0pe 's/\n //g; s/^dn: //') 30 29 31 printf "Docroot: $home/web_scripts" >&2 30 32 read subdir … … 50 52 apacheSuexecUid: $uid 51 53 apacheSuexecGid: $gid 54 55 dn: scriptsVhostName=$host,ou=VirtualHosts,dc=scripts,dc=mit,dc=edu 56 objectClass: scriptsVhost 57 objectClass: top 58 scriptsVhostName: $host 59 EOF 60 61 if [ "${host%mit.edu}" != "$host" ]; then 62 cat <<EOF >> "$tmpfile" 63 scriptsVhostAlias: ${host%.mit.edu} 64 EOF 65 fi 66 67 cat <<EOF >> "$tmpfile" 68 scriptsVhostAccount: $user_dn 69 scriptsVhostDirectory: ${subdir#/} 52 70 EOF 53 71
Note: See TracChangeset
for help on using the changeset viewer.