<windows> of <clientCredentials> Element

Specifies the settings for a Windows credential to be used to represent the client.

<system.serviceModel>

  <behaviors>

    <endpointBehaviors>

      <behavior> of <endpointBehaviors>

        <clientCredentials>

          <userNameAuthentication>

                                    
                                    <windows allowNtlm="Boolean"
                                
                                    
                                            
                                    
                                        allowImpersonationLevel="Identification/Impersonation/Delegation/Anonymous/None"
                                
                                    
                                    />
                                

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description

allowNtlm

A Boolean value that indicates whether Windows security is enabled at the workgroup level. false means that Windows security is supported only at domain level. The default is true.

allowImpersonationLevel

Sets the impersonation preference that the client communicates to the server. The impersonation mode that the client selects is not enforced on the server. Valid values include the following:

  • Identification: The server can get the identity and privileges of the client, but cannot impersonate the client.

  • Impersonation: The server can impersonate the client's security context on the local system.

  • Delegation: The server can impersonate the client's security context on remote systems.

  • Anonymous: The server cannot impersonate or identify the client.

  • None: An impersonation level is not assigned.

The default is Identification. This attribute is of type TokenImpersonationLevel.

Child Elements

None.

Parent Elements

Element Description

<clientCredentials>

Specifies the credentials used to authenticate the client to the service.

See Also

Reference

WindowsClientElement

Footer image

Send comments about this topic to Microsoft.
© Microsoft Corporation. All rights reserved.