How To Authenticate Users Against Active Directory Without Windows Authentication

- J.D. Meier, Carlos Farre, Jason Taylor, Prashant Bansode, Steve Gregersen, Madhu Sundararajan, Rob Boucher

Use UserName authentication to authenticate users against Active Directory or local machine accounts, when you cannot use Windows Authentication. UserName authentication will, by default map your user’s credentials to Windows account and authenticates the users against AD.

The following code snippet configures a WCF service to use the Username Authentication
…
<bindings>
  <wsHttpBinding>
    <binding name="wsHttpEndpointBinding">
      <security>
*        <message clientCredentialType="UserName" />*
      </security>
    </binding>
  </wsHttpBinding>
</bindings>
…

Note: Use message security to protect user credentials passed over the network.

Additional Resources

Last edited Jun 13, 2008 at 5:48 PM by prashantbansode, version 1

Comments

No comments yet.