Re: plone.app.ldap user problem

Stefano Prestini <stefano.prestini-y6W5KEIK/[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
I finally found the problem. 
In the configuration section of the LDAP schema in plone I created user with multi property value. 
This created problems of authentication in certain areas of the site, setting a single value the problem is solved.

I hope it can serve others people. 

Regards


Stefano Prestini <[email protected]> , 31/07/2014 11:00:
Sorry for the attachments and thanks to replay.

Regards

>-----Original Message-----
>From: dieter [mailto:[email protected]]
>Sent: Thursday, July 31, 2014 10:46 AM
>To: [email protected]
>Subject: Re: [Plone-Users] plone.app.ldap user problem
>
>Stefano Prestini <[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.clk
>trk
>_______________________________________________
>Plone-Users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/plone-users



*** DISCLAIMER *** 
Ai sensi del D.Lgs. 196/2003 questo messaggio è riservato al solo destinatario e può contenere informazioni riservate, private o di carattere strettamente personale.
Se avete ricevuto questo messaggio per errore, Vi preghiamo di notificarlo al mittente immediatamente e di cancellare l'originale.
Qualsiasi altro uso del messaggio è proibito.

Pursuant to Legislative Decree No. 196/2003 this message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. 
If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.


------------------------------------------------------------------------------
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
_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users


*** DISCLAIMER *** 
Ai sensi del D.Lgs. 196/2003 questo messaggio è riservato al solo destinatario e può contenere informazioni riservate, private o di carattere strettamente personale.
Se avete ricevuto questo messaggio per errore, Vi preghiamo di notificarlo al mittente immediatamente e di cancellare l'originale.
Qualsiasi altro uso del messaggio è proibito.

Pursuant to Legislative Decree No. 196/2003 this message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. 
If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk

_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.