Ask a Question related to ASP.NET Security, Design and Development.
-
Ken Varn #1
Security permissions for Win32 LogonUser call.
I am running my ASP.NET page under IIS in Windows 2000 Pro. I need to make
a call to the Win32 LogonUser function to get a logon token. How can I get
security permission to do this while running under the MACHINE account for
ASP.NET?
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
EmailID = varnk
Domain = Diebold.com
-----------------------------------
Ken Varn Guest
-
ASP.net & Win32 API (LogonUser) question...
I am running IIS6 on a Win2k3 server. I have an ASP.Net app (C#) that a user logs into and then I use LogonUser to validate them and log them... -
Win32::Ole and Call by reference
Hi all, I want to control LabWindows/CVI via ActiveX from Perl. So far I managed to start the ActiveX server of CVI and I can also load a... -
call win32 API from linux perl script
Hi, I'm must calling an API from a remote win32 server in a perl script. On a windows server, I use win32::OLE and it's work fine ! But my... -
Getting/setting Win32 Lanman share permissions
I am looking for a way to list and possibly change the permissions on file shares on Win2K servers via a perl script. I have tried using... -
Using Win32::API To call CreateProcess - help!
I need to call the "real" CreateProcess of windows NT from an ActiveState perl script. The code below always reports a return of 0 (FALSE) and fails... -
Joe Kaplan \(MVP - ADSI\) #2
Re: Security permissions for Win32 LogonUser call.
Under Windows 2000, an account needs the Act As Part of the Operating System
privilege to call LogonUser. By default, only SYSTEM has this privilege as
it is very powerful and not something you want to give out lightly.
Another option you might want to consider in Win2K would be using SSPI.
I've seen a few .NET wrappers out there that will allow you to get a logon
token for a user without calling LogonUser. A Google search should turn
something up.
Alternately, you can also move to 2003 server where this restriction is
lifted.
Joe K.
"Ken Varn" <nospam> wrote in message
news:uJre1F8MFHA.2576@TK2MSFTNGP10.phx.gbl...>I am running my ASP.NET page under IIS in Windows 2000 Pro. I need to make
> a call to the Win32 LogonUser function to get a logon token. How can I
> get
> security permission to do this while running under the MACHINE account for
> ASP.NET?
>
> --
> -----------------------------------
> Ken Varn
> Senior Software Engineer
> Diebold Inc.
>
> EmailID = varnk
> Domain = Diebold.com
> -----------------------------------
>
>
Joe Kaplan \(MVP - ADSI\) Guest
-
Dominick Baier [DevelopMentor] #3
Re: Security permissions for Win32 LogonUser call.
Hello Joe,
check this out for the SSPI workaround:
[url]http://pluralsight.com/wiki/default.aspx/Keith.GuideBook/HowToGetATokenForAUser.html[/url]
---------------------------------------
Dominick Baier - DevelopMentor
[url]http://www.leastprivilege.com[/url]
> Under Windows 2000, an account needs the Act As Part of the Operating
> System privilege to call LogonUser. By default, only SYSTEM has this
> privilege as it is very powerful and not something you want to give
> out lightly.
>
> Another option you might want to consider in Win2K would be using
> SSPI. I've seen a few .NET wrappers out there that will allow you to
> get a logon token for a user without calling LogonUser. A Google
> search should turn something up.
>
> Alternately, you can also move to 2003 server where this restriction
> is lifted.
>
> Joe K.
>
> "Ken Varn" <nospam> wrote in message
> news:uJre1F8MFHA.2576@TK2MSFTNGP10.phx.gbl...
>>> I am running my ASP.NET page under IIS in Windows 2000 Pro. I need
>> to make
>> a call to the Win32 LogonUser function to get a logon token. How can
>> I
>> get
>> security permission to do this while running under the MACHINE
>> account for
>> ASP.NET?
>> --
>> -----------------------------------
>> Ken Varn
>> Senior Software Engineer
>> Diebold Inc.
>> EmailID = varnk
>> Domain = Diebold.com
>> -----------------------------------
Dominick Baier [DevelopMentor] Guest
-
Joe Kaplan \(MVP - ADSI\) #4
Re: Security permissions for Win32 LogonUser call.
Keith's SSPI sample uses NegotiateStream which is certainly cool, but
definitely only in .NET 2.0 right now. 1.x users will need a p/invoke
solution although I've seen several published here that should show up in a
Google search.
Joe K.
"Dominick Baier [DevelopMentor]" <dbaier@pleasepleasenospamdevelop.com>
wrote in message news:205957632478732355935744@news.microsoft.com.. .> Hello Joe,
>
> check this out for the SSPI workaround:
> [url]http://pluralsight.com/wiki/default.aspx/Keith.GuideBook/HowToGetATokenForAUser.html[/url]
>
>
> ---------------------------------------
> Dominick Baier - DevelopMentor
> [url]http://www.leastprivilege.com[/url]
>>>> Under Windows 2000, an account needs the Act As Part of the Operating
>> System privilege to call LogonUser. By default, only SYSTEM has this
>> privilege as it is very powerful and not something you want to give
>> out lightly.
>>
>> Another option you might want to consider in Win2K would be using
>> SSPI. I've seen a few .NET wrappers out there that will allow you to
>> get a logon token for a user without calling LogonUser. A Google
>> search should turn something up.
>>
>> Alternately, you can also move to 2003 server where this restriction
>> is lifted.
>>
>> Joe K.
>>
>> "Ken Varn" <nospam> wrote in message
>> news:uJre1F8MFHA.2576@TK2MSFTNGP10.phx.gbl...
>>>>> I am running my ASP.NET page under IIS in Windows 2000 Pro. I need
>>> to make
>>> a call to the Win32 LogonUser function to get a logon token. How can
>>> I
>>> get
>>> security permission to do this while running under the MACHINE
>>> account for
>>> ASP.NET?
>>> --
>>> -----------------------------------
>>> Ken Varn
>>> Senior Software Engineer
>>> Diebold Inc.
>>> EmailID = varnk
>>> Domain = Diebold.com
>>> -----------------------------------
>
>
Joe Kaplan \(MVP - ADSI\) Guest
-
Dominick Baier [DevelopMentor] #5
Re: Security permissions for Win32 LogonUser call.
Hello Joe,
whoops. Microsoft makes us live in the future, all the time :)
---------------------------------------
Dominick Baier - DevelopMentor
[url]http://www.leastprivilege.com[/url]
> Keith's SSPI sample uses NegotiateStream which is certainly cool, but
> definitely only in .NET 2.0 right now. 1.x users will need a p/invoke
> solution although I've seen several published here that should show up
> in a Google search.
>
> Joe K.
>
> "Dominick Baier [DevelopMentor]"
> <dbaier@pleasepleasenospamdevelop.com> wrote in message
> news:205957632478732355935744@news.microsoft.com.. .
>>> Hello Joe,
>>
>> check this out for the SSPI workaround:
>> [url]http://pluralsight.com/wiki/default.aspx/Keith.GuideBook/HowToGetATok[/url]
>> enForAUser.html
>> ---------------------------------------
>> Dominick Baier - DevelopMentor
>> [url]http://www.leastprivilege.com[/url]>>> Under Windows 2000, an account needs the Act As Part of the
>>> Operating System privilege to call LogonUser. By default, only
>>> SYSTEM has this privilege as it is very powerful and not something
>>> you want to give out lightly.
>>>
>>> Another option you might want to consider in Win2K would be using
>>> SSPI. I've seen a few .NET wrappers out there that will allow you to
>>> get a logon token for a user without calling LogonUser. A Google
>>> search should turn something up.
>>>
>>> Alternately, you can also move to 2003 server where this restriction
>>> is lifted.
>>>
>>> Joe K.
>>>
>>> "Ken Varn" <nospam> wrote in message
>>> news:uJre1F8MFHA.2576@TK2MSFTNGP10.phx.gbl...
>>>> I am running my ASP.NET page under IIS in Windows 2000 Pro. I need
>>>> to make
>>>> a call to the Win32 LogonUser function to get a logon token. How
>>>> can
>>>> I
>>>> get
>>>> security permission to do this while running under the MACHINE
>>>> account for
>>>> ASP.NET?
>>>> --
>>>> -----------------------------------
>>>> Ken Varn
>>>> Senior Software Engineer
>>>> Diebold Inc.
>>>> EmailID = varnk
>>>> Domain = Diebold.com
>>>> -----------------------------------
Dominick Baier [DevelopMentor] Guest



Reply With Quote

