Erase Domain
Usage
erase domain $domain
Description
The command erase domain is used to remove a Virtual Domain record for REVLY. This action cannot be undone.
Symbol
erase domain
Cardinal
action-identifier
Language
Domain Admin
Module
Admin
Parameters
LDAP Suffix
usage: ldap suffix $ldapsuffix
description: The base search path of the LDAP tree.
default: revly
Actions
- Generate a LDIF file to remove the domain information.
- Execute ldapmodify to remove the domain from OpenLDAP.
Template
# Erase virtualUser
dn: user=:#USER#:,domain=:#DOMAIN#:,o=domains,dc=:#LDAP_SUFFIX#:
changetype: delete
Return Codes
Code | Human Readable Output |
---|---|
0 | Erased the domain '$domain' |
1 | The domain '$domain' does not exist. |
Example
Input
erase domain example.com
Generated LDIF file
# Erase virtualDomain
dn: domain=example.com,o=domains,dc=revly
changetype: delete
Output
Erased the user 'user@example.com'.
Returncode
0