ACCOUNT_USER_N where N is from 1 to 10.

 

Description

Get or set user index N account name and password.
Only root and the same user index account have authorized to execute this command.

When write, the account name has not be the same as the root account name.
The user account is valid if only if the condition of ((strlen(name) > 0) && (strlen(pwd) > 0)) is true.

Only the root-level account could have right to get or set all settings in the device. The user-level account could get the video and audio stream and some system information only.

If the CHANNEL=n was set with this URL to the multiple channel video encoders, this URL is read-only command and the Router's user account N settings will be returned.

Input Argument

n,m
where
n  : Character string (<32 bytes) for user index N account name
m : Character string (< 64 bytes) for user index N account password
The valid characters for account name are defined in the Valid Character in Login Name section in Valid Characters in URI document.
The valid characters for account password are defined in the Valid Character in Login Password in Valid Characters in URI document.

When set the NULL string in the input argument, the associated user account entry becomes invalid. That means the n and m should set to NULL at the same time to invalid the user account entry.
For example, ACCOUNT_USER_1=',' will invalid user account 1 entry.

Attribute

Return of Message

ACCOUNT_USER_N=','
OK: ACCOUNT_USER_N='user,123'
or
ERROR: ACCOUNT_USER_N=','

Status

This URL is new command for replacing the URL ACCOUNT_USER_NAME_N and ACCOUNT_USER_PASSWORD_N

See Also

ACCOUNT, ACCOUNT_ROOT_NAME, ACCOUNT_ROOT_PASSWORD, ACCONT_ROOT, ACCOUNT_USER_NAME_N, ACCOUNT_USER_PASSWORD_N

Example

http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&ACCOUNT_USER_N
or
http://ip:port/cgi-bin/cmd/system?ACCOUNT_USER_N
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&ACCOUNT_USER_N=user,123
or
http://ip:port/cgi-bin/cmd/system?ACCOUNT_USER_N=user,123

Back to

HOME, SYSTEM CGI