Stop User

Usage

stop user $user@$domain

- or -

stop user $user domain $domain 

Description

The command stop user is used to stop a REVLY Virtual User record. Emails sent to stopped users will bounce. Stopped users are not able to login to services.

Symbol

stop user

Cardinal

action-identifier

Language

User Admin

Module

Admin

Parameters

ChangeDate

usage: changedate $timestamp

description: A Unix timestamp representing the last time the user record was modified.

default: Current timestamp

LDAP Suffix

usage: ldap suffix $ldapsuffix

description: The base search path of the LDAP tree.

default: revly

Actions

- Generate a LDIF file to stop the user.

- Execute ldapmodify to stop the user in OpenLDAP.

Template

Template
# Stop virtualUser
dn: user=:#USER#:,domain=:#DOMAIN#:,o=domains,dc=:#LDAP_SUFFIX#:
changetype: modify
replace: active
active: FALSE
-
replace: delete
delete: TRUE
-
replace: changeDate
:#CHANGE_DATE#:

Return Codes

CodeHuman Readable Output
0Stopped the user '$user@$domain'.
1The user '$user@$domain' does not exist.

Example

Input

stop user sally@example.com

Generated LDIF file

# Stop virtualUser
dn: user=sally,domain=example.com,o=domains,dc=revly
changetype: modify
replace: active
active: FALSE
-
replace: delete
delete: TRUE
-
replace: changeDate
changeDate: 1419358202

Output

Stopped the user 'sally@example.com'.

Returncode

0