r3 - 02 May 2008 - 19:34:48 - AlexanderStedileYou are here: TWiki >  Support Web > LdapUserMappingWithDotInLoginname
Tags:
, create new tag

Question

We have some users with a dot in the loginname, e.g. james.bond. When filling the LDAP cache everyting is fine, the correct entries are added.

Strange things happen when TWiki tries to lookupWikiName() (TWiki/Users/LdapUserMapping.pm) from login name. Example log output:

constructed a new LdapContrib object
cacheAge=11105, lastUpdate=1209544138, refresh=0
called getLoginName(james.bond)
called lookupWikiName(bond)
asking SUPER
called getLoginName(james_46bond)
called lookupWikiName(james_46bond)
asking SUPER
called lookupLoginName(james_46bond)
asking SUPER
returning jamesbond

I understand the first clipping, where the code tries to remove a prepended TWiki web identifier. (I tried to block this, but was not successful.)

Then there follows a second try where the dot is encoded as _46. How can I stop this, resp. what can I do to get JamesBond as return value? Could modifying {LoginNameFilterIn} or {Ldap}{NormalizeLoginName} help?

Thanks for your support.

P.S.: MapApacheUserWithDotToWikiUser seems to be a different problem.

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin, LdapContrib, LdapNgPlugin, NewUserPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Registration
-- AlexanderStedile - 30 Apr 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Does anybody know, in which module the loginname might be encoded? I could not find it yet.

-- AlexanderStedile - 01 May 2008

LoginNameStylesDifferentEffects seems to be the same problem.

-- AlexanderStedile - 02 May 2008

 
Change status to:
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo