473,408 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

HELP!! Accessing other machines with an IIS CGI script

Greetings,

I'm working on a CGI program that will run under MS IIS 5.0 and will
browse folders on three other machines, building HTML pages that will
provide links to these folders.

Essentially, the CGI will connect to each machine in turn, doing the
FindFirst/FindNext process based on the current criteria. It will
select certain files/folders, and build an HTML page as it goes.

The premise is fine. If I run the program from the command line, it
seems to work fine and I get my HTML code out. I can copy the code
into a separate file, open it in the browser, and all appears right
with the world.

However, when I try to run the CGI from the browser itself, I get all
kinds of problems. The first one I got was a 1312, "A specified logon
session does not exist. It may have already been terminated." After
doing some searching, I began to investigate impersonation of a logged
on user. This produces a different error: 1314, "A required privilege
is not held by the client."

I've been arguing with this now for several days and the frustration
level is beginning to get quite high. Has anyone else ever tried this?
I find it hard to believe that I'm the first to do this.

Of course, one of my problems is that I'm neither an IIS guru nor an
Admin guru. And we have neither here in the office.

I'm coding this in Python 2.4 and the Windows extensions. I have a
number of other CGI programs in Python running under IIS that work
correctly, but those only do database accesses. This one I'm trying to
put together is the first one to actually do file searches.

I have set the privileges for the logged on account on my IIS box for
SE_TCB_NAME, SE_CHANGE_NOTIFY_NAME and SE_ASSIGNPRIMARYTOKEN_NAME and
rebooted. To no avail. I'm not sure if there are additional
alterations that need to be done to the security policies or not.
Again, I'm not a guru.

If anyone can give me more information/guidance I would greatly
appreciate it. If you need more information from me, I will do my best
to provide it.

TIA,

Paul

Sep 14 '05 #1
2 1605
Without knowing what operation fails, it's kind of
difficult to give any meaningful answers.
At what point in the code do you get the error ?

If IIS runs under a local account, it might not have
permission to access the other machine, or to impersonate
a domain user.

