| Request | LDAP User Folder -- bug report -- by Anonymous Coward |
| Posted on | Aug 30, 2006 2:24 am |
| Subscribe |
| Resolve by Jens Vagelpohl on Sep 7, 2006 9:34 am | |
|
Thanks for testing, I will check this change into Subversion now. |
|
|
|
| Comment by Anonymous Coward on Sep 7, 2006 1:42 am | |
|
This is my code after edit old_dn_exploded[0] = new_utf8_rdn utf8_dn = ','.join(old_dn_exploded) if mod_list: connection.modify_s(utf8_dn,mod_list) else: debug_msg = 'Nothing to modyfy: %s' % utf8_dn logger.debug('LDAPDelegate.modify: %s' % debug_msg) except ldap.INVALID_CREDENTIALS, e: e_name = e.__class__.__name__ It is not complain anything and solve my problem. Thank you very much. Thank you. |
|
|
|
| Comment by Jens Vagelpohl on Sep 3, 2006 8:44 am | |
|
Sorry, I misunderstood you answer. You are still seeing the error. Could you apply the following changes and let me know if it makes the problem go away: --- LDAPDelegate.py (revision 1362) +++ LDAPDelegate.py (working copy) @@ -526,7 +526,11 @@ old_dn_exploded[0] = new_utf8_rdn utf8_dn = ','.join(old_dn_exploded) - connection.modify_s(utf8_dn, mod_list) + if mod_list: + connection.modify_s(utf8_dn, mod_list) + else: + debug_msg = 'Nothing to modify: %s' % utf8_dn + logger.debug('LDAPDelegate.modify: %s' % debug_msg) except ldap.INVALID_CREDENTIALS, e: e_name = e.__class__.__name__ |
|
|
|
| Comment by Jens Vagelpohl on Sep 3, 2006 8:37 am | |
|
Do you still see the error after changing the encoding in utils.py? |
|
|
|
| Comment by Anonymous Coward on Sep 1, 2006 9:01 am | |
|
I'm changed encoding in utils.py successfully(can log in by User's Thai languge profile.) I'm not sure how to capture value of utf8_dn and mod_list. I insert code like this before line 529 in LDAPDelegate.py . logger.info(utf8_dn) logger.info(mod_list) connection.modify_s(utf8_dn, mod_list) <-- line number 529 and result is: 2006-09-01T05:45:51 INFO event.LDAPDelegate CN=4740580040,DC=Mcs_Room,DC=com ------ 2006-09-01T05:45:51 INFO event.LDAPDelegate [] mod_list value is empty and the logging following by the posted information. Thank you. |
|
|
|
| Accept by Jens Vagelpohl on Aug 30, 2006 6:35 am | |
|
I don't think this is a LDAPUserFolder problem. This error is coming from the LDAP server and means that it does not like what you are trying to feed it. First of all, change the encoding in utils.py, as suggested for the previous issue. If that does not help you should try to capture the value of utf8_dn and mod_list on line 529 in LDAPDelegate.py and add a comment to this issue with the values so I can take a look. |
|
|
|
| Initial Request by Anonymous Coward on Aug 30, 2006 2:24 am | |
|
I used the lastest version but it can't solve this ploblem. Someone please recomment about this. 2006-08-29T23:09:57 INFO event.LDAPDelegate UNWILLING_TO_PERFORM LDAPDelegate.modify: {'info': '00000057: LdapErr: DSID-0C090A85, comment: Error in attribute conversion operation, data 0, vece', 'desc': 'Server is unwilling to perform'} Traceback (most recent call last): File "/opt/Plone-2.5/zeocluster/client1/Products/LDAPUserFolder/LDAPDelegate.py", line 529, in modify connection.modify_s(utf8_dn, mod_list) File "/opt/Plone-2.5/zeocluster/client1/Products/LDAPUserFolder/SharedResource.py", line 112, in __call__ return self._callable(*args, **kw) File "/opt/Plone-2.5/Python-2.4.3/lib/python2.4/site-packages/ldap/ldapobject.py", line 305, in modify_s return self.result(msgid,all=1,timeout=self.timeout) File "/opt/Plone-2.5/Python-2.4.3/lib/python2.4/site-packages/ldap/ldapobject.py", line 405, in result res_type,res_data,res_msgid = self.result2(msgid,all,timeout) File "/opt/Plone-2.5/Python-2.4.3/lib/python2.4/site-packages/ldap/ldapobject.py", line 409, in result2 res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout) File "/opt/Plone-2.5/Python-2.4.3/lib/python2.4/site-packages/ldap/ldapobject.py", line 415, in result3 rtype, rdata, rmsgid, serverctrls = self._ldap_call(self._l.result3,msgid,all,timeout) File "/opt/Plone-2.5/Python-2.4.3/lib/python2.4/site-packages/ldap/ldapobject.py", line 94, in _ldap_call result = func(*args,**kwargs) UNWILLING_TO_PERFORM: {'info': '00000057: LdapErr: DSID-0C090A85, comment: Error in attribute conversion operation, data 0, vece', 'desc': 'Server is unwilling to perform'} thank. |