Page 1 of 1

Show username instead of login in security list

PostPosted:Tue Apr 17, 2012 11:40 am
by Catscratch
Hello, I updated to integration build 7538.

My question is, wherefor is ldap.user and ldap.username used?
Code: Select all
principal.ldap.user.attribute = sAMAccountName
principal.ldap.user.search.base = ...
principal.ldap.user.search.filter = ...
principal.ldap.username.attribute = 
principal.ldap.username.search.base = 
principal.ldap.username.search.filter =
I want to achieve the following.
In the Securitylist (e.g. on a folder) I want to see the users name (CN).

So, when I configure user.attribute to CN I see the users name. But then the security roles won't work, because it seems they are mapped to the loginname, not the users name. So I tried user.attribute as sAMAccountName and username.attribute as CN. But then I only the the logins in the security list. And users who log in, get the wrong label.
E.g. User1 logs in and in the bottom left corner the text "Logged in as User5" appears instead of "Logged in as User1".

So, how do I configure it in the right way?

Re: Show username instead of login in security list

PostPosted:Wed Apr 18, 2012 6:16 pm
by jllort
it's better using sAMAccountName for login than CN because in CN could be spaces , dot and other special characters that will be a problem for login, the idea is using sAMAccountName for login and cn for name

Take a look at our wiki http://wiki.openkm.com/index.php/Installation_Guide at active directory section because this week we have made some changes on this documentation explaining more clear how should be set the configuration parameters.

Re: Show username instead of login in security list

PostPosted:Thu Apr 19, 2012 6:45 am
by pavila
The username is not shown when you change a document / folder security. The problem is related to Josep answer, but we are trying to fix it.

I have added this issue http://issues.openkm.com/view.php?id=2119.