Macromedia flash media server 2-server-side actionscript language reference Manual De Usuario
addAdmin()
13
addAdmin()
Availability
■
Flash Player 6.
■
Flash Communication Server MX 1.0.
Usage
addAdmin(admin_name, password [,scope])
Parameters
admin_name
A string that contains the user name of the administrator being added.
password
Password of that administrator. The password is encoded before it is written to
the Server.xml configuration file.
scope
Optional; string that specifies whether the administrator is a server administrator or a
virtual host administrator, and for which virtual host. To add a server administrator, specify
server
.
To add a virtual host administrator to the virtual host to which you’re connected, omit this
parameter. To add a virtual host administrator to a different virtual host, specify the virtual
host as
parameter. To add a virtual host administrator to a different virtual host, specify the virtual
host as
adaptor_name/virtual_host_name
.
Returns
If the call succeeds, the server sends a reply information object with a
level
property of
status
and a
code
property of
NetConnection.Call.Success
. The Server.xml
configuration file is updated with the new administrator.
If the call fails, the server sends a reply information object with a
level
property of
error
and a
code
property of
NetConnection.Admin.CommandFailed
or a more specific value, if
available. Some objects might also have a
description
property that contains a string
describing the cause of the failure.
If the specified administrator already exists in the system, this command fails.
Description
Adds an administrator to the system. You can add a server administrator or a virtual host
administrator, depending on the parameters you specify.
administrator, depending on the parameters you specify.
You must be a server administrator to add an administrator to the system.