Imposta un AuthenticationMode di account utente su CQ_AUTHENTICATION, che utilizza l'autenticazione utente abilitata tradizionale Rational ClearQuest.
Impostare AuthenticationMode per l'utente su CQ_AUTHENTICATION imposta la password dell'account utente Rational ClearQuest sull'argomento new_password quindi memorizzato come la password Rational ClearQuest nel database Rational ClearQuest, come per tutti gli utenti autenticati Rational ClearQuest tradizionali.
VBScript
user.SetCQAuthentication(new_password)
Perl
user->SetCQAuthentication(new_password);
VBScript
'set the user authentication mode to cq: Dim cquser2 ' a user object Dim passwd passwd = "" Dim mode ' the user authentication mode StdOut "Setting CQ authentication for " & cquser2.name & vbCrLf cquser2.SetCQAuthentication passwd ' verify the user authentication mode: StdOut "Getting authentication mode for user " & cquser2.name & vbCrLf mode = cquser2.GetAuthenticationMode StdOut "user mode: " & CStr(mode) & vbCrLf
Perl
# Set user's authentication to CQ authenticated sub set_cq_auth { my ($user, $newpwd) = @_; eval{$user->SetCQAuthentication($newpwd);}; if ($@) { print "Couldnt run user->SetCQAuthentication. Error: $@\n"; die; } }