Thanks Tom.
We are currently using the user physically logged into the
server (User A here) to provide the mapping so that we can
avoid mapping the drive on the fly through the COM object
(which is impersonating User B). This works for us on Win
2000.
As our COM is written in VFP, it is difficult to create
the parameters for WNetAddConnection2() and we have had
trouble mapping drives with WNetAddConnection() under Win
2003.
We would love to use UNC paths but the rework to the
legacy code would be significant. It looks like we may
need to bite the bullet here and do the conversion anyway.
Thanks for your help, Dan
>-----Original Message-----
>"Dan Andrade" <dan.andrade.TakeThisOut@accpac.com> wrote in message
>news:f7f12c9a.0403051452.4124ace4@posting.google.com...
>> Can anyone tell me how drive mappings work for COM
objects run within
>> IIS 5.0 vs. 6.0. We have a COM application that
requires drive
>> mappings rather than UNC paths. It impersonates a user
with rights to
>> update files on another machine using the drive mapping.
>>
>> On Windows 2000 with IIS 5.0 we set up the drive
mapping through a
>> user that was logged in on the web server. The COM,
though
>> impersonating a different user, could still see this
drive mapping. In
>> our new setup under Windows 2003 server with IIS 6.0,
the drive
>> mapping is no longer visible.
>>
>> Example:
>> > User A is logged into the web server and has
Drive "G:" mapped to a
>share on another machine
>> > Our COM object uses impersonation to logon User B
>> > Under IIS 5.0 / Win2000, User B can see files on "G:"
>> > Under IIS 6.0 / Win2003, User B cannot see files
on "G:"
>>
>> Does anyone know if this is a new behavior or if there
may be a
>> default setting changed that controls this... or if
this is controlled
>> by IIS at all.
>
>If User B needs the mapped drives, why would you map them
for User A? This
>may help:
>http://support.microsoft.com/default.aspx?scid=kb;en-
us;257174
>
>--
>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/cente
rs/iis/
>
>
>
>.
><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Drive Mapping in IIS 6.0