Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Application mapping - how can I dig deeper?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Benman  
View profile  
 More options Feb 16 2005, 12:00 pm
Newsgroups: microsoft.public.inetserver.iis
From: "Benman" <bmann...@gmail.com>
Date: 16 Feb 2005 09:00:51 -0800
Local: Wed, Feb 16 2005 12:00 pm
Subject: Application mapping - how can I dig deeper?
Hi,

I have been wrestling with IIS6 for some time now trying to figure out
my missing link.

I posted a question about 2 weeks ago, and the answer helped me get to
where I am now.

Our dBASE executable files (.DBW extension) were generating 404 Errors
before any Web Service Extensions were added.  For testing purposes, I
changed the default 'Prohibit' setting for 'All Unknown CGI Extensions'
to 'Allow' and the .DBW file executed perfectly.

Just to paint a more complete picture, the .dbw was generated by dBASE
to add records to a simple table and output an HTML result.
All the necessary files were placed into the wwwroot folder of the
Win2K3 web server.  Client browsers then pointed to
http://WEBSERVER/webtest.htm and users enter table data into a form.
This form then does a POST submission to 'webtest.dbw' in the same
wwwroot directory.

I would like to beef up the security by only allowing the dBASE runtime
to be executed.  When I add a web service extension pointing to the
dBASE runtime executable (D:\Program
Files\dBASE\PLUS\Runtime\PLUSRun.exe) and set it to 'Allow' after
restoring all the other CGIs to their default 'Prohibit' setting, I get
the same 404 error.

I'm definitely missing something, but not sure exactly what it could
be.

In the IIS Manager default web site properties, I did map the .dbw
extension to the specific target:
"D:\Program Files\dBASE\PLUS\Runtime\PLUSRun.exe" "%s"

for all verbs as specified in the dBASE web connection documentation.

So my best assumption here is that the .dbw invokes other executables
besides the PLUSRun.exe.  Since they are not listed in this web service
extension, it fails with the 404 error.  This is the only thing that
makes sense to me why this fails, and 'All Unknown CGI Extensions'
works fine.

Is there any way to dig deeper into IIS (log files somewhere?) that
could tell me what other executable files it may be looking for?

Any help would be greatly appreciated.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Wang [Msft]  
View profile  
 More options Feb 16 2005, 9:26 pm
Newsgroups: microsoft.public.inetserver.iis
From: "David Wang [Msft]" <some...@online.microsoft.com>
Date: Wed, 16 Feb 2005 18:26:40 -0800
Local: Wed, Feb 16 2005 9:26 pm
Subject: Re: Application mapping - how can I dig deeper?
You can return to prohibit all CGI extensions and allow only the following
CGI extension:

"D:\Program Files\dBASE\PLUS\Runtime\PLUSRun.exe" "%s"

Yes, include the quotes and the %s.  It is because they are missing that
your existing Web Service Extension is not taking effect at all.

Yes, it is a quirky behavior that affects CGI EXE and not ISAPI DLLs because
you can give commandline parameters for EXEs and can affect behavior.

It unfortunately works this way because of security.  IIS doesn't attempt to
parse out the executable name from parameter before calling CreateProcess
since that action itself can potentially introduce a canonicalization issue.
So, you have to enable as Web Service Extension exactly what you gave as
Application mapping.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//

"Benman" <bmann...@gmail.com> wrote in message

news:1108573251.393098.210580@l41g2000cwc.googlegroups.com...
Hi,

I have been wrestling with IIS6 for some time now trying to figure out
my missing link.

I posted a question about 2 weeks ago, and the answer helped me get to
where I am now.

Our dBASE executable files (.DBW extension) were generating 404 Errors
before any Web Service Extensions were added.  For testing purposes, I
changed the default 'Prohibit' setting for 'All Unknown CGI Extensions'
to 'Allow' and the .DBW file executed perfectly.

Just to paint a more complete picture, the .dbw was generated by dBASE
to add records to a simple table and output an HTML result.
All the necessary files were placed into the wwwroot folder of the
Win2K3 web server.  Client browsers then pointed to
http://WEBSERVER/webtest.htm and users enter table data into a form.
This form then does a POST submission to 'webtest.dbw' in the same
wwwroot directory.

I would like to beef up the security by only allowing the dBASE runtime
to be executed.  When I add a web service extension pointing to the
dBASE runtime executable (D:\Program
Files\dBASE\PLUS\Runtime\PLUSRun.exe) and set it to 'Allow' after
restoring all the other CGIs to their default 'Prohibit' setting, I get
the same 404 error.

I'm definitely missing something, but not sure exactly what it could
be.

In the IIS Manager default web site properties, I did map the .dbw
extension to the specific target:
"D:\Program Files\dBASE\PLUS\Runtime\PLUSRun.exe" "%s"

for all verbs as specified in the dBASE web connection documentation.

So my best assumption here is that the .dbw invokes other executables
besides the PLUSRun.exe.  Since they are not listed in this web service
extension, it fails with the 404 error.  This is the only thing that
makes sense to me why this fails, and 'All Unknown CGI Extensions'
works fine.

