473,406 Members | 2,312 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,406 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 3186
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.