大网数据广告活动
网络与域名解析

Client Authentication Credentials

· 52CE 我爱测

Each authenticated client must provide authentication credentials to the server.

Each authenticated client must provide authentication credentials to the server. Under RPC, the client stores its authentication credentials in the binding between the client and the server. To do this, the client calls RpcBindingSetAuthInfo or RpcBindingSetAuthInfoEx.

There are two types of credentials—implicit and explicit:

  • Explicit credentials exist when the client supplies username, password, and domain.
  • Implicit credentials exist when the client uses credentials from the thread or process token calling the RpcBindingSetAuthInfo or RpcBindingSetAuthInfoEx functions.

Clients should refrain from supplying explicit credentials because storing, manipulating, and retrieving a user password can introduce a security vulnerability into a distributed system if explicit credentials are used.

To use implicit credentials, the client calls RpcBindingSetAuthInfo(Ex). The security system and RPC obtain credentials from the thread or process token for use in the authentication session.

If the client uses explicit credentials, the fifth parameter of these two functions is of type RPC_AUTH_IDENTITY_HANDLE. This is a flexible type that is a pointer to a data structure. The contents of the data structure can differ with each authentication service. Currently, the SSPs that RPC supports require that your application set RPC_AUTH_IDENTITY_HANDLE to point to a SEC_WINNT_AUTH_IDENTITY structure. The SEC_WINNT_AUTH_IDENTITY structure contains fields for a user name, domain, and password.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。