Is there any way to dig deeper into IIS (log files somewhere?) that
could tell me what other executable files it may be looking for?

Any help would be greatly appreciated.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Benman  
View profile  
 More options Feb 18 2005, 1:58 pm
Newsgroups: microsoft.public.inetserver.iis
From: "Benman" <bmann...@gmail.com>
Date: 18 Feb 2005 10:58:08 -0800
Local: Fri, Feb 18 2005 1:58 pm
Subject: Re: Application mapping - how can I dig deeper?
Thanks for your help David.

This makes a lot of sense, but when I go to that control panel in IIS
and try to add the Web Service Extension, it doesnt allow me to
add the quotes and the "%s" at the end.

It prompts for Extension Name and Required Files.
Required Files has a Browse button that wont allow you to edit these
values.

Maybe I can edit this directly in the registry somehwere?

Thanks,
-Ben


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Wang [Msft]  
View profile  
 More options Feb 18 2005, 5:04 pm
Newsgroups: microsoft.public.inetserver.iis
From: "David Wang [Msft]" <some...@online.microsoft.com>
Date: Fri, 18 Feb 2005 14:04:37 -0800
Local: Fri, Feb 18 2005 5:04 pm
Subject: Re: Application mapping - how can I dig deeper?
There is no IIS configuration in the registry (other than various
compatibility hacks from prior IIS versions that we maintain).  All IIS
configuration is in the metabase, which you manipulate with various
commandline tools that are shipped with IIS.

In this case, use iisext.vbs

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iisr...

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//

"Benman" <bmann...@gmail.com> wrote in message

news:1108753088.133959.270730@o13g2000cwo.googlegroups.com...
Thanks for your help David.

This makes a lot of sense, but when I go to that control panel in IIS
and try to add the Web Service Extension, it doesnt allow me to
add the quotes and the "%s" at the end.

It prompts for Extension Name and Required Files.
Required Files has a Browse button that wont allow you to edit these
values.

Maybe I can edit this directly in the registry somehwere?

Thanks,
-Ben


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Benman  
View profile  
 More options Feb 23 2005, 3:12 pm
Newsgroups: microsoft.public.inetserver.iis
From: "Benman" <bmann...@gmail.com>
Date: 23 Feb 2005 12:12:34 -0800
Local: Wed, Feb 23 2005 3:12 pm
Subject: Re: Application mapping - how can I dig deeper?
David,

Im sorry to harp on this issue - but I cannot seem to get IISext to
accept this syntax:
"D:\Program Files\dBASE\PLUS\Runtime\PLUSRun.exe" "%s"
for an allowable file.

Can you point me to an example of the exact syntax for this type of
command?
Here is what I have tried so far without any luck:

C:\WINDOWS\system32>iisext /AddFile C:\Program
Files\dBASE\PLUS\Runtime\PLUSrun.exe %s 1 PlusRun 0 PlusRun

{Produced a Type Mismatch Error}

Ill spare you the boring details of everything I tried next.

Finally, I figured the spaces between Program and Files and %s were
posing the problem, so I moved the runtime files to a new folder off
the root: C:\PLRun.  I also tried putting quotes and subquotes within
and around the entire string (including the %s)

C:\WINDOWS\system32>iisext /AddFile ""C:\PLRun\PLUSrun.exe "%s"" 1
PlusRun 0 PlusRun

And this "took".

When I looked at the Required Files list in the PlusRun Web Extension
in IIS, it read exactly as follows:
C:\PLRun\PLUSrun.exe %s

with no quotes whatsoever.

I still cannot get these .dbw scripts to run without Allowing All
Unknown CGI Extensions in IIS, and for the life of me I cannot get that
string to match that exact syntax with the quotes.

I did find one post where someone recommended doing a direct Metabase
edit, which I did try.  In the metabase.xml file, I found the location
of the PlusRun web extension.  I entered the above string using the
HTML &quot; equivalent for the double quote, and managed to finally
"see it" listed in the IIS properties of this web extension, but it
still didnt work.  Im guessing that the metabase edit is purely a
display edit, and doesnt actually update any settings.

I wouldnt bother you again if I could find any help anywhere else, but
you're the only one who seems to really understand the inner workings
here.  I found one other Post in Usenet where someone had this same
problem, and he posted after a week that he solved his problem by using
the IISExt utility, but he did not specify a syntax.

Your help is very much appreciated.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Wang [Msft]  
View profile  
 More options Feb 28 2005, 6:06 am
Newsgroups: microsoft.public.inetserver.iis
From: "David Wang [Msft]" <some...@online.microsoft.com>
Date: Mon, 28 Feb 2005 03:06:21 -0800
Local: Mon, Feb 28 2005 6:06 am
Subject: Re: Application mapping - how can I dig deeper?
I agree that the whole issue with Long File Names (especially spaces and
quotes, which are used as commandline argument separators) and IIS
commandline tools is confusing.  Here's the crux of what is going on --
there are three different namespaces with different rules:
1. XML for configuration
2. IIS Configuration data (invariant)
3. Script Host

