Password

Descrizione

Imposta o restituisce la password utente Rational ClearQuest dell'utente. GetPassword restituisce la password crittografata.

È possibile utilizzare SetLoginName per impostare una password del nome di accesso utente. Per l'autenticazione LDAP, il nome di accesso ed il nome utente ClearQuest possono non essere uguali.

Sintassi

VBScript

user.Password 
user.Password passwd_string 

Perl

$user->GetPassword();
$user->SetPassword(passwd_string); 
Identificativo
Descrizione
user
Un oggetto User.
passwd_string
Una stringa che specifica la nuova password dell'utente.
Valore di ritorno
Una stringa che contiene la password dell'utente.

Esempio

Perl

use CQPerlExt;

# Create a Rational ClearQuest admin session
my $adminSession = CQAdminSession::Build();

# Logon as admin
$adminSession->Logon( "admin", "admin", "" );

# Create the user "jsmith" object
my $newUserObj = $adminSession->CreateUser( "jsmith" );
die "Unable to create the user!\n" unless $newUserObj;

# Set the new user's password to secret
$newUserObj->SetPassword("secret");

# All done.
CQAdminSession::Unbuild($adminSession); 

Feedback