사용자 계정 AuthenticationMode를 CQ_AUTHENTICATION으로 설정하며, 이는 일반적인 Rational® ClearQuest® 사용 가능 사용자 인증을 사용합니다.
사용자의 AuthenticationMode를 CQ_AUTHENTICATION으로 설정하면 Rational ClearQuest 사용자 계정 비밀번호가 new_password 인수로 설정되며 이것은 모든 전통적 Rational ClearQuest 인증 사용자에 대해 수행되는 것과 마찬가지로 Rational ClearQuest 데이터베이스에 Rational ClearQuest 비밀번호로 저장됩니다.
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;
}
}