I don't know if your application will allow this, but try it just to test:

In the IIS control panel, remove anonymous access from that folder (if you
need help with that, let me know and I'll walk you through it, I'll need to
know if you are using NT 4 or WIN2K). This will force an NT login when you
hit that page. When the login comes up, login with an admin level account.

If the script works after you login then we do in fact have a permission
problem.

Options at that point would be to limit access to that page (which is what
we just did), or if you need to be able to run that page without logging in
as an NT admin, then you can turn anonymous access back on and set the
anonymous user to be one with sufficient access, also, and I am not sure on
this one, you may be able to give execute permissions to your IIS anonymous
user to the adddomain.exe file (but you probably have "Everyone" there
already).

Let me know if any of this helps.

rusty

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of krishna
Sent: Thursday, June 13, 2002 3:01 PM
To: [EMAIL PROTECTED]
Subject: RE: [IMail Forum] Help on how to Automate creation of Domain
from ASP Script


Hi Rusty:

You are right -- I have tried reexecuting the page
after updating the below listed set of statements.
Even now domain is not created -- If i supply in valid
parameters then -- adddomain.exe is printing sytax to
browser -- but if correct parameters are passed then
nothing is happening.

Do i have to change permissions or some thing on the
page -- i have every one "full control" on my webroot.

Please help me out solving the problem.

Thanks in advance

Kri

You are close. Looks like your .Application variable
is wrong. Try this, it
works for me as is.

rusty
        Set Executor=Server.CreateObject("ASPExec.Execute")
        Executor.Application = "c:\imail\adddomain.exe"
        Executor.Parameters = "-h domain.com -i VIRTUAL"
        strResult = Executor.ExecuteDosApp

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf
Of krishna
Sent: Wednesday, June 12, 2002 3:30 PM
To: [EMAIL PROTECTED]
Subject: [IMail Forum] Help on how to Automate
creation of Domain from
ASP Script


Hi All

I am using ASPexec From www.serverobjects.com to
executes adddomain.exe for creating a domain on the
fly from ASP Script

Following is the code block which i am using

  varParams = " c:\imail\adddomain.exe -h rkhost.com
-i VIRTUAL"
  Set Executor =
Server.CreateObject("ASPExec.Execute")
  Executor.Application = "cmd"
  Executor.Parameters = varParams
  Executor.ShowWindow = True
  strResult = Executor.ExecuteDosApp

Execution of the script is happening with out any
error -- but domain is not geeting created under
imail.

Tried out writing "c:\imail\adddomain.exe -h
rkhost.com -i VIRTUAL" to a batch file and supplied
the path of the same as parameter to the application
--this also did'nt helped in any way for domain
creation.

Can any one throw some light and help me in solving
the problem.

Thank You all in advance.

Kri

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

Please visit
http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/

Please visit the Knowledge Base for answers to
frequently asked
questions:  http://www.ipswitch.com/support/IMail/
---
[This E-mail scanned for viruses by WebSavannah.com's
Virus Scanner]



Please visit
http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/

Please visit the Knowledge Base for answers to
frequently asked
questions:  http://www.ipswitch.com/support/IMail/



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/

Please visit the Knowledge Base for answers to frequently asked
questions:  http://www.ipswitch.com/support/IMail/
---
[This E-mail scanned for viruses by WebSavannah.com's Virus Scanner]



Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/

Please visit the Knowledge Base for answers to frequently asked
questions:  http://www.ipswitch.com/support/IMail/

Reply via email to