Export (0) Print
Expand All

ChangePassword

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Changes the password for a Live Meeting account.

public Status ChangePassword(string windowsId,
                         string password
                         out string lmUserId,
                         out string name,
                         out string role)

windowsId

Specifies the Windows identity of the user whose Live Meeting account password should be changed.

password

Specifies the new Live Meeting password.

lmUserId

Returns the user's Live Meeting user ID.

name

Returns the user's Live Meeting name.

role

Returns the user's Live Meeting role: Administrator, Organizer, or Member.

Status

Meaning

Failure_InvalidPassword

The password is invalid. It does not meet the password length, password character set, or password complexity requirements.

HasAccount_NotEntitled

The password was not changed. See the section Web Method Call Return Values above for details.

NoAccount_Entitled

The password was not changed. See the section Web Method Call Return Values above for details.

NoAccount_NotEntitled

The password was not changed. See the section Web Method Call Return Values above for details.

NotInDirectory

The password was not changed. See the section Web Method Call Return Values above for details.

Success

The password was changed.

Unauthorized

The password was not changed. See the section Web Web Method Call Return Values above for details.

WebMethodCallsDisabled

The password was not changed. See the section Web Method Call Return Values above for details.

The ChangePasswordWeb method functions as follows:

  1. The caller invokes the Web method specifying the password and the Windows identity of the user for whom the Live Meeting account password is to be changed.

  2. IIS authenticates the caller using integrated Windows authentication.

  3. The Portal does the following:

    • Verifies that Web method calls are enabled. If not, it returns WebMethodCallsDisabled.

    • Verifies that the caller is a member of a Windows security group listed in Web Method Callers. If not, it returns Unauthorized.

    • Validates the password to ensure that the password meets the password length, password character set, and password complexity requirements. If not, it returns Failure_InvalidPassword.

    • Calls Active Directory to retrieve the attributes for the user whose windowsIdwas specified in the call. If the user cannot be found in Active Directory, it returns NotInDirectory.

    • Calls the Live Meeting GetUserXML API to retrieve the user's Live Meeting account information. If the user does not have an account or is not entitled to have an account, it returns NoAccount_Entitled, NoAccount_NotEntitled, or HasAccount_NotEntitled as appropriate.

    • Calls the ModifyUser XML API and updates the Live Meeting account password.

    • Returns Success if the ModifyUser XML API call is successful; otherwise, it returns the XML API error to the caller.

LMWebService lmWebService = new LMWebService();
lmWebService.Url = "https://localhost/LMPortal/LMWebService.asmx";
lmWebService.Credentials = CredentialCache.DefaultCredentials;

string lmUserId;
string name;
string role;
string password = @"ABCDwxyz!$%^1234";
string windowsId = @"contoso\bill";

Status outcome = lmWebService.ChangePassword(windowsId, password, out lmUserId, out name, out role);
if (outcome == Status.Success)
{
   Console.WriteLine("Password changed for user " + windowsId);
   Console.WriteLine("lmUserId: " + lmUserId);
   Console.WriteLine("name: " + name);
   Console.WriteLine("role: " + role);
}
else
{
   Console.WriteLine("Password not changed for user " + windowsId +
                     " due to error " + outcome);
}
Show:
© 2014 Microsoft