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 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

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-08-10 - MichaelDaum
 
  • 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.