IMAPasswordManagement::ChangePassword Method
The IMAPasswordManagement.ChangePassword(CSEntry, String, String) method changes the password on the CSEntry object. This method is called when the call to the IMAPasswordManagement.BeginConnectionToServer(String, String, String, String) is successful.
Syntax
public void ChangePassword(
CSEntry csentry,
String OldPassword,
String NewPassword
);
Public Sub ChangePassword( _
ByVal csentry As CSEntry, _
ByVal OldPassword As String, _
ByVal NewPassword As String _
)
Implements IMAPasswordManagement.ChangePassword
Parameters
csentry
The CSEntry object that specifies the user.OldPassword
The old password.NewPassword
The new password.
Return Value
This method does not return a value.
Exceptions
Exception type | Condition |
---|---|
AccessDeniedException | The password extension fails to set the password in the connected directory. |
ObjectTypeNotSupportedException | The object type does not support setting or changing passwords. |
EntryPointNotImplementedException | The password extension does not implement this method. |
PasswordExtensionException | The password extension throws an unknown exception. |
PasswordIllFormedException | The supplied password contains extended characters or invalid characters. |
PasswordPolicyViolationException | The password does not comply with the password policy. |
ServerDownException | The connected directory extension cannot establish a connection to the connected directory. |
Requirements
Product | Microsoft Identity Integration Server 2003 SP1 |
Namespace | Microsoft.MetadirectoryServices |
Assembly | Microsoft.MetadirectoryServices |
.NET Framework | .NET Framework 2.0 |
See Also
Send comments about this topic to Microsoft
Build date: 2/16/2009