[isalist] Re: Enterprise scripting question

  • From: "Young, Gerald G" <Gerald.Young@xxxxxxxxxx>
  • To: <isalist@xxxxxxxxxxxxx>
  • Date: Wed, 26 Apr 2006 11:14:25 -0500

http://www.ISAserver.org
-------------------------------------------------------

Would impersonation settings on the website affect the way the script is
executed in a webpage?

Cordially yours,
Jerry G. Young II
  MCSE (4.0/W2K)
Atlanta EES Implementation Team Lead
HHS Engineering
Unisys
 
11493 Sunset Hills Rd.
Reston, VA 20190
Office: 703-579-2727
Cell: 703-625-1468

THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-----Original Message-----
From: isalist-bounce@xxxxxxxxxxxxx [mailto:isalist-bounce@xxxxxxxxxxxxx]
On Behalf Of Periyasamy, Raj
Sent: Wednesday, April 26, 2006 12:09 PM
To: isalist@xxxxxxxxxxxxx
Subject: [isalist] Re: Enterprise scripting question

http://www.ISAserver.org
-------------------------------------------------------
  
Jim,
I tried as you suggested, now the script looks as below

root.ConnectToConfigurationStorageServer cssComputer, userName, domain,
password

However, I still get the same error. The same script works as a
standalone vbscript. The user ID is an Enterprise/Array administrator.
This is a test environment, the IIS is running on an XP workstation. Any
suggestions.

Regards,

HTH.
Regards,
Raj Periyasamy
MCSE(Messaging), CCNA



-----Original Message-----
From: isalist-bounce@xxxxxxxxxxxxx [mailto:isalist-bounce@xxxxxxxxxxxxx]
On Behalf Of Jim Harrison
Sent: Tuesday, April 25, 2006 5:21 PM
To: isalist@xxxxxxxxxxxxx
Subject: [isalist] Re: Enterprise scripting question

http://www.ISAserver.org
-------------------------------------------------------
  
You have to pass the credentials in the
connectotoconfigurationstorageserver method when you run in an ASP page
because the ASP process operates under the network services account,
which has no rights in CSS. 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/isasdk/
isa/fpc_connecttoconfigurationstorageserver.asp
Spells it out in gory detail.

..of course, this means you have to stash those credentials somewhere
ASP can find them, BUT NOT IN PLAIN TEXT anywhere.

-------------------------------------------------------
   Jim Harrison
   MCP(NT4, W2K), A+, Network+, PCG
   http://isaserver.org/Jim_Harrison/
   http://isatools.org
   Read the help / books / articles!
-------------------------------------------------------
 

-----Original Message-----
From: isalist-bounce@xxxxxxxxxxxxx [mailto:isalist-bounce@xxxxxxxxxxxxx]
On Behalf Of Periyasamy, Raj
Sent: Tuesday, April 25, 2006 14:11
To: isalist@xxxxxxxxxxxxx
Subject: [isalist] Enterprise scripting question

http://www.ISAserver.org
-------------------------------------------------------
  
Hi all,
I am trying to create a web based interface, just for adding domains to
a Domain Name Set. The script itself runs fine if I run it from the
command prompt. However, when I try to embed the code in an ASP page,
the script fails while trying to do ConnectToConfigurationStorageServer.


The following is the extract of the code from the ASP page:

Set root = CreateObject("FPC.Root")
    root.ConnectToConfigurationStorageServer cssComputer
    Set oIsaArray = root.Arrays.Item("INFINEUM")
    Set oDomainNameSet =
oIsaArray.RuleElements.DomainNameSets.Item(sDomainNameSetName)
    oDomainNameSet.Add(sDomainToAdd)
    If Err.Number = -2147024713 Then 
        response.write "Error: Domain " + sDomainToAdd + " is already
unblocked."
    Else
        oDomainNameSet.Save
        response.write "Success: Domain " + sDomainToAdd + " is now
unblocked."
    End If
    root.disConnectFromConfigurationStorageServer


The following is the error message I get when accessing the URL,

Error Type:
FPC.Root.1 (0x80070002)
The system cannot find the file specified. 
/prx_urlexcept.asp, line 38



Line 38 happens to be "oFPC.ConnectToConfigurationStorageServer
cssComputer"

Would appreciate any inputs.

Thanks.


Regards,
Raj Periyasamy
MCSE(Messaging), CCNA

------------------------------------------------------
List Archives: //www.freelists.org/archives/isalist/
ISA Server Newsletter: http://www.isaserver.org/pages/newsletter.asp
ISA Server Articles and Tutorials:
http://www.isaserver.org/articles_tutorials/
ISA Server Blogs: http://blogs.isaserver.org/
------------------------------------------------------
Visit TechGenix.com for more information about our other sites:
http://www.techgenix.com
------------------------------------------------------
To unsubscribe visit http://www.isaserver.org/pages/isalist.asp
Report abuse to listadmin@xxxxxxxxxxxxx 


All mail to and from this domain is GFI-scanned.

------------------------------------------------------
List Archives: //www.freelists.org/archives/isalist/  
ISA Server Newsletter: http://www.isaserver.org/pages/newsletter.asp 
ISA Server Articles and Tutorials:
http://www.isaserver.org/articles_tutorials/ 
ISA Server Blogs: http://blogs.isaserver.org/ 
------------------------------------------------------
Visit TechGenix.com for more information about our other sites:
http://www.techgenix.com 
------------------------------------------------------
To unsubscribe visit http://www.isaserver.org/pages/isalist.asp 
Report abuse to listadmin@xxxxxxxxxxxxx 

------------------------------------------------------
List Archives: //www.freelists.org/archives/isalist/  
ISA Server Newsletter: http://www.isaserver.org/pages/newsletter.asp 
ISA Server Articles and Tutorials:
http://www.isaserver.org/articles_tutorials/ 
ISA Server Blogs: http://blogs.isaserver.org/ 
------------------------------------------------------
Visit TechGenix.com for more information about our other sites:
http://www.techgenix.com 
------------------------------------------------------
To unsubscribe visit http://www.isaserver.org/pages/isalist.asp 
Report abuse to listadmin@xxxxxxxxxxxxx 

------------------------------------------------------
List Archives: //www.freelists.org/archives/isalist/
ISA Server Newsletter: http://www.isaserver.org/pages/newsletter.asp
ISA Server Articles and Tutorials: http://www.isaserver.org/articles_tutorials/
ISA Server Blogs: http://blogs.isaserver.org/
------------------------------------------------------
Visit TechGenix.com for more information about our other sites:
http://www.techgenix.com
------------------------------------------------------
To unsubscribe visit http://www.isaserver.org/pages/isalist.asp
Report abuse to listadmin@xxxxxxxxxxxxx

Other related posts: