Groups | Blog | Home
all groups > asp.net security > may 2007 >

asp.net security : Using Login Control to Authenticate???


Mike Voissem
5/4/2007 6:49:02 AM
I've been searching for 2 days now, and haven't really been able to get a
complete solution to my problem(s). And let me preface this by stating this
is my first crack at asp.net development so please excuse the ineptness.

My environment is W2003 server, IIS 6.0. This server is in our DMZ and the
web admins want me to use Windows Authentication.(I tried to deploy Forms
Authentication but was shot down by corporate admin's on this). I am trying
to incorporate the login control to authenticate the users vs. the AD windows
login screen(the consensus was that we wanted to provide a login screen that
was "our own").

So, here's what I want to be able to do. Display the login page with the
login control. Allow the users to login, and then authenticate them to AD
through code. If anyone can point me to an article, sample code, book, or
whatever, I would greatly appreciate this. I just haven't been able to find
anything that truly states how this all needs to happen.
1). What all needs to be in web.config.
2). What methods to call from\within the login control
3). How to properly set up IIS

Unfortunately, I'm the lone ranger on this, as nobody in our company has
done web development before.

--
Mike Voissem
Lead Software Engineer
Alexey Smirnov
5/4/2007 12:19:08 PM
On May 4, 3:49 pm, Mike Voissem
[quoted text, click to view]

Mike, do you mean that you would have a separate Active Directory
within the DMZ?

Take a look at this manual
http://msdn2.microsoft.com/en-us/library/aa302386.aspx
Mike Voissem
5/4/2007 12:56:04 PM
Yes, the admins are going to create an Active Directory on the IIS server in
the DMZ, and manage the users for that AD. The requirement then is for the
web app to allow the outside users to get to the "landing page" without the
AD pop-up, and on the "landing page" I would have the login control , and
then I would use their credentials to authenticate to AD.
--
Mike Voissem
Lead Software Engineer
Donnelley Marketing


[quoted text, click to view]
Alexey Smirnov
5/4/2007 1:25:26 PM
On May 4, 9:56 pm, Mike Voissem
[quoted text, click to view]

Well, then you should consider the form authentication against AD

You can do it using the built-in ActiveDirectoryMembershipProvider:

http://msdn2.microsoft.com/en-us/library/ms998360.aspx
Mike Voissem
5/4/2007 2:38:00 PM
Actually, I had Forms Authentication installed and working, then the admins
"realized" what I meant by Forms Authentication and said NO WAY. So, I had
to change everything over. I lost that battle so I HAVE to get this to
happen, and of course, it's needed yesterday.

Had I been able to user Forms Authentication, this project would be done
already....
--
Mike Voissem
Lead Software Engineer
Donnelley Marketing


[quoted text, click to view]
Alexey Smirnov
5/4/2007 3:30:56 PM
On May 4, 11:38 pm, Mike Voissem
[quoted text, click to view]

Actually, I don't get it. What is the problem there?

I've suggested you a Form Authentication with *Active Directory*
Mike Voissem
5/7/2007 5:32:03 AM
Alexey,
After re-reading this, I now understand what you were suggesting. I have
requested access to the LDAP information and will go from there. Thanx for
your input, this looks like the answer, providing they are okay with giving
me(my application) rights to read the LDAP information.
Regards,
Mike
--
Mike Voissem
Lead Software Engineer
Donnelley Marketing


[quoted text, click to view]
Alexey Smirnov
5/7/2007 6:09:37 AM
On May 7, 2:32 pm, Mike Voissem
[quoted text, click to view]

Great! I do hope your admin will be happy with it :-)
AddThis Social Bookmark Button