changePswd()
17
The following is an example of a Debug approval request:
nc_admin.call("approveDebugSession", null, appName/instName", 1234);
changePswd()
Availability
■
Flash Player 6.
■
Flash Communication Server MX 1.0.
Usage
changePswd(
admin_name, password
[,
scope
])
Parameters
admin_name
A string that contains the name of the administrator whose password is being
changed.
password
A string that contains that administrator’s new password.
scope
Optional; a string that specifies whether the administrator is a server administrator or
virtual host administrator, and for which virtual host.
To change the password for the specified administrator on the virtual host to which you’re
connected, omit this parameter. To change the password for the specified administrator on a
different virtual host, specify
adaptor_name
/
virtual_hostname
.
To change a server administrator’s password, specify
server
.
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
.
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 does not exist, this command fails.
Description
Changes the password for the specified administrator. The password is encoded before it is
written to the Server.xml configuration file.
Virtual host administrators can change only their own password.