[python-ldap] Using modify_s: TypeError: function takes exactly 3 arguments (2 given)

Sebastian Wiesner sebastian.wiesner at tu-dresden.de
Mon Aug 1 04:39:45 EDT 2016


Hi,

whenever I use the modify_s() method of my LDAP object, I get an 
Exception raised. Here is some trace of this:


   File 
"/home/zihprov/zihprov/zihprov/lib/python2.6/site-packages/ldap/ldapobject.py", 
line 401, in modify_s
     msgid = self.modify(dn,modlist)
   File 
"/home/zihprov/zihprov/zihprov/lib/python2.6/site-packages/ldap/ldapobject.py", 
line 398, in modify
     return self.modify_ext(dn,modlist,None,None)
   File 
"/home/zihprov/zihprov/zihprov/lib/python2.6/site-packages/ldap/ldapobject.py", 
line 370, in modify_ext
     return 
self._ldap_call(self._l.modify_ext,dn,modlist,RequestControlTuples(serverctrls),RequestControlTuples(clientctrls))
   File 
"/home/zihprov/zihprov/zihprov/lib/python2.6/site-packages/ldap/ldapobject.py", 
line 106, in _ldap_call
     result = func(*args,**kwargs)
TypeError: function takes exactly 3 arguments (2 given)


Tried it with python-ldap 2.3.10 and already upgraded to 2.4.26. Same error.


Kind regards

Sebastian


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5157 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20160801/8f57d7d2/attachment.bin>


More information about the python-ldap mailing list