CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 1/25/2007 9:02:24 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 33 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
rmpasha
Asp.Net User
How to re use authenticated user name and password of sharepoint site in NetworkCredential() method as parameters1/25/2007 9:02:24 AM

0/0

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
used the following code(C#) to access the web services, it will work fine. There is already Windows Authentication in Sharepoint Site.

//UserGroupWS is Added Web Service
private static UserGroupWS.UserGroup userGroup = new UserGroupWS.UserGroup();

userGroup.Url = "http://DomainName/_vti_bin/UserGroup.asmx";

userGroup.Credentials = new System.Net.NetworkCredential("UserName", "Password", "DomainName");

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?

Please help!!!

Leijun Jie - MS
Asp.Net User
Re: How to re use authenticated user name and password of sharepoint site in NetworkCredential() method as parameters2/1/2007 1:52:52 AM

0/0

If you want to pass current Windows Identity, why not try System.Net.CredentialCache.DefaultCredentials? For example:

userGroup.Credentials = System.Net.CredentialCache.DefaultCredentials;

The future is now...
Sincerely,
LeiJun Jie
Microsoft Online Community Support
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
How to re use authenticated user name and password of sharepoint ... How to re use authenticated user name and password of sharepoint site in NetworkCredential() method as parameters ...
Microsoft TechNet SharePoint - General Question and Answers and ... How to get authenticated password of sharepoint site user to pass on NetworkCredential() method as parameters. Hi,. I have tried SSO, but I couldnot get ...
CodeProject: Uploading Files to SharePoint Document Library and ... Jul 23, 2007 ... I use Web.config to store/retreive doc library name, portal name, user authentication etc... . This code uses web services, ...
CodeProject: Uploading Files to SharePoint Document Library and ... I use Web.config to store/retreive doc library name, portal name, user .... NET application into a SharePoint site using the same look and feel of the ...
Sridhar's Blog : "Failed to verify user permissions" error when ... Jul 29, 2008 ... Credentials = new NetworkCredential(username, password, domain); ... access at site collections as well or to simply use NTML authentication ...
TheMSsForum.com >> Reporting Svcs >> Confguring Report Builder ... The networkcredential method fails for each of the added users. Any help would be appreciated. .... UserName = userName; d.Password = password; this. ...
Advanced Web Services you’ll need to specify the user name and password that you want to use. This approach ..... re-create the credential hash it needs to authenticate the user. ...
CodeProject: Pushing data into a SharePoint server. Free source ... You can do this using a Windows username and password that has access to the SharePoint website. I stored these credentials inside of the web.config file, ...
Ted's SharePoint - 博客.CN[blogger.cn/blog/中国/china] NetworkCredential cred=new NetworkCredential(); cred.Domain=domain; cred. UserName=username; cred.Password=pwd; credCache.Add(new Uri(uri),"Basic",cred); ...
Mart Muller's Sharepoint Weblog - March, 2005 A Windows application you can use to connect to your portal or team site and build your ...... NetworkCredential("[username]", "[password]", "[domain]"); ...




Search This Site:










any dnn webmail modules w/pop3 server?

close the client browser

msdn site

new to asp.net

marking phrases inside outputted text

linkblocks skin object and skin

solpart vertical menu issue

how to create themes and skins in asp.net 2.0

web application administration tool

vs.net 2008 under vista x64 debugging error: bc2000: compiler initialization failed unexpectedly: access is denied.

dnn 3.2.2 error - domainname does not exist in database

object reference not set to an instance of an object

benefits of .net

parser error message: unrecognized attribute 'validaterequest'.

you do not have permission to upload images

how to let asp.net read newest file, thanks!

adding the same data to more than one table in my database

email cdo.message

help please...

whic is better asp.net1.0 and asp.net 2.0

timeout message

how to use asp.net cache object

asp.net connections conference oct 12-16th

datagrid search

upgrade 2.1.2 to 3.1 plan

default value on override and custom property

how to add new access rules without go to web admin tools

in script datetime validation-i am combining a date from three dropdownlists

install error- database connection failure

caching application block settings ??

 
All Times Are GMT