Question
I've got
LdapNgPlugin up and running. I'd like to use it to populate a list, where I want to construct an URL to user homepages, i.e. construct the wikiname.
The nicest way would be to use the $cn value, which is
First van de Last, login, strip the login part and create the wikiname from the rest (basically what happens when the users authenticate through the
LdapContrib)
However, some of the entries have characters like
' or have lowercase middle words like
First van de Last
How can I construct a wikiname from these entries?
Environment
--
JosMaccabiani - 26 May 2007
Answer
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.
The code in LdapContrib does these things--
If you look at lib/TWiki/Users/LdapUserMapping.pm: around line 389, it
takes care of UTF-8, expansion of umlautes, etc. Removing "van de" would be just one more translation.
--
CrisRhea - 26 Jun 2007
Sorry, closing this after more than 30 days of inactivity...
--
PeterThoeny - 10 Aug 2007
Just use
%USERINFO{...}%
--
MichaelDaum - 10 Aug 2007