New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Using an extension, Authentication or Authorisation, LDAP: Asked

Getting _2e in user names

Hi Guys,
when viewing a topic created/edited by an LDAP user Foswiki apparently displays the user name (not the WikiName) in the "You are here: Foswiki>Main Web>JohnSmith (22 Apr 2015, john_2esmith)" navigation bar and my guess is that because our user names have a dot in between the first and last name Foswiki takes it out and puts the _2e in there. Is there a way to change that to the WikiName? Here are my environments details:

* Authentication is done by LdapContrib against an ActiveDirectory 2012 R2
* Our login names are read from "mailNickname" which is always Firstname.Lastname sometimes Firstname.Lastname-Lastname
* $Foswiki::cfg{Ldap}{WikiNameAttributes} = 'cn'; - the AD attribute "cn" is always: Firstname Lastname and sometimes: Firstname.Lastname-Lastname - tried it with "givenName,sn": no change
* $Foswiki::cfg{Ldap}{NormalizeWikiNames} = 1;
* $Foswiki::cfg{UserMappingManager} = 'Foswiki::Users::LdapUserMapping'; is set correctly
* $Foswiki::cfg{PasswordManager} = 'Foswiki::Users::LdapPasswdUser'; is set correctly
* Tried changing $Foswiki::cfg{Register}{AllowLoginName} - no change
* Tried changing $Foswiki::cfg{Ldap}{NormalizeLoginNames} - no change
* $Foswiki::cfg{Ldap}{CaseSensitiveLogin} = 0;

Apprechiate your time!

-- JackOreely - 22 Apr 2015

I have the same problem. Strangely if you create a new page it correctly puts the persons WikiName in to the page as the creator.

-- CeriShave - 08 May 2015

I've been trialing LDAPContrib too, and encountered the same problem. For what it's worth (3 years since the original post), I found that if you edit WikiUsers and change from:


...It will show the correct WikiName in the breadcrumb again.

-- RiskReward - 18 Feb 2018

QuestionForm edit

Subject Using an extension, Authentication or Authorisation, LDAP
Extension LdapContrib
Version Foswiki 1.1.9
Status Asked
Related Topics
Topic revision: r3 - 18 Feb 2018, RiskReward - This page was cached on 11 Mar 2018 - 14:27.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License