This features aims to have a better management of services provided by Hosts (mail, samba, funambol…).
When creating an Host, the application will look into the ServiceHost table to see which service are available for an host. A combobox (or checkbox?) will be added to add service to an host. When added a js function will automaticly add to the form all properties listed into ServicePropertyHost. The widget property will be defined by the serviceproperty_type. Each type will have a template. A specific type will be a foreign key to an obm entity (for exemple when a domain have the imap service, a property will be the imap servers linked to this domain).
The same method will be used for the domain and user creation.
The fact that a user cannot have the mail service if the domain doesn't have the mail service will be hardcoded. The database schema doesn't currently support this kind of limitation.
Here is some services :
This is not an exhaustive list
|Service name||Associated entity|
|backup_ftp||host entity. Need to run FTP service|
|backup||backup_ftp||Domain entity ID||Host ID|
|backup_ftp||login||Host entity ID||login|
|backup_ftp||password||Host entity ID||password|
|backup_ftp||root||Host entity ID||FTP root default '/'|
Better solution consist to :
This solution need to allow domain administrator to update backup properties which are linked to Domain, without allowing domain administrator to update all of his domain properties.