Sets a user account AuthenticationMode to CQ_AUTHENTICATION, which uses traditional Rational ClearQuest enabled user authentication.
Setting the AuthenticationMode for a user to CQ_AUTHENTICATION sets the Rational ClearQuest user account password to the new_password argument which is then stored as the Rational ClearQuest password in the Rational ClearQuest database, as is done for all traditional Rational ClearQuest authenticated users.
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; } }