Tags:
create new tag
view all tags

Question

I have a problem resolving the login name with version 4.1.1.

With 4.1.1 there is a new configure variable called

LoginNameFilterIn

The default for this variable is set to

'[\\s\\*?~^\\$@%`\'&;|<>\\x00-\\x1f]';

If I try to view a page as guest then I get an error that 'guest' does not match the above regular expression.

If I change the regular expression to something like

^[a-z]+$
, then I can view a topic as 'guest'. However when I try to edit a topic the error I get is

Software error:

Illegal format for login name 'pete@CERN.CH' (does not match ^[a-z]+$) at .../lib/TWiki.pm line 1376.

For help, please send mail to the webmaster (root@twiki.cern.ch), giving this error message and the time and date of the error. 

Note that we use kerberos authentication and login names are usually matching [a-z]*

I also have this set

$TWiki::cfg{Plugins}{LoginNameAliasesPlugin}{Enabled} = 1;

Can anyone suggest teh correct setiings for $TWiki::cfg{NameFilter} and $TWiki::cfg{Login NameFilter}

Environment

TWiki version: TWikiRelease04x01x01
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RH linux
Web server: apache
Perl version: 5.8
Client OS: Windows XP Linux
Web Browser: IE firefox
Categories: Authentication

-- PeterJones - 13 Feb 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.

Looks like your authentication system sets an email address in REMOTE_USER (check this in configure). Try the RE ^\w+(\@[\w.]+)$ for {LoginNameFilter} instead.

You shouldn't need to muck with {NameFilter}.

-- CrawfordCurrie - 21 Feb 2007

With the above setting I get the following error when using view on Main/WebHome.

Illegal format for login name 'guest' (does not match ^\w+(\@[\w.]+)$) at ../4.1.1/lib/TWiki.pm line 1376.
The configure settings are as follows.
The perl regular expression used to constrain user login names. 
Some environments may require funny characters in login names, 
such as \. This is a filter in expression i.e. a login name must match 
this expression or an error will be thrown and the login denied.
{LoginNameFilterIn} = ^\w+(\@[\w.]+)$ 
EXPERT
Guest user's login name. You are recommended not to change this.
{DefaultUserLogin} = guest

I dont see anything in

configure
that sets an email address in REMOTE_USER.

I dont uderstand why LoginNameFilterIn should look for a @ when the default user

guest
does not include this. Could it be a conflict with LoginNameAliasesPlugin?

-- PeterJones - 21 Feb 2007

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