You might want to set up auditing on the
folder you're trying to list, and see exactly what user
IIS is connecting as (or if it's connecting at all).

hth
Roger
"paulp" <pa*********@acs-inc.com> wrote in message news:11**********************@g47g2000cwa.googlegr oups.com...
Greetings,

I'm working on a CGI program that will run under MS IIS 5.0 and will
browse folders on three other machines, building HTML pages that will
provide links to these folders.

Essentially, the CGI will connect to each machine in turn, doing the
FindFirst/FindNext process based on the current criteria. It will
select certain files/folders, and build an HTML page as it goes.

The premise is fine. If I run the program from the command line, it
seems to work fine and I get my HTML code out. I can copy the code
into a separate file, open it in the browser, and all appears right
with the world.

However, when I try to run the CGI from the browser itself, I get all
kinds of problems. The first one I got was a 1312, "A specified logon
session does not exist. It may have already been terminated." After
doing some searching, I began to investigate impersonation of a logged
on user. This produces a different error: 1314, "A required privilege
is not held by the client."

I've been arguing with this now for several days and the frustration
level is beginning to get quite high. Has anyone else ever tried this?
I find it hard to believe that I'm the first to do this.

Of course, one of my problems is that I'm neither an IIS guru nor an
Admin guru. And we have neither here in the office.

I'm coding this in Python 2.4 and the Windows extensions. I have a
number of other CGI programs in Python running under IIS that work
correctly, but those only do database accesses. This one I'm trying to
put together is the first one to actually do file searches.

I have set the privileges for the logged on account on my IIS box for
SE_TCB_NAME, SE_CHANGE_NOTIFY_NAME and SE_ASSIGNPRIMARYTOKEN_NAME and
rebooted. To no avail. I'm not sure if there are additional
alterations that need to be done to the security policies or not.
Again, I'm not a guru.

If anyone can give me more information/guidance I would greatly
appreciate it. If you need more information from me, I will do my best
to provide it.

TIA,

Paul


----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Sep 14 '05 #2
Thanks for the info. I'm going to repost this in comp.lang.python as well
as in a couple of MS IIS groups with some additional information (code
snippets and results).

Paul

"Roger Upole" <ru****@hotmail.com> wrote in message
news:11************@spool6-east.superfeed.net...
Without knowing what operation fails, it's kind of
difficult to give any meaningful answers.
At what point in the code do you get the error ?

If IIS runs under a local account, it might not have
permission to access the other machine, or to impersonate
a domain user.

You might want to set up auditing on the
folder you're trying to list, and see exactly what user
IIS is connecting as (or if it's connecting at all).

hth
Roger
"paulp" <pa*********@acs-inc.com> wrote in message news:11**********************@g47g2000cwa.googlegr oups.com...
Greetings,

I'm working on a CGI program that will run under MS IIS 5.0 and will
browse folders on three other machines, building HTML pages that will
provide links to these folders.

Essentially, the CGI will connect to each machine in turn, doing the
FindFirst/FindNext process based on the current criteria. It will
select certain files/folders, and build an HTML page as it goes.

The premise is fine. If I run the program from the command line, it
seems to work fine and I get my HTML code out. I can copy the code
into a separate file, open it in the browser, and all appears right
with the world.

However, when I try to run the CGI from the browser itself, I get all
kinds of problems. The first one I got was a 1312, "A specified logon
session does not exist. It may have already been terminated." After
doing some searching, I began to investigate impersonation of a logged
on user. This produces a different error: 1314, "A required privilege
is not held by the client."

I've been arguing with this now for several days and the frustration
level is beginning to get quite high. Has anyone else ever tried this?
I find it hard to believe that I'm the first to do this.

Of course, one of my problems is that I'm neither an IIS guru nor an
Admin guru. And we have neither here in the office.

I'm coding this in Python 2.4 and the Windows extensions. I have a
number of other CGI programs in Python running under IIS that work
correctly, but those only do database accesses. This one I'm trying to
put together is the first one to actually do file searches.

I have set the privileges for the logged on account on my IIS box for
SE_TCB_NAME, SE_CHANGE_NOTIFY_NAME and SE_ASSIGNPRIMARYTOKEN_NAME and
rebooted. To no avail. I'm not sure if there are additional
alterations that need to be done to the security policies or not.
Again, I'm not a guru.

If anyone can give me more information/guidance I would greatly
appreciate it. If you need more information from me, I will do my best
to provide it.

TIA,

Paul


----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet

News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups ----= East and West-Coast Server Farms - Total Privacy via Encryption

=----
Sep 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Spidah | last post by:
I have a script set up on one server which queries the mysql server there and creates html code with the results. How do I access this and include the results in a page on another server? Simply...
0
by: Hardeep Rakhra | last post by:
Heya, I'm trying to use KmMail (http://www.kmmail.org) for accessing my IMAP mail service. However i can;t seen to get it working. I get prompted for a username and password and after that it...
0
by: Michael Wood | last post by:
We're using mailman (python based) to do mailing lists. I'd like to write a ColdFusion interface to the command line scripts for managing list membership but there's a problem. I can run the...
3
by: dpackwood | last post by:
Hello, I have two different scripts that do pretty much the same thing. The main perl script is on Windows. It runs and in the middle of it, it then calls out another perl script that then...
2
by: Kamran Mahmood | last post by:
Dear Fellows! Can anyone send me a small script which can let me know about any web site that is using cgi script in any of its pages. For example if I open http://geocities.com, the script...
7
by: rein.petersen | last post by:
Hey All, I was wondering if there were a way for a script to access it's parent tag without having to use the document.all.tags method which doesn't necessarily identify it if there are more...
2
by: funkychicken818 | last post by:
This is the script. var reqTopCont; var reqBotCont; function changeTopContent(newUrl) { reqTopCont = false; // branch for native XMLHttpRequest object if (window.XMLHttpRequest) {
9
by: bhumikas | last post by:
Hi all, I need a help in perl script.The basic idea is,it must have command line arguments for the user flexibility.the files are in the format as shown below. MainFolder Directory ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.