473,385 Members | 1,465 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Forms Authentication with AD

Hi there

I'm using Windows Authentication to automatically recognise users in my web
app. However, I want directory to be password protected, so if they try to
visit the page in there, they MUST enter their password in a Windows Login
style popup (FOrms AUthentication).

I think I need to out another web.config in the directory with
authentication set to Forms? But how do I query the info received by forms in
AD? OR do I even need to, will .NET do it for me?

Basically, how to use Forms Auth with AD! Any help/links appreciated.

Cheers
Dan
Nov 19 '05 #1
6 1407
The whole purpose of using Windows Authentication is so that they don't have
to enter a username and password. If you set the permissions on your
protected folders properly, the job is done. If you want them to have to
type in a password, go to Forms Authentication.

The only way I know of to get what you want is if the user does not have
permission to access the resource on the web server, they will be presented
a Windows logon box. You could give each user a second Windows identity for
the protected folders, but that seems a waste.

Good luck,

DalePres
MCAD, MCSE, MCDBA
"dhnriverside" <da*@musoswire.com> wrote in message
news:8F**********************************@microsof t.com...
Hi there

I'm using Windows Authentication to automatically recognise users in my
web
app. However, I want directory to be password protected, so if they try to
visit the page in there, they MUST enter their password in a Windows Login
style popup (FOrms AUthentication).

I think I need to out another web.config in the directory with
authentication set to Forms? But how do I query the info received by forms
in
AD? OR do I even need to, will .NET do it for me?

Basically, how to use Forms Auth with AD! Any help/links appreciated.

Cheers
Dan

Nov 19 '05 #2
Dan if you are interested in Forms with AD see:-
http://support.microsoft.com/default...;EN-US;Q316748
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #3
Just to clarify...

Basically we have an Intranet system running on Win2k3 with AD. Each user
logs into a comp, and from then on they can just double click the Intranet
icon on the desktop and not have to log into that seperately.

It's a fairly open company, so there's not much need for more protection
levels, apart from we want a page on the Intranet where they can update their
details stored in AD (tel, address, etc). Obviously we want to make this more
protected, and therefore I want to force them to login for that page.

Is this possibly just by setting the folder permissions?

Cheers
Dan

"dhnriverside" wrote:
Hi there

I'm using Windows Authentication to automatically recognise users in my web
app. However, I want directory to be password protected, so if they try to
visit the page in there, they MUST enter their password in a Windows Login
style popup (FOrms AUthentication).

I think I need to out another web.config in the directory with
authentication set to Forms? But how do I query the info received by forms in
AD? OR do I even need to, will .NET do it for me?

Basically, how to use Forms Auth with AD! Any help/links appreciated.

Cheers
Dan

Nov 19 '05 #4
You probably do not need to challange the user for username and password if
you are using windows authentication. You only show them contents in Active
Directory that they own because you will know who the user is.

You cannot retrieve the password out of Active Directory to explicitly
authenticate the user. You can get more information if you look up ADSI
:http://msdn.microsoft.com/library/de...-us/adsi/adsi/
iadsuser_setpassword.asp

Hope this helps.
--
Gopal Rangaswamy
Microsoft Certified Solutions Developer
FMS, Inc.
<http://www.fmsinc.com/consulting>
<http://www.fmsinc.com/dotnet/SourceBook/>

"dhnriverside" <da*@musoswire.com> wrote in message
news:68**********************************@microsof t.com...
Just to clarify...

Basically we have an Intranet system running on Win2k3 with AD. Each user
logs into a comp, and from then on they can just double click the Intranet
icon on the desktop and not have to log into that seperately.

It's a fairly open company, so there's not much need for more protection
levels, apart from we want a page on the Intranet where they can update their details stored in AD (tel, address, etc). Obviously we want to make this more protected, and therefore I want to force them to login for that page.

Is this possibly just by setting the folder permissions?

Cheers
Dan

"dhnriverside" wrote:
Hi there

I'm using Windows Authentication to automatically recognise users in my web app. However, I want directory to be password protected, so if they try to visit the page in there, they MUST enter their password in a Windows Login style popup (FOrms AUthentication).

I think I need to out another web.config in the directory with
authentication set to Forms? But how do I query the info received by forms in AD? OR do I even need to, will .NET do it for me?

