[python-ldap] python-ldap syncrepl consumer

David Gabriel davidgab283 at gmail.com
Thu Nov 12 03:51:37 EST 2015

Dear Michael and all,

This is the exception traceback I got:

$ python syncrepl.py ldap://localhost test.com
Connecting to LDAP server now...
Traceback (most recent call last):
  File "syncrepl.py", line 142, in <module>
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 831, in
    res =
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 812, in
    return func(self,*args,**kwargs)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 207, in
    msgid = self.simple_bind(who,cred,serverctrls,clientctrls)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 201, in
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 99, in
    result = func(*args,**kwargs)
TypeError: must be string, not None

2015-11-10 18:41 GMT+01:00 Michael Ströder <michael at stroeder.com>:

> On 2015-11-10 17:10, David Gabriel wrote:
>> Thank you so much for your quick answer.
>> Since yesterday I have tried to run the example I found in the
>> indicated directory (Demo/pyasn1/syncrepl.py) using this command :
>> python syncrepl.py ldap://localhost test.com [1] but I still get this
>> error "TypeError: must be string, not None". And it is caused from
>> "ldap_url.who" which is None.
>> Could you please tell me how to fix this issue ?
>> Is it problem coming from server side or the arguments ... ?
> Please always send a complete exception traceback if one of the demo
> scripts fail.
> Ciao, Michael.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20151112/b65d78fa/attachment.html>

More information about the python-ldap mailing list