Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > User login with ADSI

Reply
Thread Tools

User login with ADSI

 
 
Kenneth Keeley
Guest
Posts: n/a
 
      12-16-2003
Hi,
Under ASP I was able to use code like that listed below to confirm login
details on our intranet site. I wish to upgrade our site to run purely under
ASP.NET. I am having trouble converting this code to ASP.NET code somebody
point me in the right direction with some sample code like this done in
ASP.NET

set ADSI = GetObject("WinNT:")
set IIS = ADSI.OpenDSObject("WinNT://MyDomain/" & Request.Form("UserName") ,
Request.Form("UserName"), Request.Form("Password"),
ADS_SECURE_AUTHENTICATION)
IF err.Number = 0 THEN
Response.Cookies("UserName") = Request.Form("UserName")
Response.Cookies("UserName").Expires = "July 1, 2020"
End If

Thanks



 
Reply With Quote
 
 
 
 
Chris Marchal[MSFT]
Guest
Posts: n/a
 
      12-23-2003
The ADSI managed objects are in the System.DirectoryServices namespace.
There is a good article on authenticating in ASP.NET against active
directory here:

http://msdn.microsoft.com/library/de...us/dnnetsec/ht
ml/SecNetHT02.asp

Chris Marchal
Microsoft UK Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
 
 
 
Kenneth Keeley
Guest
Posts: n/a
 
      12-29-2003
That Article is as useful as tits on a bull. It might be fine if you are
some sort of Microsoft super dickhead but if you are simple person how is
just tring to make a living in the real world then I find it useless and a
waste of my time. Not every body in the world has millions of dollors to was
on all the bullshit CD's that microsoft generate so that you can create a
web page that should only need 20+ lines of code. So how about provideing an
example in simple easy to follow code.

"Chris Marchal[MSFT]" <> wrote in message
news:...
> The ADSI managed objects are in the System.DirectoryServices namespace.
> There is a good article on authenticating in ASP.NET against active
> directory here:
>
>

http://msdn.microsoft.com/library/de...us/dnnetsec/ht
> ml/SecNetHT02.asp
>
> Chris Marchal
> Microsoft UK Developer Support
> This posting is provided "AS IS" with no warranties, and confers no

rights.
>



 
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
Cannot open user default database. Login failed. Login failed for user 'HEMPC\ASPNET' Tony Johansson ASP .Net 3 01-02-2010 04:09 PM
ADSI - Trying to enable a user - the user add works very well Jeremie Legault ASP General 0 11-23-2005 09:15 PM
User login with ADSI Kenneth Keeley ASP .Net 0 12-15-2003 06:33 AM
ADSI - User A/c Info Question shiv ASP .Net 1 11-16-2003 06:51 AM
Retrieve logon user name from ADSI venkat ASP .Net 0 11-06-2003 06:41 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57