Click to Rate and Give Feedback
MSDN
MSDN Library
Networking
Network Protocols
Reference
RPC Constants
 Authentication-Level Constants
This page is specific to
.NET Framework 3.0

Other versions are also available for the following:
Authentication-Level Constants

The authentication-level constants represent authentication levels passed to various run-time functions. These levels are listed in order of increasing authentication. Each new level adds to the authentication provided by the previous level. If the RPC run-time library does not support the specified level, it automatically upgrades to the next higher supported level.

Constant Description

RPC_C_AUTHN_LEVEL_DEFAULT

Uses the default authentication level for the specified authentication service.

RPC_C_AUTHN_LEVEL_NONE

Performs no authentication.

RPC_C_AUTHN_LEVEL_CONNECT

Authenticates only when the client establishes a relationship with a server.

RPC_C_AUTHN_LEVEL_CALL

Authenticates only at the beginning of each remote procedure call when the server receives the request. Does not apply to remote procedure calls made using the connection-based protocol sequences (those that start with the prefix "ncacn"). If the protocol sequence in a binding handle is a connection-based protocol sequence and you specify this level, this routine instead uses the RPC_C_AUTHN_LEVEL_PKT constant.

RPC_C_AUTHN_LEVEL_PKT

Authenticates only that all data received is from the expected client. Does not validate the data itself.

RPC_C_AUTHN_LEVEL_PKT_INTEGRITY

Authenticates and verifies that none of the data transferred between client and server has been modified.

RPC_C_AUTHN_LEVEL_PKT_PRIVACY

Includes all previous levels, and ensures clear text data can only be seen by the sender and the receiver. In the local case, this involves using a secure channel. In the remote case, this involves encrypting the argument value of each remote procedure call.

Remarks

Regardless of the value specified by the constant, ncalrpc always uses RPC_C_AUTHN_LEVEL_PKT_PRIVACY.

RPC_C_AUTHN_LEVEL_CALL, RPC_C_AUTHN_LEVEL_PKT, RPC_C_AUTHN_LEVEL_PKT_INTEGRITY, and RPC_C_AUTHN_LEVEL_PKT_PRIVACY are not supported on Windows Me/98/95; a Windows Me/98/95 server can only accept incoming calls at the RPC_C_AUTHN_LEVEL_CONNECT level.

Requirements

Client Requires Windows Vista, Windows XP, or Windows 2000 Professional.
Server Requires Windows Server 2008, Windows Server 2003, or Windows 2000 Server.
Header

Declared in Rpcdce.h.

See Also

RpcBindingInqAuthInfo
RpcBindingSetAuthInfo
RpcMgmtInqDefaultProtectLevel
RpcBindingInqAuthClient
RpcBindingInqAuthClientEx
RpcBindingSetAuthInfoEx
RpcBindingInqAuthInfoEx


Send comments about this topic to Microsoft

Build date: 2/7/2008

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content      
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker