Password

説明

ユーザーの Rational ClearQuest ユーザー名パスワードを設定または戻します。GetPassword は暗号化パスワードを戻します。

ユーザーのログイン名パスワードを設定するには、SetLoginName を使用できます。LDAP 認証の場合、ClearQuest ユーザー名とログイン名は同一でないことがあります。

構文

VBScript

user.Password 
user.Password passwd_string 

Perl

$user->GetPassword();
$user->SetPassword(passwd_string); 
識別子
説明
user
User オブジェクト。
passwd_string
ユーザーの新規パスワード指定する String。
戻り値
ユーザーのパスワードを含む String。

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

フィードバック