Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am developing an ASP.NET application which works inside both Internal and External networks.
For Internal networks, I want to use Windows Authentication, and Forms Authentication for External networks.
Which means, If the user/computer belongs to the domain, It's logged in without asking any credentials, and fall-back page will be a login form which asks username and password for users stored in SQL.
I have done forms authentication using Directory Services against LDAP. But, It's not integrated. Even the domain user has to type the credentials again.
Is there any Idea to get authenticated using current System User details, or Mixed Authentication.
Posted
Comments
John C Rayan 10-Mar-15 12:10pm    
Can you explain how you do your forms authentication? You have users details in SQL and I don't understand why you are doing LDAP/AD authentication for forms authentication. Not clear!
John C Rayan 10-Mar-15 12:21pm    
Have a look at this

https://msdn.microsoft.com/en-us/library/ms972958.aspx
Yesudass Moses 17-Mar-15 6:19am    
Hi,
My boss needs like this.
If User access application from Intranet/Domain, It should be always logged in (Integrated windows Auth)
If he is accessing the app from outside (not domain user), It should not show the browser default login dialog, but it should be redirected to a custom login page where we can put either domain username and password (LDAP Authentication) or login as Guest user (SQL Authentication).
I have done LDAP & SQL Authentication, and its working fine. The only think I can't is to use integrated windows authentication with this...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900