Re: 401 Unauthorized trying to read SPList Attachment - owssrv.dll
From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 04/26/05
- Next message: Patrick: "Issiung certifcates by a Windows 2000 Enterprise CA"
- Previous message: David Wang [Msft]: "Re: Permission Denied when writing text file from ASP Site"
- In reply to: Chris Kane: "401 Unauthorized trying to read SPList Attachment - owssrv.dll"
- Next in thread: Chris Kane: "Re: 401 Unauthorized trying to read SPList Attachment - owssrv.dll"
- Reply: Chris Kane: "Re: 401 Unauthorized trying to read SPList Attachment - owssrv.dll"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 25 Apr 2005 23:57:03 -0700
IIS does not see your impersonated user because you failed to authenticate
as that user.
Remember that we are talking about HTTP, which has its own publicly defined
authentication protocols. Client-side impersonation isn't one of them. The
identity of the user on the client, impersonated or not, means ABSOLUTELY
NOTHING on the server unless you negotiate HTTP authentication of some sort.
IE, for example, does this authentication behind the scenes without you
noticing. So do many of the Windows programs and protocols. This isn't how
the web and HTTP works, though, and you just have to follow the rules.
-- //David IIS http://blogs.msdn.com/David.Wang This posting is provided "AS IS" with no warranties, and confers no rights. // "Chris Kane" <ChrisKane@discussions.microsoft.com> wrote in message news:3DA9A3DB-FD45-436E-99B5-265B002F81B3@microsoft.com... We have written a class that enumerates the items in a WSS list and then attemptes to open the attachment for each item. We have written two classes, one to impersonate a user and read in the list information and the other to be called by the first which actually opens the attachment. Our code fails when it tries to open the attachment in the second class with a 401 - Unauthorized error from IIS on http://localhost/_vti_bin/owssrv.dll. What's strange is that I can use IE to open the URL to the attachemnt without any problems. I noticed in the IIS logs that when I open the URL, I can see the domain\password passed to IIS from IE. However, when our code tries to access the same URL, no user information is passed, causing the 401. We have impersonated a valid user in our code, so why does IIS not see it? Thanks!
- Next message: Patrick: "Issiung certifcates by a Windows 2000 Enterprise CA"
- Previous message: David Wang [Msft]: "Re: Permission Denied when writing text file from ASP Site"
- In reply to: Chris Kane: "401 Unauthorized trying to read SPList Attachment - owssrv.dll"
- Next in thread: Chris Kane: "Re: 401 Unauthorized trying to read SPList Attachment - owssrv.dll"
- Reply: Chris Kane: "Re: 401 Unauthorized trying to read SPList Attachment - owssrv.dll"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|