Basically, how to use Forms Auth with AD! Any help/links appreciated.

Cheers
Dan

Nov 19 '05 #5
Now it makes more sense. I don't think you can do it by setting
permissions. You'll probably have to create a separate web app for that
piece so you can configure the security differently.

DalePres
MCAD, MCSE, MCDBA

"dhnriverside" <da*@musoswire.com> wrote in message
news:68**********************************@microsof t.com...
Just to clarify...

Basically we have an Intranet system running on Win2k3 with AD. Each user
logs into a comp, and from then on they can just double click the Intranet
icon on the desktop and not have to log into that seperately.

It's a fairly open company, so there's not much need for more protection
levels, apart from we want a page on the Intranet where they can update
their
details stored in AD (tel, address, etc). Obviously we want to make this
more
protected, and therefore I want to force them to login for that page.

Is this possibly just by setting the folder permissions?

Cheers
Dan

"dhnriverside" wrote:
Hi there

I'm using Windows Authentication to automatically recognise users in my
web
app. However, I want directory to be password protected, so if they try
to
visit the page in there, they MUST enter their password in a Windows
Login
style popup (FOrms AUthentication).

I think I need to out another web.config in the directory with
authentication set to Forms? But how do I query the info received by
forms in
AD? OR do I even need to, will .NET do it for me?

Basically, how to use Forms Auth with AD! Any help/links appreciated.

Cheers
Dan

Nov 19 '05 #6
Hi guys

Just to let you know I've sorted it - had to take DalePres' approach and use
a seperate web app but its worked. Just setting up Forms with AD now :)

Cheers for all the help!
"DalePres" wrote:
Now it makes more sense. I don't think you can do it by setting
permissions. You'll probably have to create a separate web app for that
piece so you can configure the security differently.

DalePres
MCAD, MCSE, MCDBA

"dhnriverside" <da*@musoswire.com> wrote in message
news:68**********************************@microsof t.com...
Just to clarify...

Basically we have an Intranet system running on Win2k3 with AD. Each user
logs into a comp, and from then on they can just double click the Intranet
icon on the desktop and not have to log into that seperately.

It's a fairly open company, so there's not much need for more protection
levels, apart from we want a page on the Intranet where they can update
their
details stored in AD (tel, address, etc). Obviously we want to make this
more
protected, and therefore I want to force them to login for that page.

Is this possibly just by setting the folder permissions?

Cheers
Dan

"dhnriverside" wrote:
Hi there

I'm using Windows Authentication to automatically recognise users in my
web
app. However, I want directory to be password protected, so if they try
to
visit the page in there, they MUST enter their password in a Windows
Login
style popup (FOrms AUthentication).

I think I need to out another web.config in the directory with
authentication set to Forms? But how do I query the info received by
forms in
AD? OR do I even need to, will .NET do it for me?

Basically, how to use Forms Auth with AD! Any help/links appreciated.

Cheers
Dan


Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
3
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be...
2
by: Eric | last post by:
I am trying to build an app where the stuff in the root directory is open to all, but anything under the Restricted directory requires you to login and I want to use Forms to do it. I'm having...
0
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET...
7
by: Justin | last post by:
I am trying to password protect a subdirectory using forms authentication. I am using the "Location" tag to specify the directory to be protected. The login.aspx page is in the root directory of...
5
by: V. Jenks | last post by:
Using forms authentication, can I control which pages and/or directories a user would have access to or is that only available with Windows authentication? Thanks!
4
by: =?Utf-8?B?R3V1czEyMw==?= | last post by:
Hi, I created a web site on a remote server. To logon the user must enter a user id and password. The site is uses Forms Authentication. The web config file looks as follows: ...
4
by: Bjorn Sagbakken | last post by:
In a web-application with login creds (user, pwd), these are checked against a user table on a SQL server. On a positive validation I have saved the userID, name, custno and role-settings in a...
5
by: Rory Becker | last post by:
Having now created a Custom MembershipProvider that seems to work correctly with my Logon and ChangePassword controls, I am, as they say, a happy bunny. The next stange is to move on to the...
1
by: Sean | last post by:
Hi, I've taken over a website, which has an admin section that is currently open. I added Forms Authentication to the admin directory with the using the location section in web.config: ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.