We are developing a desktop application with sharepoint portal integration through web services.For Synchronization with sharepoint 2007 and 2010,
services are provided through wrapper class. In our application,user can login to sharepoint,an check-out or check-in our project.
For log-in, I am using the windows credentials. When I use this credential, for SSL link e.g
https://sps.abc.com:92/ ,it gets logged- in with systemAccount, whereas on windows I am logged-in as user1 (with Full Control).And if I check out any project with current log-in ,it is showing that project is check out SystemAccount instead of user1.However it works fine for http link.
System.Security.Principal.WindowsIdentity.GetCurre nt() is showing user1 as current user.
I'm getting credential through this ,
NetworkCredential credentials = System.Net.CredentialCache.DefaultNetworkCredentia ls;
I have tried CredentialCache.DefaultCredentials, but of no use.
Is there any other way for getting the credential of current windows user? or any other solution.
thanks in advance