Ask a Question related to ASP.NET Security, Design and Development.
-
Kenneth Keeley #1
User login with ADSI
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
Kenneth Keeley Guest
-
Login User from Novell Login
Hi, At present a user loggin onto our netwok enters their username and password by a Novell Login prompt. When they fire up their browser they... -
user and admin login on same login page
Hello, I have a user login page which also doubles as my administrator login. Currently, my method of logging in doesnt seem to be working... -
Login User User Error 80040e21
I am getting an 80040e21 error using the log in user server behavior. The complete error message is Microsoft OLE DB Provider for SQL Server... -
Domain Login - One User Can/Another User Cannot from same Win XP computer
Okay ... I'm confused. I installed a brand new computer and everything was working fine. I was then advised who would be getting the computer,... -
User changing something on a form makes asp.net take user to login page
Hi, I have an application that displays the database table records on the web page, the user can navigate thru the contents and make changes and... -
Chris Marchal[MSFT] #2
RE: User login with ADSI
The ADSI managed objects are in the System.DirectoryServices namespace.
There is a good article on authenticating in ASP.NET against active
directory here:
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/ht[/url]
ml/SecNetHT02.asp
Chris Marchal
Microsoft UK Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
Chris Marchal[MSFT] Guest
-
Kenneth Keeley #3
Re: User login with ADSI
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]" <cmarchal@online.microsoft.com> wrote in message
news:QyheVmXyDHA.2896@cpmsftngxa07.phx.gbl...[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/ht[/url]> The ADSI managed objects are in the System.DirectoryServices namespace.
> There is a good article on authenticating in ASP.NET against active
> directory here:
>
>rights.> ml/SecNetHT02.asp
>
> Chris Marchal
> Microsoft UK Developer Support
> This posting is provided "AS IS" with no warranties, and confers no>
Kenneth Keeley Guest



Reply With Quote

