Gestion des hôtes virtuels de Apaches au travers de LDAP http://modvhostldap.alioth.debian.org/
Permet de configurer Apache au travers de la branche ou=vhosts.
En injectant un ldif du type
dn: apacheServerName=blog.webetdev.com,ou=vhosts,dc=webetdev,dc=com
objectClass: top
objectClass: apacheConfig
apacheServerName: blog.webetdev.com
apacheDocumentRoot: /path/siteweb/blog.webetdev.com
apacheServerAdmin: contact@webetdev.com
Ou via PHP
$dn = « apacheServerName= ».$_GET["domaine"]. »,ou=vhosts,dc=domaine,dc=com »;
$info["objectClass"][0] = « top »;
$info["objectClass"][1] = « apacheConfig »;
$info["apacheServerName"] = « blog.webetdev.com »;
$info["apacheDocumentRoot"] = « /path/site/ »;
$info["apacheServerAdmin"] = « contact@webetdev.com »;
ldap_add($ldapLink,$dn,$info);

