Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > fully automatic ldap authentication

Reply
Thread Tools

fully automatic ldap authentication

 
 
steven
Guest
Posts: n/a
 
      03-14-2008
is it possible to do fully automated ldap authentication to a web app?
i know there's a login control i can use to ask for the username/
password which can then authenticate the user against AD, but what if
they're already logged into AD? is it really necessary to ask them to
login to my web app?

tks in advance.
 
Reply With Quote
 
 
 
 
David R. Longnecker
Guest
Posts: n/a
 
      03-14-2008
If your application and IIS are setup for NTML authentication, then no, it's
not necessary. The User.Identity.Name will return the Domain\username of
the user and you can use User.Identity.IsAuthenticate as a boolean to test
whether or not the user is authenticated.

If, from there, you need information from Active Directory (display name,
etc), the DirectoryServices namespace allows you to take that Identity.Name
and query up AD information (http://msdn2.microsoft.com/en-us/lib...services.aspx).

From there, authentication is now taken care of and authorization is left
up to you and how you implement security in your application.

HTH.

-dl

--
David R. Longnecker
http://blog.tiredstudent.com

> is it possible to do fully automated ldap authentication to a web app?
> i know there's a login control i can use to ask for the username/
> password which can then authenticate the user against AD, but what if
> they're already logged into AD? is it really necessary to ask them to
> login to my web app?
>
> tks in advance.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python-ldap/win32 or python/ldap/win32 rcmn Python 1 11-06-2006 11:47 PM
Need to wrtie LDAP class to *answer* LDAP queries. junk1@davidbevan.co.uk Java 1 02-21-2006 09:59 PM
FA VOIP PSTN fully automatic trnasfer switch surge protected Marc Popek VOIP 1 10-17-2005 04:24 PM
[ANN] Ruby/LDAP 0.9.1: LDAP API (RFC1823) library. Ian Macdonald Ruby 0 03-15-2005 11:23 PM
using LDAP Controls in ruby-ldap Jason Wold Ruby 5 11-07-2004 03:35 AM



Advertisments