Tags:
create new tag
view all tags

SID-00963: TwikiUserMapping does not work

Status: Answered Answered TWiki version: 5.0.0 Perl version: Perl 5.10.0
Category: CategoryAuthentication Server OS: Debian Lenny 5.0.5 Last update: 15 years ago

I have changed my Wiki installation from Version 4.1.2 to 5.0.0.

I work with NTLM for single sign on.

With 4.1.2 it works fine. With 5.0.0 the TwikiUserMapping works not correctly.

Sample for User MichaelEngel

Userdefinition in TWikiUsers: * MichaelEngel - men - 23 Jul 2007

Display of vaiable USERINFO: unknown, Main.men, and WIKIUSERNAME: Main.men

The ADMIN Logon works fine!

anyone can help me

Thanks

-- MichaelEngel - 2010-09-07

Discussion and Answer

Hi Michael,

take a look at your TWiki configuration. You should enable AllowLoginName: Security Setup > Registration > {Register}{AllowLoginName}

-- DanielRohde - 2010-09-07

Hi Daniel, here an extract from my TWiki configuration:

$TWiki::cfg{LoginManager} = 'TWiki::LoginManager::ApacheLogin';
$TWiki::cfg{LoginNameFilterIn} = '^[^\\s\\*?~^\\$@%`"\'&;|<>\\x00-\\x1f]+$';
$TWiki::cfg{DefaultUserLogin} = '';
$TWiki::cfg{DefaultUserWikiName} = 'TWikiGuest';
$TWiki::cfg{AdminUserWikiName} = 'TWikiAdminGroup';
$TWiki::cfg{SuperAdminGroup} = 'TWikiAdminGroup';
$TWiki::cfg{UsersTopicName} = 'TWikiUsers';
$TWiki::cfg{MapUserToWikiName} = 1;
$TWiki::cfg{AuthScripts} = 'attach,edit,manage,rename,save,upload,viewauth,rdiffauth,view';
$TWiki::cfg{AuthRealm} = 'Enter your LoginName. (Typically First name and last name, no space, no dots, capitalized, e.g. JohnSmith, unless you chose otherwise). Visit TWikiRegistration if you do not have one.';
$TWiki::cfg{PasswordManager} = 'none';
$TWiki::cfg{MinPasswordLength} = 1;
$TWiki::cfg{Htpasswd}{FileName} = '/home/httpd/twiki/data/.htpasswd';
$TWiki::cfg{Htpasswd}{Encoding} = 'crypt';
$TWiki::cfg{UserMappingManager} = 'TWiki::Users::TWikiUserMapping';
$TWiki::cfg{Register}{HidePasswd} = 1;
$TWiki::cfg{Register}{AllowLoginName} = 1;
$TWiki::cfg{Register}{NeedVerification} = 1;
$TWiki::cfg{SafeEnvPath} = '/bin:/usr/bin';

-- MichaelEngel - 2010-09-08

Hi Michael,

please remove $TWiki::cfg{MapUserToWikiName} = 1; (deprecated) and set

$TWiki::cfg{DefaultUserLogin} = 'guest';

-- DanielRohde - 2010-09-09

Many Thanks,

you are the best! Now it's works fine

Michael

-- MichaelEngel - 2010-09-10

      Change status to:
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.
SupportForm
Status Answered
Title TwikiUserMapping does not work
SupportCategory CategoryAuthentication
TWiki version 5.0.0
Server OS Debian Lenny 5.0.5
Web server Apache 2.2.9
Perl version Perl 5.10.0
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2010-09-10 - MichaelEngel
 
  • 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.