.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Fauzul Azmi
Asad Ali
Post New Web Links

Retrieving Claims of a SharePoint user when Claims Based Authentication is turned ON

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :C#
 

Hi

How to get the cliams associated with a SharePoint user remotely.

Ex: We have crawled SharePoint Web Application with internal connector.

ACLs on the documents look like i:0#.w|domain\username

I need to search our index and display results. But I was not able to figure out how to get this to working.

Everything resides outside of SharePoint i.e., on a server1 other than SharePoint server.

When a claims user logs on to this server1, I need o validate the rights of that user and display results.

 

Thanks

SharePoint Aspirant





View Complete Post


More Related Resource Links

AutoLogin for authenticated user via LiveID in Sharepoint 2010 (Claims Based Authentication)

  
Hi,     Im working in integrating LiveID authentication in my Sharepoint site. Live id gives back a token of the user with which i created a dummy profile using MembershipProvider.CreateUser. Now i have to auto login the user with the profile i created, i mean i have to force login to my sharepoint site using the created dummy user details without asking the user to give username n password.Any suggestion will be a great help for me to proceed.   Thanks Saravanan Michael

Claims Tips: Learning About Claims-Based Authentication in SharePoint 2010

  
Use these five tips for guidance in solving problems related to using and configuring claims.

Sample: SharePoint Claims-Based Authentication

  
Explore the code as you learn how to create a custom security token service (STS) and set up a trust relationship between a SharePoint 2010 farm and the custom STS.

SharePoint 2010 Claims Based Authentication - anonymous site is prompting for CBA auth when opening

  
Hi, I have CBA setup successfully on my sites.  One site is setup for anonymous access and I have disabled "client integration" on that web application. I have a list of MS Office documents on a wiki.  When I click on one I am asked to either save or open or cancel.  Saving works fine but when I choose open, it launches the associated MS Office app.  I am then prompted for a login from CBA.  I can click cancel and the logon screen appears again.  After clicking cancel the 2nd time the document appears in the MS Office app, Word in this case. My question is how do I prevent my users from being prompted for a CBA login when clicking on these files and opening them in the native app on their machine?      --TR

How to get SharePoint file conent by URL from web applications with claims based authentication conf

  

Hello,

I am using next code to get SharePoint document content:

using (System.Net.WebClient objWebClient = new System.Net.WebClient())
                {                   
                    objWebClient.Credentials = new System.Net.NetworkCredential("username", "password", "domain");
                   
                    using (System.IO.BinaryReader file = new System.IO.BinaryReader(objWebClient.OpenRead("http://machine_name:10000/Shared%20Documents/some_file.txt")))
                    {
                        //Read file stream
                &nb

SharePoint Farm - Claims Based Authentication Problems

  

Hello guys,

I have a SharePoint farm with 2 WFE servers(SH01 and SH02) and 1 Application server(SH03) where there's the Central Admin. When I create a WebApplication with Windows Authentication I can access it normally in both address http://SH01:10000 and http://SH02:10000. When I create a WebApplication with Claims Based Authentication enabling FBA when I try to access it with the address above occurs an error:

The WebApplication at http://SH01:10000/  could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.

I have noticed that the difference between authentication is that FBA redirect to "_login/" when I can choose what type of authentication I want to login(In this case Windows or Forms).

Are there some extra configuration that I have to do to solve this problem?

Thanks


André Rentes

sharepoint designer for claims based authentication

  

Hi friends,

              Is it true the the share point designer wont support for claims based authentication with FBA?.If it so what should i do to design the share point site  without share point designer.

Here I am facing a problem for designing my site .My site has the following configuration

1)Forms Based authentication with sql server provider

when try to open with url its saying forbidden..!

2)No windows authentication is enabled 

                                                    Any help is highly Appreciated .

 


sharepoint designer for claims based authentication

  

Hi friends,

              Is it true the the share point designer wont support for claims based authentication with FBA?.If it so what should i do to design the share point site  without share point designer.

Here I am facing a problem for designing my site .My site has the following configuration

1)Forms Based authentication with sql server provider

when try to open with url its saying forbidden..!

2)No windows authentication is enabled 

                                                    Any help is highly Appreciated .


How to get SharePoint file content from web applications with claims based authentication configured

  

Hello,

I have custom web service developed (it is running out of sharepoint context but on the machine where sharepoint server 2010 is installed). This web service should get SharePoint file content using file URL and some specific user credentials. So in case user doesn't have access to the file some exception should be thrown. Otherwise content should be returned.

I am able to use next code:

