| Request | LDAP User Folder -- bug report -- by Gilles Lenfant |
| Posted on | Aug 12, 2005 3:14 pm |
| Subscribe |
| Resolve by Jens Vagelpohl on Aug 14, 2005 7:44 am | |
|
Thanks Gilles, just checked in a change that should solve this one. I honestly have no idea why it was using args the way it was, because I do not pass anything in any of my logging calls... http://cvs.dataflake.org/LDAPUserFolder/SimpleLog.py.diff?r1=1.5&r2=1.6 jens |
|
|
|
| Initial Request by Gilles Lenfant on Aug 12, 2005 3:14 pm | |
|
Hi, Since I added a mapping from ldap attribute "jpegPhoto" to the "portrait" name to get the ugly face of the user in his Plone preferences, trying to sign in raises the following traceback. Traceback (innermost last): Module ZPublisher.Publish, line 92, in publish Module ZPublisher.BaseRequest, line 433, in traverse Module AccessControl.User, line 641, in validate Module Products.GroupUserFolder.GroupUserFolder, line 1007, in authenticate Module Products.LDAPUserFolder.LDAPUserFolder, line 807, in authenticate Module Products.LDAPUserFolder.LDAPUserFolder, line 761, in getUser Module Products.LDAPUserFolder.LDAPUserFolder, line 691, in getUserByAttr Module Products.LDAPUserFolder.LDAPUserFolder, line 336, in _lookupuserbyattr Module Products.LDAPUserFolder.SimpleLog, line 51, in log TypeError: not enough arguments for format string Seems that the line 336 of LDAPUserFolder.py doesn't provide anything to "*args" such the formatting in line 51 of SimpleLog.py cannot work. Waiting your fix, I made an ugly one, commenting out line 51 of SimpleLog.py. Since then LDAPUF works like a charm and the LDAP photo of the user appears in Plone. Cheers. PS: My config : LDAPUserFolder 2.6b2 Plone 2.0.5 GroupUserFolder 3.4RC |