views:

53

answers:

1

Got this problem - not sure if it is possible.

User is logged into the sharepoint portal server.

  1. The user opens a page (webpart) in SPS - an ActiveX is started
  2. The ActiveX receives data from a docked barcode scanner.
  3. The ActiveX creates a WebClient
  4. The ActiveX set the credentials on the WebClient as used in point 1.)
  5. The ActiveX uses WebClient.UploadFile(..)
  6. In SPS an aspx/ascx page recieve the data (as the same user/session in point 1.)
  7. Everybody is happy (its friday) - and goes for beer :)

it is the point 4. that is the problem.

A: 

It depends on the authentication mechanism used - if the user logs into the page with NTLM (windows integrated), then the WebClient cannot reuse the credentials. If it's kerberos-based, you have a better chance.

x0n