Tags:
create new tag
view all tags

SID-01166: LDAP Username display

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title LDAP Username display
SupportCategory LdapContrib
TWiki version 5.0.2
Server OS 8.1-RELEASE FreeBSD 8.1-RELEASE #0
Web server Apache2.2
Perl version perl5 (revision 5 version 10 subversion 1)
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2011-05-11 - FarzanQureshi
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.