<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Security</title><link>http://forums.asp.net/25.aspx</link><description>All about ASP.NET security (authentication, authorization, membership, roles, etc.) and the Login controls. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=24&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: How to re use authenticated user name and password of sharepoint site in NetworkCredential() method as parameters</title><link>http://forums.asp.net/thread/1558379.aspx</link><pubDate>Thu, 01 Feb 2007 01:52:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1558379</guid><dc:creator>Leijun Jie - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1558379.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1558379</wfw:commentRss><description>If you want to pass current Windows Identity, why not try&lt;a href="http://msdn2.microsoft.com/en-us/library/system.net.credentialcache.defaultcredentials.aspx"&gt; System.Net.CredentialCache.DefaultCredentials&lt;/a&gt;? For example:&lt;br /&gt;&lt;br /&gt;userGroup.Credentials = System.Net.CredentialCache.DefaultCredentials;&lt;br /&gt;</description></item><item><title>How to re use authenticated user name and password of sharepoint site in NetworkCredential() method as parameters</title><link>http://forums.asp.net/thread/1547986.aspx</link><pubDate>Thu, 25 Jan 2007 09:02:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1547986</guid><dc:creator>rmpasha</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1547986.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1547986</wfw:commentRss><description>&lt;p&gt;I am creating a user control page(ascx) using the web services from SharePoint Services/Project Server site. As we know that the user name and password needs to access the sites of them. I&lt;br /&gt;used the following code(C#) to access the web services, it will work fine. There is already Windows Authentication in Sharepoint Site.&lt;br /&gt;&lt;br /&gt;//UserGroupWS is Added Web Service&lt;br /&gt;private static UserGroupWS.UserGroup userGroup = new UserGroupWS.UserGroup(); &lt;br /&gt;&lt;br /&gt;userGroup.Url = "http://DomainName/_vti_bin/UserGroup.asmx"; &lt;br /&gt;&lt;br /&gt;&lt;b&gt;userGroup.Credentials = new System.Net.NetworkCredential("UserName", "Password", "DomainName");&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Note that there are the parameters namded "Password" also in NetworkCredential() method. While this page is using as webpart in SharePoint Site, I can access the UserName currently logined to pass as first parameter in this method. But how to retrieve Password of the current UserName currently logined to pass as second parameter in this method? Is there any idea?&lt;br /&gt;&lt;br /&gt;Please help!!! &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>