Sets or returns the user's Rational ClearQuest username password. GetPassword renvoie le mot de passe codé.
You can use SetLoginName to set a user login name password. For LDAP authentication, the ClearQuest user name and the login name may not be the same.
VBScript
user.Password
user.Password chaîne_mdp
Perl
$user->GetPassword();
$user->SetPassword(chaîne_mdp);
Perl
use CQPerlExt;
# Créez une session admin Rational ClearQuest
my $adminSession = CQAdminSession::Build();
#Connectez-vous en tant qu'admin
$adminSession->Logon( "admin", "admin", "" );
# Créez l'objet "jsmith" utilisateur
my $newUserObj = $adminSession->CreateUser( "jsmith" );
die "Unable to create the user!\n" unless $newUserObj;
# Définissez le mot de passe du nouvel utilisateur sur secret
$newUserObj->SetPassword("secret");
# Terminé.
CQAdminSession::Unbuild($adminSession);