Tags:
create new tag
view all tags

Question

We've been using TWiki for about a year now on corporate internet, and it's being enthusiastically adopted.

We have a corporate LDAP server for most applications, and it makes sense for TWiki authentication to occur via this server. This could even be a barrier to adoption for some people (?)

I've followed the instructions in LdapAuthenticationHowTo, and successfully managed to enable authentication via the LDAP server (thanks).

My remaining problem is how to map usernames from the LDAP server to TWiki. Our LDAP server uses 'firstname space lastname' (e.g. fred bloggs) all in lowercase as a username. How do I map this to the WIKINAME FredBloggs so that TWiki works properly ?

I know perl fairly well, but not LDAP.

Thanks for any advice,

Steve.

Environment

TWiki version: TWikiRelease01Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat 7.2
Web server: apache 1.3
Perl version: 5.6.0
Client OS: Solaris 8
Web Browser: mozilla
Categories: Authentication

-- SteveJonesST - 19 Nov 2004

Answer

Assuming that the LDAP authentication stuff puts "fred bloggs" in the REMOTE_USER environment, variable, then one way to do what you want would be to have TWiki convert that to "FredBloggs" (pretty trivial perl, unless there are some special case names to worry about). You could do this by hacking TWiki source directly, or using a plugin (which is probably cleaner). If you go the plugin route, see LoginNameAliasesPlugin for an example of how this could be done (feel free to grab it and modify it for your needs).

-- ClaussStrauch - 19 Nov 2004

Also, there exists the LdapPlugin

Clauss - would you be interested in helping with the broader authentication issues inherent to the RegisterCgiScriptRewrite? Its now in subversion.

-- MartinCleaver - 19 Nov 2004

Thanks, Clauss's solution has enabled me to do what I need. Setting this to 'AnsweredQuestions'. Thanks, all.

-- SteveJonesST - 25 Nov 2004

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2005-01-25 - PeterThoeny
 
  • 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.