using (System.Net.WebClient objWebClient = new System.Net.WebClient())
                {                   
                    objWebClient.Credentials = new System.Net.NetworkCredential("username", "password", "domain");
                   
                    using (System.IO.BinaryReader file = new System.IO.BinaryReader(objWebClient.OpenRead("http://machine_name:10000/Shared%20Documents/some_file.txt")))
       

Claims Tips 3: Learning About Claims-Based Authentication in SharePoint 2010

  
Learn five tips that are related to claims-based authentication in SharePoint 2010, including information about packaging, retrieving REST data, adding policy, managing trusted root authorities, and resolving logon page issues.

Sample: Creating Claims Providers for Forms-Based Authentication Web Applications for SharePoint 201

  
Explore the code as you learn how to create a claims provider for a Microsoft SharePoint 2010 forms-based authentication web application.

Remote Authentication in SharePoint Online Using Claims-Based Authentication

  
Learn how to authenticate against SharePoint Online in client applications using the SharePoint client-side object models.

Video: Introduction to Claims-based Security in SharePoint 2010

  
Learn how claims-based identity provides a common way for applications to acquire identity information from users inside their organization, in other organizations, and on the Internet. (Length: 23:46)

Should I use claims based authentication?

  
I'm about to setup a web application to host a public facing website. Internal staff will authenticate to the site via Active Directory and we may have a need to allow external users to access "authenticated" parts of the site. To authenticate them we plan to use Windows Live ID. With that in mind,: is it better to set the web application up to use claims based authentication from the start rather than having to change it later? is there anything available as of yet to setup SharePoint 2010 to authenticate against Windows Live ID using claims based authentication?

Migrate from Classic to Claims based authentication

  
So this is really an outside the normal question and I am hoping someone has some thoughts. I am going to be upgrading a MOSS 2007 farm to MSS2010. I have to move hardware so I will be using the content database attach method for upgrade. The site is current extended to a second IIS Application to support both window and Forms based authentication. Since this is an intranet, unique security is used at the site level (and occasionally at the doc lib level). I want to take advantage of Claims Based Authentication (and use one URL, plus other benefits). I am well aware that that claims based token is not the same as the windows token even though the NTLM user is really the same. Thus that is what presents the issue. I need to "migrate" all of my current NTLM-Classic users to claims based. My first thought is to read the users added to each site (actually role assignments), find all users that have the domain name at the beginning of the member name and add a new users (appending the i:0#.w| to the beginning of the loginname) to the site. This works beautifully and is succesful. The problem arises in the that the role assignments contains SharePoint groups (which we don't use much) and AD groups. the SharePoint groups are ok (yes, I have to migrate the users in them too, but no problem). The AD groups are added via SID when it is claims based. This presents the probl

How do I use PowerShell to configure Web.Config for forms-based authentication for a Claims Based we

  
This TechNet article does a great job describing how to Configure forms-based authentication for a claims-based Web application using PowerShell. However, it glosses over editing the web.config file by just saying "Find the <Configuration> <system.web> section and add the following entry:" Is it possible to edit the web.config file using PowerShell using the IIS PowerShell snapin or can I just edit the web.config file as a xml document? This succeeds in adding the element, but only with the name and type. It does not add the connectionStringName or the applicationName import-module webadministration Add-WebConfiguration /system.web/membership/providers "IIS:\sites\[site name]" -value @{name="FBAMembershipProvider";` type="System.Web.Security.SqlMembershipProvider, System.Web, Version= 2.0.0.0, Culture= neutral, PublicKeyToken= b03f5f7f11d50a3a";` connectionStringName="FBAconn";` applicationName="/"} Does anyone any suggestions on a direction to go to add the membership providers and role providers in the web.config using PowerShell? This is very frustrating because I can do it manually, I can do it through the UI in IIS Manager, I can do it using appcmd, but no matter what I do, I can't get it to work using PowerShell.  

SharePoint 2010 Claims Based Authenticaton site working but search is broken

  
Hi, I have SP 2010 sucessfully installed on a Windows 2008 R2 server with SQL Server 2008 R2.  I created local machine accounts for the following: MACHINE\mssqlservice MACHINE\sp_admin MACHINE\sp_search MACHINE\sp_farms I have setup 2 sites with public facing internet access as well as local sites. I have CBA working properly on both sites from both public and private access. My problem is that when I go to search, I am constantly redirected to an error page. I have checked all SP services on the server and they are all running as MACHINE\mssqlservice That account has proper access to all sites as well as all DB's. My search is crawling and I get one error from a long named PDF file in my site, which is OK.   My questions is if my CBA is working fine and my search is crawling, why I am not getting a results page when I search from the sites:   Here is the error I get:   Error Internal server error exception:   Troubleshoot issues with Microsoft SharePoint Foundation. Correlation ID: 5a03b730-42c2-48c9-a220-3b9d052481de Date and Time: 9/9/2010 4:45:07 PM   I am kind of stuck at this point and am not sure how to proceed.  Any help would be appreciated.        --TR
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend