Part of samba
| Class | SiteException | Base element for Sites errors |
| Class | SiteNotFoundException | Raised when the site is not found and it's expected to exists. |
| Class | SiteAlreadyExistsException | Raised when the site is not found and it's expected not to exists. |
| Class | SiteServerNotEmptyException | Raised when the site still has servers attached. |
| Function | create_site | Create a site |
| Function | delete_site | Delete a site |
| Parameters | samdb | A samdb connection |
| configDn | The DN of the configuration partition | |
| siteName | Name of the site to create | |
| Returns | True upon success | |
| Raises | SiteAlreadyExists | if the site to be created already exists. |
| Parameters | samdb | A samdb connection |
| configDn | The DN of the configuration partition | |
| siteName | Name of the site to delete | |
| Returns | True upon success | |
| Raises | SiteNotFoundException | if the site to be deleted do not exists. |
| SiteServerNotEmpty | if the site has still servers in it. | |