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: 
 The default is Identification. This attribute is of type TokenImpersonationLevel.  | 
Child Elements
None.
Parent Elements
| Element | Description | 
|---|---|
Specifies the credentials used to authenticate the client to the service.  | 
See Also
Reference
.gif)
Send comments about this topic to Microsoft.
© Microsoft Corporation. All rights reserved.