Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

InvisibleVerifyCredentials() 函数

  • Last UpdatedSep 24, 2024
  • 1 minute read

InvisibleVerifyCredentials() 函数可以用在同步 QuickScript 中,以验证给定用户的凭证,而不必将用户登录到 InTouch HMI。

类别

安全性

语法

AnalogTag=InvisibleVerifyCredentials( "UserId", "Password", "Domain" );

参数

UserId

作为本地计算机、工作组或域的一部分的 Windows 操作系统用户帐户名。

密码

帐户口令。

帐户的 Windows 域。

附注

如果提供的用户、口令及域组合有效,则以整数的形式返回与用户关联的相应访问级别。否则返回 -1。

注意:InvisibleVerifyCredentials() 函数必须从同步 QuickScript 中运行。如果从异步 QuickScript 中运行,此函数总是返回 -1。

此函数不更改当前登录的用户。Domain 参数仅对基于操作系统的安全性是有效的。如果使用 ArchestrA 安全模式,并且如果 ArchestrA 安全性又使用基于操作系统的安全性,则 UserId 参数应该包含带域名或计算机名的全限定用户名。

示例

AnalogTag=InvisibleVerifyCredentials( "john", "Password", "corporate_hq" );

另请参阅

AddPermission() 函数

AttemptInvisibleLogon() 函数

IsAssignedRole() 函数

PostLogonDialog() 函数

QueryGroupMembership() 函数