Index: create/action.php =================================================================== --- create/action.php (revision 412) +++ create/action.php (working copy) @@ -117,8 +117,21 @@ //} } - print('
apache_vhost, duurt te lang, manueel als root op dad /root/scripts/update_from_ldap.sh uitvoeren. '); - $restart_apache = 1; //suid_apache_vhosts_submit(); + // voeg vhost toe aan ldap + $vhost['dn'] = 'apacheServerName=' . $login . 'ulyssis.be,' . $info['dn']; + $vhost['apacheServerName'] = "$login.ulyssis.be"; + $vhost['apacheServerAlias'] = array("$login.studentenweb.org"); + $vhost['apacheDocumentRoot'] = $info['homeDirectory'] . '/www'; + $vhost['apacheServerAdmin'] = "$login@ulyssis.org"; + $vhost['apacheOpenBasedir'] = $info['homeDirectory']; + $vhost['apacheScriptAlias'] = $info['homeDirectory'] . '/www/cgi-bin'; + $vhost['apacheSuexecUid'] = $info['uidNumber']; + $vhost['apacheSuexecGid'] = $info['gidNumber']; + $vhost['action'] = 'add'; + $ldap->query($vhost); + print('

Vhosts voor user toevoegen aan LDAP

'); + + priny('
apache_vhost, duurt te lang, manueel als root op dad /root/scripts/update_from_ldap.sh uitvoeren. '); print(' .'); } print('
Done.');