Ultimately, you want certain values for #2, but you can only enter them
through #1 or #3.

Here are the combinations that work for you:
1.
In Application Mappings tab:
.dbw
"C:\Program Files\dBASE\PLUS\Runtime\PLUSrun.exe" %s

iisext /AddFile "C:\Program Files\dBASE\PLUS\Runtime\PLUSrun.exe %s" 1
PlusRun 1 PlusRun

2.
In Application Mappings tab:
.dbw
"C:\Program Files\dBASE\PLUS\Runtime\PLUSrun.exe" "%s"

iisext /AddFile "C:\Program Files\dBASE\PLUS\Runtime\PLUSrun.exe %s" 1
PlusRun 1 PlusRun

Then edit metabase.xml to include
C:\Program Files\dBASE\PLUS\Runtime\PLUSrun.exe &quot;%s&quot;

(note where you have &quot; and where you do not)

#1 should suffice for your needs, unless you reference .dbw files that are
LFN themselves.

Editing metabase.xml requires either you enable Edit While Running, or you
run NET STOP /y IISADMIN, then make metabase.xml changes, then run NET START
W3SVC

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//

"Benman" <bmann...@gmail.com> wrote in message

news:1109189554.583415.232450@o13g2000cwo.googlegroups.com...
David,

Im sorry to harp on this issue - but I cannot seem to get IISext to
accept this syntax:
"D:\Program Files\dBASE\PLUS\Runtime\PLUSRun.exe" "%s"
for an allowable file.

Can you point me to an example of the exact syntax for this type of
command?
Here is what I have tried so far without any luck:

C:\WINDOWS\system32>iisext /AddFile C:\Program
Files\dBASE\PLUS\Runtime\PLUSrun.exe %s 1 PlusRun 0 PlusRun

{Produced a Type Mismatch Error}

Ill spare you the boring details of everything I tried next.

Finally, I figured the spaces between Program and Files and %s were
posing the problem, so I moved the runtime files to a new folder off
the root: C:\PLRun.  I also tried putting quotes and subquotes within
and around the entire string (including the %s)

C:\WINDOWS\system32>iisext /AddFile ""C:\PLRun\PLUSrun.exe "%s"" 1
PlusRun 0 PlusRun

And this "took".

When I looked at the Required Files list in the PlusRun Web Extension
in IIS, it read exactly as follows:
C:\PLRun\PLUSrun.exe %s

with no quotes whatsoever.

I still cannot get these .dbw scripts to run without Allowing All
Unknown CGI Extensions in IIS, and for the life of me I cannot get that
string to match that exact syntax with the quotes.

I did find one post where someone recommended doing a direct Metabase
edit, which I did try.  In the metabase.xml file, I found the location
of the PlusRun web extension.  I entered the above string using the
HTML &quot; equivalent for the double quote, and managed to finally
"see it" listed in the IIS properties of this web extension, but it
still didnt work.  Im guessing that the metabase edit is purely a
display edit, and doesnt actually update any settings.

I wouldnt bother you again if I could find any help anywhere else, but
you're the only one who seems to really understand the inner workings
here.  I found one other Post in Usenet where someone had this same
problem, and he posted after a week that he solved his problem by using
the IISExt utility, but he did not specify a syntax.

Your help is very much appreciated.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Benman  
View profile  
 More options Feb 28 2005, 4:27 pm
Newsgroups: microsoft.public.inetserver.iis
From: "Benman" <bmann...@gmail.com>
Date: 28 Feb 2005 13:27:29 -0800
Local: Mon, Feb 28 2005 4:27 pm
Subject: Re: Application mapping - how can I dig deeper?
David,

I followed step 2 to the letter, and now its working like a charm!

Thank you very much for all your help - this was a very challenging
problem, and I most definitely could not have got it working without
your help.

Best Regards,
-Ben


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Wang [Msft]  
View profile  
 More options Feb 28 2005, 7:27 pm
Newsgroups: microsoft.public.inetserver.iis
From: "David Wang [Msft]" <some...@online.microsoft.com>
Date: Mon, 28 Feb 2005 16:27:40 -0800
Local: Mon, Feb 28 2005 7:27 pm
Subject: Re: Application mapping - how can I dig deeper?
No problem.

This sort of problem usually only happen to CGI not originally meant to work
on the web (they require the "%s" to work instead of picking out the
necessary values from the PATH_INFO/QUERY_STRING environment variables). We
are really digging back at the compatibility stack here. :-)

I realize that the problem with quotes and spaces is going to be a
persistent problem for a commandline tool since Windows Script Host strips
the quotes out, so we'll likely continue to fight incongruencies like this
in the future. But, that's what compatibility is about... probably not a
first class citizen, but it continues to work.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//

"Benman" <bmann...@gmail.com> wrote in message

news:1109626049.598562.166880@l41g2000cwc.googlegroups.com...
David,

I followed step 2 to the letter, and now its working like a charm!

Thank you very much for all your help - this was a very challenging
problem, and I most definitely could not have got it working without
your help.

Best Regards,
-Ben


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google