473,320 Members | 1,861 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,320 software developers and data experts.

login screen

Hello,
I need to create a login page in my asp.net application. UserId and password
should be active directory userid and password. How can I do that?
Thanks,
Jim,
Jul 21 '05 #1
3 3183
Internet or Intranet? For Intranet, turn off anonymous access and let
Windows take over. It is, by far, easier, than coding this. For Internet,
you have a bigger issue, as you normally have a mix of AD users and Internet
users. If this is not the case, go back to the idea of no anon access.

For Internet cases where a portion is user login, you can make a "subweb"
that is no anon access.

Yes, there are ways to programatically solve this, but it is much easier to
make a project that has no anon access and protect the pages you desire in
this project than it is to authenticate forms auth to AD. In addition, you
are more likely to program a security hole than Microsoft, and one can see
the attacks against the MS OSs.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside the box!
*************************************************
"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:72**********************************@microsof t.com...
Hello,
I need to create a login page in my asp.net application. UserId and
password
should be active directory userid and password. How can I do that?
Thanks,
Jim,

Jul 21 '05 #2
Hi,
you can use the System.DirectoryServices namespace to work with your task
Nishith

"JIM.H." wrote:
Hello,
I need to create a login page in my asp.net application. UserId and password
should be active directory userid and password. How can I do that?
Thanks,
Jim,

Jul 21 '05 #3
Haven't tried, but here is how I'd do this.

1) Create a login page that is in the base directory.
2) Create a subdirectory that only members of your AD group have access to.
3) When a user visits the login page, get the userid and password. Then
create a credential using that userid and password. Apply the credential
(which fails if the user isn't known).
4) redirect to the subdirectory.

There's probably a nice way to merge this with forms auth... I'll see if I
can look into this and come up with a nice answer. However, here's a link
that may help.

http://msdn.microsoft.com/library/de...onsecurity.asp
--- Nick

"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:72**********************************@microsof t.com...
Hello,
I need to create a login page in my asp.net application. UserId and password should be active directory userid and password. How can I do that?
Thanks,
Jim,

Jul 21 '05 #4

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

Similar topics

1
by: Chip | last post by:
I am trying to get sessions to work on a log in screen to give certain users access to certain pages/directories. The problem is that when the login button is pushed (or the enter key pressed) the...
3
by: Steve | last post by:
I am new to .Net and Visual Studio, I have a login form and my main application form. When I login I want to call the application form, and dispose of the login. I have tried doing something...
6
by: Marty | last post by:
What is the best way do a login screen? I have the Main() method in my login screen. After iit checks the userid and password the OK button loads the main application form but the next line is...
1
by: Mohan | last post by:
Hi all, I am having a problem implementing forms authentication for a web application. I have a login screen and any unathorized user is directed to the login screen. The problem is that the...
0
by: JIM.H. | last post by:
Hello, My connection string in config.web: <appSettings> <add key="connStr" value="workstation id=myServer;packet size=4096;user id=MyUser;data source=MYSERVER;persist security info=True;initial...
9
by: dana lees | last post by:
Hello, I am developing a C# asp.net application. I am using the authentication and authorization mechanism, which its timeout is set to 60 minutes. My application consists of 2 frames - a...
1
by: leovega | last post by:
Hello, My aplication starts with a simple login window (login_page.aspx). Once the login/password is validated I redirect to an html which contains 3 frames. (mywebsite.html) The web site I...
3
by: bala | last post by:
Hi Gurus The scenario A MS Access frontend application with Oracle Backend (Linked Tables). The Database UserID and password is not stored and each user has a unique UserID and password. There...
10
by: =?Utf-8?B?UmljaGFyZCBCeXNvdXRo?= | last post by:
Hi In my app I have a SplashScreen, a login form and a main form. On launching the app, I'd like to show the SplashScreen while reading config files and attempting a database connection. I show...
4
by: Gaz | last post by:
I am having a bit of a problem getting my application to work properly. RIght here is my problem... WHen my C# windows app loads up the start form, i create a new thread and show the splash...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...

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.