Password

설명

사용자의 Rational ClearQuest 사용자 암호를 설정하거나 리턴합니다. GetPassword는 암호화된 암호를 리턴합니다. SetLoginName을 사용하여 사용자 암호를 설정할 수도 있습니다.

구문

VBScript

user.Password 
user.Password passwd_string 

Perl

$user->GetPassword();
$user->SetPassword(passwd_string); 
ID
설명
user
User 오브젝트입니다.
passwd_string
사용자의 새 암호를 지정하는 문자열입니다.
Return value
사용자의 암호가 포함된 문자열을 리턴합니다.

예제

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);


피드백