We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease04x01x01
TWiki plugins: lots
Server OS: RHES
Web server: Apache 2.052
Perl version: 5.8.5
Client OS: winxp
Web Browser: Ie7 & Firefox 2
Categories: Search, Plugins

-- JosMaccabiani - 26 May 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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

 
Change status to:
Topic revision: r4 - 10 Aug 2007 - 22:00:49 - MichaelDaum
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback