• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4920: wikiName is equal loginName

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension LdapContrib Normal New   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


I'm using TWiki.pm (Version: TWiki-4.1.2, Sat, 03 Mar 2007, build 13046) and LdapContrib Version: v2.0.2, work perfectly, but is not translating loginnames into wikiNames.

Observed behaviour:

  1. login using my windows DOMAINNAME and DOMAINPASS - OK
  2. in top-left corner of wiki page after login, I'm seeing my login, no my name - NOK

LdapContrib configuration:

$TWiki::cfg{PasswordManager} = 'TWiki::Users::LdapUser';
$TWiki::cfg{UserMappingManager} = 'TWiki::Users::LdapUserMapping';
$TWiki::cfg{Ldap}{LoginFilter} = 'objectClass=user';
$TWiki::cfg{Ldap}{LoginAttribute} = 'sAMAccountName';
$TWiki::cfg{Ldap}{WikiNameAttribute} = 'givenName,sn';
$TWiki::cfg{Ldap}{NormalizeWikiNames} = 0;
$TWiki::cfg{Ldap}{NormalizeLoginName} = 1;

$TWiki::cfg{Ldap}{GroupFilter} = 'objectClass=group';
$TWiki::cfg{Ldap}{GroupAttribute} = 'cn';
$TWiki::cfg{Ldap}{MemberAttribute} = 'member';

$TWiki::cfg{Ldap}{MemberIndirection} = 1;
$TWiki::cfg{Ldap}{TWikiGroupsBackoff} = 1;
$TWiki::cfg{Ldap}{NormalizeGroupName} = 0;
$TWiki::cfg{Ldap}{MapGroups} = 1;

-- TWiki:Main/KrisKopera - 02 Nov 2007

Did you refresh the LDAP cache? Try enabling NormalizeWikiNames. Try %USERINFO% to display the user record as far as it extracted the information from your LDAP directory.

-- TWiki:Main.MichaelDaum - 22 Nov 2007

  • LDAP cache refreshed
  • NormalizeWikiNames is 1
  • %USERINFO% receives koperak, Main.koperak,

-- TWiki:Main.KrisKopera - 22 Nov 2007

below debug output while login:

called checkPassword(koperak, passU)
called connect
dn=CN=Kopera Krzysztof,OU=IT,OU=Technical,OU=Departments,DC=omnis,DC=company,DC=org
bind for CN=Kopera Krzysztof,OU=IT,OU=Technical,OU=Departments,DC=omnis,DC=company,DC=org
LdapUserMapping - called lookupLoginName(koperak)
LdapUserMapping - found loginName in cache, returning koperak
LdapUserMapping - called lookupLoginName(BugieLasek)
LdapUserMapping - fallback asking SUPER
LdapUserMapping - returning Main.BugieLasek
LdapUserMapping - called lookupLoginName(TWikiContributor)
LdapUserMapping - fallback asking SUPER
LdapUserMapping - returning Main.TWikiContributor
NewUserPlugin - called beforeCommonTagsHandler

-- TWiki:Main.KrisKopera - 22 Nov 2007

It may be connected with bug Item4771

-- TWiki:Main.KrisKopera - 23 Nov 2007

Summary wikiName is equal loginName
ReportedBy TWiki:Main.KrisKopera
Codebase 4.1.2
SVN Range TWiki-4.3.0, Fri, 12 Oct 2007, build 15261
AppliesTo Extension
Component LdapContrib
Priority Normal
CurrentState New


TargetRelease n/a

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r4 - 2007-11-23 - KrisKopera
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback