1.4. disablecontext

disablecontext is the tool to disable contexts. Whenever a customer tries to log in to a disabled context, the login is denied.

1.4.1. Parameters

-h,--helpPrints a help text
--environmentShow info about commandline environment
--nonlRemove all newlines (\n) from output
-c,--contextid <integer>The id of the context
-N,--contextname <string>Context name

1.4.2. Extra parameters when authentication is enabled

-A,--adminuser <string>Master Admin user name
-P,--adminpass <string>Master Admin password

1.4.3. Return value

0 on success

>0 on failure

1.4.4. Mandatory parameters

(contextid or contextname) {adminuser adminpass}

1.4.5. Command output

On success:

context <contextid> disabled

On failure:

context <contextid> could not be disabled: <reason from server>

1.4.6. Example

root@oxhe~# /opt/open-xchange/sbin/disablecontext -c 123

context 123 disabled