Obtaining workstation credentials thru ActiveSync

Last post 05-20-2008 13:15 by mohunt. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-20-2008 12:55

    • mohunt
    • Top 100 Contributor
    • Joined on 05-12-2008
    • Posts 6

    Obtaining workstation credentials thru ActiveSync

    Hi,

    I am developing a PocketPC 5.0 application that connects to an intranet using a cabled Activesync connection to a client PC.  I need to authnicate to a web service that runs on a server with in the same domain as the client PC.  It appears that the client PC crenditials are not being passed when I make the call from my PocketPC 5.0 application to the web service.  I have tried using the System.Net.CredentialCache.DefaultCredentials; however, the userid, password, and domain therein are all empty strings.  An example of this code from my PocketPC 5.0 application is below:

                        My.WebServices.MWS.Credentials = System.Net.CredentialCache.DefaultCredentials
                        My.WebServices.MWS.PreAuthenticate = True

    Is there anyway for a PocketPC application to get the credentails from the PC to which it is connected via a cabled ActiveSync connection?

     

  • 05-20-2008 13:09 In reply to

    • ctacke
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-27-2007
    • Indiana
    • Posts 2,255

    Re: Obtaining workstation credentials thru ActiveSync

    No.  The device has no concept of the connected PC other than it is anotehr connected network device.  ActiveSync is simply providing routing services for the device.  This is analogous to two PCs connected to the same hub or using network connection sharing on one PC for others.  The security context of the intermediary is not known or relevent as it would be a huge security hole.  The device itself needs to create its own credential. 

  • 05-20-2008 13:15 In reply to

    • mohunt
    • Top 100 Contributor
    • Joined on 05-12-2008
    • Posts 6

    Re: Obtaining workstation credentials thru ActiveSync

    Thank you, that's pretty much what I figured.

Page 1 of 1 (3 items)