Re: Chached credentials + ISAPI application print to PDF file

From: Tom Kaminski [MVP] ((A_at_T))
Date: 06/19/03


Date: Thu, 19 Jun 2003 14:02:53 -0400


"Israel" <goldfinger38@hotmail.com> wrote in message
news:006101c33689$8812f8b0$a501280a@phx.gbl...
>
> >-----Original Message-----
> >"Israel" <goldfinger38@hotmail.com> wrote in message
> >news:00eb01c3367c$259a4e20$a301280a@phx.gbl...
> >> Hello all,
> >> I have an ISAPI application running on Win2K Server/IIS
> 5.
> >> I use Basic authentication for accessing the
> application.
> >> Problems:
> >> 1.
> >> One of the app functions is to print to a PDF file. The
> >> file must be printed to a certain path under the
> directory
> >> where the ISAPI dll resides (the virtula directory of
> the
> >> application).
> >> This printout is carried out using a printer driver that
> >> takes whatever input it gets and writes out a PDF file
> >> containing the input. It appears as a standard printer
> in
> >> the Printers folder.
> >> The printer driver fails to write to the needed file and
> >> instead prints to a file in the temp dir of the user
> >> accessing the site.
> >> I made user accessing the application an administrator.
> I
> >> gave Write Permission to the application using the
> >> directory security tab for the virtual directory of the
> >> application. Nothing changed the situation.
> >> How can I give the printer driver permissions to write
> the
> >> needed directory?
> >
> >It sounds like the ISAPI is using the system temp
> variable. If it were a
> >permissions issue I would expect you to get an error.
> Chek to see if you
> >can change the temp (or tmp) var.
>
> Thanks Tom,
> There is no error message as the normal behaviour of the
> driver is to print to the USER's temp directory if the
> path given to it does not exist (or unreachable for any
> reason). Thats why I think it's permissions related.
> Using another web server (tiny server used for debugging
> purposes), the problem does not rise. This server of
> course does not support any notion of virtual directory
> security like IIS.
> What can you conclude from that?

Hmmm ... not sure where to go from here.

Are you passing the actual physical path to the ISAPI?

-- 
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserver2003/community/centers/iis/


Relevant Pages

  • Re: IIS 6.0 + Win 2003 + ISAPI
    ... You've basically shown that since the application EXE runs on Windows Server ... authentication protocol used for the request and whether your ISAPI uses the ... by a ISAPI extension running on IIS 6.0. ... In our application we would create a temporary file to ...
    (microsoft.public.inetserver.iis.security)
  • Re: IIS error with ISAPI and virtual directory to remote svr .. 40
    ... Web Server on machine B ... In particular, with some authentication protocols, your ISAPI ... Then immediately stop IIS. ... virtual directory it impersonates with 'user a''s account for security ...
    (microsoft.public.inetserver.iis)
  • Re: Application Pool crashes, please help with IISState
    ... Having the "Cache ISAPI applications" check box checked means that IIS will ... IIS will load and unload ISAPI DLLs ... The "Cache ISAPI applications" check box under Home Directory/Virtual ... As far as what is installed on this production web server here they are as ...
    (microsoft.public.inetserver.iis)
  • Re: IIS error with ISAPI and virtual directory to remote svr .. 40
    ... connects to ISAPI on the IIS server the ISAPI then connects (or ... IIS?) ... remote file server.. ... virtual directory it impersonates with 'user a''s account for security ...
    (microsoft.public.inetserver.iis)
  • Re: IIS (or Isapi) adds Connection header to response
    ... I would never rely on a bug in a browser implementation as the means to get ... > I dont currently have access to the ISAPI code. ... available on any other IIS version. ... NTLM header since it is no longer useful. ...
    (microsoft.public.inetserver.iis.security)