Changes the specified user's password on the SSH server and authenticates.
Namespace:
Rebex.Net
Assembly:
Rebex.Networking (in Rebex.Networking.dll)
Syntax
| Visual Basic |
|---|
Public Function ChangePassword ( _ userName As String, _ oldPassword As String, _ newPassword As String _ ) As SshPasswordChangeResult |
| C# |
|---|
public SshPasswordChangeResult ChangePassword( string userName, string oldPassword, string newPassword ) |
Parameters
- userName
- Type: System..::..String
Username.
- oldPassword
- Type: System..::..String
Old password.
- newPassword
- Type: System..::..String
New password.