Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Visual Studio 2013 - Authenticating against Active Directory

$
0
0

Using Visual Studio 2013, I have created an ASP.NET web forms application that I want to authenticate users against our Active Directory (AD) I am using the following reference for my coding:

How To: Use Forms Authentication with Active Directory in Multiple Domains 
http://msdn.microsoft.com/en-us/library/ff650307.aspx

However, when I run the app through debug to test it fails with:

-----------------------------------------------------------------------------------------------------------------------------

"Access is denied.

Description:An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.

Error message 401.2.: Unauthorized: Logon failed due to server configuration.  Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server.  Contact the Web server's administrator for additional assistance."

----------------------------------------------------------------------------------------------------------------------------------------------------

The app never even loads a login screen so I can enter credentials, it just fails with that error. I have used this AD coding reference before in older versions of Visual Studio and it worked fine. I have checked the AD credentials and they are OK (they work fine in the previously mentioned other application)

The application ran fine until I added the AD Authentication to the Web.Config, so I know it's causing the error. When I initially created the web application I chose "No Authentication" is that why it is failing? If so, what do I want to choose, as far as authentication, when creating the initial application? Choices are:

None
Individual User Accounts
Organizational Accounts
Windows Authorization

Thank you for any insight!


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>