HighTechTalks DotNet Forums  

Craete dns record by asp.net via dnscmd.exe and process class

Dotnet Security microsoft.public.dotnet.security


Discuss Craete dns record by asp.net via dnscmd.exe and process class in the Dotnet Security forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Movashah
 
Posts: n/a

Default Craete dns record by asp.net via dnscmd.exe and process class - 06-19-2004 , 12:13 PM






Hi all,
I am going to add/remove hostnames from my dns server in my asp.net application,
when I run the start method from the process class, it says "ERROR_ACCESS_DENIED 5 (00000005)",
I must notate that I have inserted the Identity tag in the web.config as below:
<identity impersonate="true" userName="administrator" password="aa" />
and in my local security policy in "act as oprating system" I added ASPNET and administrator users!
But still it says that error. My OS is W2k advanced server, and I don't have domain controler.
Can you help me?

Reply With Quote
  #2  
Old   
Joe Kaplan \(MVP - ADSI\)
 
Posts: n/a

Default Re: Craete dns record by asp.net via dnscmd.exe and process class - 06-19-2004 , 05:43 PM






The .NET Process class doesn't inherit the impersonation token from the
thread when the process is created. Instead, it gets the token of the
existing process. Therefore, you might want to consider changing your
processModel in ASP.NET configuration to use the account you need.

Otherwise, you can use P/Invoke to call CreateProcessAsUser.

Joe K.

"Movashah" <Movashah (AT) msn (DOT) com> wrote

Quote:
Hi all,
I am going to add/remove hostnames from my dns server in my asp.net
application,
when I run the start method from the process class, it says
"ERROR_ACCESS_DENIED 5 (00000005)",
I must notate that I have inserted the Identity tag in the web.config as
below:
identity impersonate="true" userName="administrator" password="aa" /
and in my local security policy in "act as oprating system" I added ASPNET
and administrator users!
But still it says that error. My OS is W2k advanced server, and I don't
have domain controler.
Can you help me?



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.