Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a problem with authentication in a multi tenant environment. I have a couple of seperate customers which all have their own SharePoint environment within our hosted environment. In the AD, I created seperate OU's for each client. The subscriptions of each tenant are configured to map to those OU's. This works the way you would expect it to: the people picker only shows accounts from that single OU, other accounts are hidden from view.

But I noticed that this doesn't seem to apply for an "all users" claim. When I grant "All users" access to a site, an account from client A suddenly is able to log into a site of client B and vice versa. I think when logging in, SharePoint only checks if the username / password is correct and then issues a claim to the user. Since a user with a valid claim automatically belongs to "all users", it's granted access to the site. There seems to be no check there to see if the user actually belongs to the correct AD unit.

Now I'm wondering if this is a) expected behaviour b) a bug c) a configuration error on our side

A good solution would be to use a group instead of "all users", but that would require that the users being created from the admin site are also added to that group. And that's not something I want to bother the admins with, let alone myself.

share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

I will go with a) expected behaviour

Claims Provider

Authenticated Users or All Users Claims

In SharePoint Server 2010, there are some specific built-in claims providers that enable implementation support for concepts like authenticated users. This is also known as an All Users claim. This scenario enables you to grant rights to all users from a given authentication provider.

All users claim is NT AUTHORITY\Authenticated Users so you are giving access to all users that can authenticate against domain.

Who are NT AUTHORITY\Authenticated Users?

The user “NT AUTHORITY\Authenticated Users” represents every Domain user account that can successfully log on to the domain .

share|improve this answer
add comment

You are confusing two different things, User Profiles and Authentication. User Profiles, which you setup using multi-tenant simply partition the users imported from the different OUs into the subscription created by that OU. This restricts the people picker and people search to those users for that particular tenant.

Authentication is a completely separate process and is handled using IIS or the ASP.NET pipeline and if a user has been granted access to the site (All users in this case) they will have access given the rights you provided.

share|improve this answer
    
Sure, those are seperated processes (and I get the whole picture now). But a profile is worthless without an account and vice versa in most cases. So seeing them as two completely different things is a step too far if you ask me. And as this case makes clear; it's easy to make mistakes. In a multitenant environment, a site administrator might not be aware that selecting "all users" also gives other tenants users the right to access their content. That in itself is a pretty big security risk if you ask me. –  Jasper Jul 26 '12 at 8:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.