Link to home
Start Free TrialLog in
Avatar of phoenixfire425
phoenixfire425Flag for United States of America

asked on

Forms based Windows Authentication

Currently i use windows authentication.  When a user goes to the site a popup box comes up asking for username and password.  Is there an wasy way to make this a form on a page instead?

I am currently using Visual Studio 2008 Express.
I am using VB
Avatar of Tristan Shortland
Tristan Shortland
Flag of United Kingdom of Great Britain and Northern Ireland image

Create a page with a form which verifies some user credentials supplied by the user (there are prebuilt controls for this which will integrate with a users database very well built by MicroSoft, or you can build your own - textbox for username, one for password and a button is all it takes...).

*Then in web.config change authentication mode to forms where it currently says windows.*

You can use the ASP.NET configuration tool (Website -> ASP.NET Configuration) to manage users and roles, if you choose to use the Microsoft framework.

There's lot's of good info on google too...

Tristan
Avatar of phoenixfire425

ASKER

When i try to use the control built into VS.net it does not find the user names from my active directory.

and if i create a form i am not sure how to pass the names and passwords to be authenticated.
When using forms authentication you aren't looking at active directory. Using the built in controls will point to a database of usernames/passwords/role information for users.

If you want to integrate with active directory then you will have to use Windows authentication.

You may be able to do something clever in the aplication to get the Windows username and password for that user then validate those against ones they have entered into a web form built by you...
That what i want to do.
Is have a form. but not form authentication.
The username and password are used from active directory.
So i guess it would be a kind of Mixed mode form?
any idea on how to do this?
Or ideally I would like to use windows authentication with a Form Based Logon Screen  
Thats in C# i need the VB type :(
ASKER CERTIFIED SOLUTION
Avatar of Tristan Shortland
Tristan Shortland
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial