SID-01166: LDAP Username display
| Status: |
Answered |
TWiki version: |
5.0.2 |
Perl version: |
perl5 (revision 5 version 10 subversion 1) |
| Category: |
LdapContrib |
Server OS: |
8.1-RELEASE FreeBSD 8.1-RELEASE #0 |
Last update: |
15 years ago |
Hi, I am using LDAP authentication in my TWIKi. It is working fine. The thing I want to do it now is to display names of the users which are fetched from the LDAP. Whenever a user create a new web or post on topic I want their names to display and not their usernames.
What is the way to doing it? Following are the variables I am using in my LDAPContrib plugin:
{Ldap}{LoginFilter} = objectClass=person
{Ldap}{LoginAttribute} = cn
{Ldap}{MailAttribute} = mail
{Ldap}{WikiNameAttributes} = displayName
{Ldap}{NormalizeWikiNames} = normalization is enabled
{Ldap}{NormalizeLoginNames} = is disabled
{Ldap}{WikiNameAliases} = blank
--
FarzanQureshi - 2011-05-04
Discussion and Answer
As configured, the mapping from login name to WikiWord name is not working. There is an option in LdapContrib to configure that (I have not looked into details).
Personally I prefer to let TWiki handle the mapping. This is possible if you use the
TWiki::Users::TWikiUserMapping for the
{UserMappingManager} instead of
TWiki::Users::LdapUserMapping. With this, you need to ask users to register in TWiki. This can be enforced, look into the
RequireRegistrationPlugin.
--
PeterThoeny - 2011-05-07
Thanks i will look into it.
--
FarzanQureshi - 2011-05-11
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.