Re: plone.app.ldap user problem
dieter <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.user |
|---|---|
| Message-ID | <[email protected]> |
Stefano Prestini <stefano.prestini-y6W5KEIK/[email protected]> writes: > I send you full error in attached. Please do not send attachments to this list (they can make it more difficult to read/cite them). Put the error information directly in the main message mody (rather than a message attachment). > ... Error information: > Tu sei qui: Home > Dettagli dell'errore > Torna al registro degli errori > > Ora > 31/07/2014 09:53 > Nome utente > *myuser > URL richiesto > http://*myurl/delete_confirmation > Tipo di eccezione > TypeError > Valore eccezione > can only concatenate list (not "str") to list > > Traceback (innermost last): > ... > Line 72, Column 12 > Expression: <PathExpr standard:u'context/@@authenticator/authenticator'> > Names: > > {'container': <PloneSite at /*mysite>, > ... > 'user': <PloneUser ['*myuser']>} This "[...]" around the user is strange. > Module zope.tales.expressions, line 217, in __call__ > Module Products.PageTemplates.Expressions, line 155, in _eval > Module Products.PageTemplates.Expressions, line 117, in render > Module plone.protect.authenticator, line 68, in authenticator > Module plone.protect.authenticator, line 61, in createToken > > TypeError: can only concatenate list (not "str") to list The "createToken" code: def createToken(extra=''): manager = getUtility(IKeyManager) secret = manager.secret() user = _getUserName() 61: return hmac.new(secret, user + extra, sha).hexdigest() This looks as if "user" were a list while it should be a string. The error is likely somewhere in "plone.app.ldap". Likely, it passes the wrong data type as user name. You may try a different version of "plone.app.ldap" (maybe, you accidentally got a buggy one). Or contact the authors of "plone.app.ldap" to learn what they propose to get the problem fixed. If nothing else helps, debugging the authentication process will at least reveal which component is responsible and like what to do about it. ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk