cancel
Showing results for 
Search instead for 
Did you mean: 

Wierd behaviour or is it me?

hm
Champ in-the-making
Champ in-the-making
I have tried to undersntand what could be cuasing this problem but it just beats me. Maybe I am missing the obvious. Let me try to explain:

Alfresco 1.3
NTLM Authentication agains Windows AD
User/Group Export Setup

1. Created a space called 'DeptSpace'
2. Mange Users for 'DeptSpace' by Inviting 2 users who exists in the AD and the surrogate account in Alfresco with Coordinator Rights
3. User 1 can successfully log in and access 'DeptSpace'
4. User 2 who has identical permissions can log in but does not see 'DeptSpace'
5. Pull Hair trying to figure out whats going on for ~8 hours Smiley Sad
6. Create a Group called 'DeptGroup' in Alfresco and add User 2 who is having probelms described in Step 4 above.
7. Mange Users for 'DeptSpace' by removing User 2 and Inviting 'DeptGroup' instead
8. User 2 logs in and magically they now see the 'DeptSpace' and have coordinator privileges

Please help me understand how this is possible?

Thanks
5 REPLIES 5

andy
Champ on-the-rise
Champ on-the-rise
Hi

Community 1.3 final release not a release candidate?

Can you check the user details on the admin console.
Are you using case sensitive user names?
What is the user name reported at the top of the screen when the users log in?
Has the user id changed in active directory?

Can the second user see the space above DeptSpace?

What are the permission settings all the way up to and including company home?

hm
Champ in-the-making
Champ in-the-making
Thanks for the reply, here is what I have found:

The problem user is logged in with the id lmedin01 and this is what shows up on the top after they log in. However in the user administration section I see the userid is LMedin01

The user that does not have any problems has the login welcome as mnash01 and in the user administration section their login id is mnash01, that tells me it could be a case issue?

I did try to set the following:

user.name.caseSensitive=true

in the extended repository.properties configuration file.

The 'DeptSpace' directory is right under company home and company home has EVERYONE in the permissions. The 'DeptSpace' directory does NOT inherit parent permissions but has the 2 users added to it.

Thanks.

hsantander
Champ in-the-making
Champ in-the-making
Hello
I have the same problem. I look for in the forum and the wiki but didn't find any indication. Maybe it's an alfresco bug that converts the username in the authentication realm to lower case.

I'm using Alfresco 1.4.0 community.

Thanks

jason_botwick
Champ in-the-making
Champ in-the-making
I'm also having this problem, but let me add some additional information. I entered this as AR-1191. I'd appreciate some help on this problem, because this is pretty much of a showstopper for us here in our Alfresco eval.

First of all, I'm synching the user/group data with an Active Directory. That works great, everything comes over.

Further, anyone so synched can log in to Alfresco.

Also, I'm using LDAP & NTLM authentication against the Active Directory.

However, users with mixed-case userids are unable to access resources in the ways specified in ACLs created for them. This includes, for example, their own home space, of which they are supposed to be the owner, as well as other spaces where explicit ACLs are set up for them.

Other users (all lowercase userids) do not experience this issue.

I also tried changing the


user.name.caseSensitive=false

to


user.name.caseSensitive=true

and also verified that the database is set to collate with case-sensitivity.

This resulted in some bizarre behavior: If one of these mixed-case IDs logs in, they get no error messages, and it appears that they can use their home space. However, when they try to access other spaces to which they have been explictly granted permissions, they are unable to perform any actions granted to them.

Guess why? When they logged in lowercase, a new userid is created for them, the lowercase version of their mixed-case ID, and a new home space is created for them.

So there are two problems. Even though case-sensitive userids are enabled

1) the authenticator lets them through when they log in in lowercase.
2) even when they log in "correctly" with their mixed-case ID, the system authenticates them, but then creates a new lowercase ID for them and a new home space.

Therefore, I agree with the original poster in http://issues.alfresco.com/browse/AR-587: Converting the userid to lowercase is a loss of information and subsequently causes problems, namely, that authentication AND authorization are broken. Andy's comment and closure of that bug seem to be premature, since obviously the mixed-case ID is being lost, not stored. You can even see this where it prints the logged-in userid next to the "Log out" link at the top right–it's the lowercase version of the ID, regardless of how you logged in initially.

This is a problem, since in our enviroment, most people use IE. This means that they are automatically logged in to Alfresco. Since I can't expect people to change how they login to their Windows workstations, nor can I require all userids to be created in lowercase, users are going to get stuck, and they're not going to understand why. I barely do, as a matter of fact.

Note that this behavior occurs whether I'm using IE or Firefox, and whether I'm using Windows or Linux.

I might add that there are other weird issues around LDAP & NTLM. For example, even though the following is specified in ldap-authentication-context.xml:


    <bean name="authenticationDao" class="org.alfresco.repo.security.authentication.DefaultMutableAuthenticationDao" >
        <property name="allowDeleteUser">
            <value>true</value>
        </property>
    </bean>   


you cannot delete users using the administration console–usually. Sometimes, if you shut down the server, and wait just the right amount of time before starting it back up, you can sneak in there and delete users. But not always. To me that's another bug.

Also, sometimes the "Logout" link takes you to a screen that says "Re-login to Alfresco", whereas other times, it takes you to a screen that prompts you to enter your username and password. The "Re-login" link never allows you to enter a new username, which is a pain for testing this kind of stuff.

andy
Champ on-the-rise
Champ on-the-rise
Hi

I have checked back …

NTLM authentication did have a bug around case sensitivity in 1.4.
This has been fixed. http://issues.alfresco.com/browse/AR-1120


Regards

Andy