- Timestamp:
- Feb 26, 2016, 6:08:08 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ldap/doc/install-ldap
r2736 r2759 55 55 56 56 ldapvi -b cn=config 57 # Add these indexes ( 8of them):57 # Add these indexes (6 of them): 58 58 59 59 <<<EOF 60 61 add cn=apacheServerName, cn=index, cn=userRoot, cn=ldbm database, cn=plugins, cn=config62 objectClass: top63 objectClass: nsIndex64 cn: apacheServerName65 nsSystemIndex: false66 nsIndexType: eq67 nsIndexType: pres68 69 add cn=apacheServerAlias, cn=index, cn=userRoot, cn=ldbm database, cn=plugins, cn=config70 objectClass: top71 objectClass: nsIndex72 cn: apacheServerAlias73 nsSystemIndex: false74 nsIndexType: eq75 nsIndexType: pres76 60 77 61 add cn=scriptsVhostName, cn=index, cn=userRoot, cn=ldbm database, cn=plugins, cn=config -
trunk/locker/sbin/delete-user
r2146 r2759 37 37 return group_record 38 38 39 def findApacheConfig(l, uid):40 host_records = ll.search_s(41 "ou=VirtualHosts,dc=scripts,dc=mit,dc=edu",42 ldap.SCOPE_SUBTREE,43 ldap.filter.filter_format(44 "(&(objectClass=apacheConfig)" +45 "(apacheSuexecUid=%s))",46 [uid]))47 48 return host_records49 50 39 def findVhost(l, full_name): 51 40 host_records = ll.search_s( … … 73 62 group_record = findGroup(ll, user) 74 63 75 print "Searching for apache configurations..."76 apache_configs = findApacheConfig(ll, user_record[1]['uidNumber'][0])77 78 64 print "Searching for vhost configurations..." 79 65 vhost_configs = findVhost(ll, user_record[0]) … … 83 69 delete_record(ll, group_record[0]) 84 70 85 for config in apache_configs:86 delete_record(ll, config[0])87 88 71 for vhost in vhost_configs: 89 72 delete_record(ll, vhost[0]) -
trunk/locker/sbin/vhostadd
r2735 r2759 42 42 43 43 cat <<EOF > "$tmpfile" 44 dn: apacheServerName=$host,ou=VirtualHosts,dc=scripts,dc=mit,dc=edu45 objectClass: apacheConfig46 objectClass: top47 apacheServerName: $host48 EOF49 50 if [ "${host%mit.edu}" != "$host" ]; then51 cat <<EOF >> "$tmpfile"52 apacheServerAlias: ${host%.mit.edu}53 EOF54 fi55 56 cat <<EOF >> "$tmpfile"57 apacheDocumentRoot: $docroot58 apacheSuexecUid: $uid59 apacheSuexecGid: $gid60 61 44 dn: scriptsVhostName=$host,ou=VirtualHosts,dc=scripts,dc=mit,dc=edu 62 45 objectClass: scriptsVhost -
trunk/locker/sbin/vhostedit
r2638 r2759 7 7 8 8 exec ldapvi --bind sasl -Y GSSAPI -h scripts5.mit.edu -b dc=scripts,dc=mit,dc=edu \ 9 "( |(&(objectClass=apacheConfig)(|$(printf '(apacheServerName=%s)' "$@")$(printf '(apacheServerAlias=%s)' "$@")))(&(objectClass=scriptsVhost)(|$(printf '(scriptsVhostName=%s)' "$@")$(printf '(scriptsVhostAlias=%s)' "$@"))))"9 "(&(objectClass=scriptsVhost)(|$(printf '(scriptsVhostName=%s)' "$@")$(printf '(scriptsVhostAlias=%s)' "$@")))" -
trunk/server/common/oursrc/accountadm/signup-scripts-backend.in
r2735 r2759 135 135 gidNumber: $gid1 136 136 137 dn: apacheServerName=$username.scripts.mit.edu,ou=VirtualHosts,dc=scripts,dc=mit,dc=edu138 objectClass: apacheConfig139 apacheServerName: $username.scripts.mit.edu140 apacheServerAlias: $username.scripts141 apacheDocumentRoot: $homedir/web_scripts142 apacheSuexecUid: $uid1143 apacheSuexecGid: $gid1144 145 137 dn: scriptsVhostName=$username.scripts.mit.edu,ou=VirtualHosts,dc=scripts,dc=mit,dc=edu 146 138 objectClass: scriptsVhost -
trunk/server/common/oursrc/accountadm/vhostadd
r2735 r2759 42 42 43 43 cat <<EOF > "$tmpfile" 44 dn: apacheServerName=$host,ou=VirtualHosts,dc=scripts,dc=mit,dc=edu45 objectClass: apacheConfig46 objectClass: top47 apacheServerName: $host48 EOF49 50 if [ "${host%mit.edu}" != "$host" ]; then51 cat <<EOF >> "$tmpfile"52 apacheServerAlias: ${host%.mit.edu}53 EOF54 fi55 56 cat <<EOF >> "$tmpfile"57 apacheDocumentRoot: $docroot58 apacheSuexecUid: $uid59 apacheSuexecGid: $gid60 61 44 dn: scriptsVhostName=$host,ou=VirtualHosts,dc=scripts,dc=mit,dc=edu 62 45 objectClass: scriptsVhost -
trunk/server/common/oursrc/accountadm/vhostedit
r2638 r2759 6 6 fi 7 7 8 exec ldapvi -b dc=scripts,dc=mit,dc=edu "( |(&(objectClass=apacheConfig)(|$(printf '(apacheServerName=%s)' "$@")$(printf '(apacheServerAlias=%s)' "$@")))(&(objectClass=scriptsVhost)(|$(printf '(scriptsVhostName=%s)' "$@")$(printf '(scriptsVhostAlias=%s)' "$@"))))"8 exec ldapvi -b dc=scripts,dc=mit,dc=edu "(&(objectClass=scriptsVhost)(|$(printf '(scriptsVhostName=%s)' "$@")$(printf '(scriptsVhostAlias=%s)' "$@")))"
Note: See TracChangeset
for help on using the changeset viewer.