locked
Construcing NetworkCredential from WindowsIdentity RRS feed

  • 問題

  • I get create WindowsIdentity from the following code,

     

    Code Snippet
    WindowsIdentity wi = System.Security.Principal.WindowsIdentity.GetCurrent();

     

     

     

    I can also create NetworkCredential from the following code,

     

    Code Snippet
    NetworkCredential cred = new NetworkCredential(principal, password, authority);

     

     


    But.....What about if I need to construct a NetworkCredential from the WindowsIdentity? Cause i am writing a function to upload document to SharePoint Server/Service from my class. I sure don't have the user's password to create the NetworkCredential.

    2008年7月9日 上午 04:09

解答

  • applied in another way.


    大家一齊探討、學習和研究,謝謝! Microsoft MVP, Microsoft Community Star(TW & HK), MCT, MCSD, MCAD, MCSE+I, MCDBA, MCDST, MCSA, MCTS, MCITP
    2010年3月26日 上午 09:13