<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
 
 </head><body style="">
 
  <div> 
   <div>
    Hi Giovanni,
   </div> 
   <div>
     
   </div> 
   <div>
    Thank you for your prompt response!
   </div> 
   <div>
     
   </div> 
   <div>
    It is Novell E-Directory LDAP server. I will check it on Monday and will get back to you with my results.
   </div> 
   <div>
     
   </div> 
   <div>
    Regards,
   </div> Paul
  </div> 
  <blockquote style="position: relative; margin-left: 0px; padding-left: 10px; border-left: solid 1px blue;" type="cite">
   On September 20, 2013 at 10:21 PM python3ldap <python3ldap@gmail.com> wrote:
   <br/>
   <br/> 
   <div dir="ltr"> 
    <div> 
     <div>
      Hello Paul,
     </div> thanks for testing the python3-ldap client library!
    </div> 
    <div>
     There is no specific extra debug information in the library for now, you can check the ldap result message for each ldap operation inspecting the c.result attribute. 
    </div> 
    <div>
     I've sligthly modified your script and it''s working for me:
     <br/>
     <br/>from ldap3 import Connection, Server
     <br/>from ldap3 import AUTH_SIMPLE, STRATEGY_SYNC, SEARCH_DEREFERENCE_ALWAYS, SEARCH_SCOPE_WHOLE_SUBTREE, GET_NO_INFO
     <br/> import pprint
     <br/>LDAP_HOST = 'yourServer'
     <br/>LDAP_USER = 'yourUser'
     <br/>LDAP_PASS = 'yourPassword'
     <br/>s = Server(LDAP_HOST, port = 389, getInfo = GET_NO_INFO)
     <br/>c = Connection(s, autoBind = False, clientStrategy = STRATEGY_SYNC, user=LDAP_USER, password=LDAP_PASS, authentication=AUTH_SIMPLE)
     <br/> c.open()
     <br/>print('Connection info:')
     <br/>print(c)
     <br/>c.bind()
     <br/>print('Bind result:')
     <br/>pprint.PrettyPrinter(indent=4).pprint(c.result)
     <br/>#print(
     <a href="http://s.info">s.info</a>)
     <br/>result = c.search('o=hcc','(objectClass=*)', SEARCH_SCOPE_WHOLE_SUBTREE, SEARCH_DEREFERENCE_ALWAYS, attributes = ['cn','ou','uid'])
     <br/> print('Search result:')
     <br/>pprint.PrettyPrinter(indent=4).pprint(c.result)
     <br/>print('Search response:')
     <br/>pprint.PrettyPrinter(indent=4).pprint(c.response)
     <br/>c.unbind()
     <br/>
     <br/>
    </div> 
    <div>
     Please, substitute the LDAP_HOST, LDAP_USER and LDAP_PASSWORD with your current values and send me back the output. You should get details for the conection info, for the bind result, the search result and the search response.
     <br/> 
    </div> 
    <div>
     I've remove the GET_ALL_INFO for now, because it adds a few search operations at the bind phase and overrides the result from the bind operation. You can add it back later wjem it's working.
     <br/>
     <br/>
    </div> 
    <div>
     Can you tell me more on the client and the server platform you're using?
     <br/>
     <br/>Thanks,
    </div> 
    <div>
     Giovanni
    </div> 
   </div> 
   <div class="gmail_extra">
    <br clear="all"/> 
    <div> 
     <div dir="ltr">
      Have fun, 
      <div>
       gc
      </div> 
     </div> 
    </div> 
    <br/>
    <br/> 
    <div class="gmail_quote">
     2013/9/20 Paul G. 
     <span><<a target="_blank" href="mailto:paul.list@isrcomputing.com">paul.list@isrcomputing.com</a>></span>
     <br/> 
     <blockquote style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">
      <span style="text-decoration: underline;"></span> 
      <div> 
       <div>
        Hi,
       </div> 
       <div>
         
       </div> 
       <div>
        I downloaded 'python3-ldap-0.6.0-beta' and tested it. It failed to work for me.
       </div> 
       <pre><br/>from ldap3 import connection, server<br/>from ldap3 import AUTH_SIMPLE, STRATEGY_SYNC, STRATEGY_ASYNC_THREADED, SEARCH_DEREFERENCE_ALWAYS, SEARCH_SCOPE_WHOLE_SUBTREE, GET_ALL_INFO<br/>import pprint<br/>s = server.Server(LDAP_HOST, port = 389, getInfo = GET_ALL_INFO)<br/>
c = connection.Connection(s, autoBind = True, clientStrategy = STRATEGY_SYNC, user=LDAP_USER, password=LDAP_PASS, authentication=AUTH_SIMPLE)<br/>print(<a target="_blank" href="http://s.info">s.info</a>)<br/>result = c.search('o=hcc','(objectClass=*)', SEARCH_SCOPE_WHOLE_SUBTREE, SEARCH_DEREFERENCE_ALWAYS, attributes = ['cn','ou','uid']);<br/>
pprint.PrettyPrinter(indent=4).pprint(c);<br/>pprint.PrettyPrinter(indent=4).pprint(result);<br/>c.unbind();</pre> 
       <div>
        It returns with:
       </div> 
       <pre>Connection(server=Server(host='XXXXX', port=389, ssl=False, getInfo=3), user='XXXXX', password='YYYYYY', autoBind=True, version=3, authentication=1, clientStrategy=0, autoReferrals=True)<br/>
False</pre> 
       <div>
         
       </div> 
       <div>
        Is there a way to turn on extra debugging to see where the script is failing?
       </div> 
       <div>
         
       </div> 
       <div>
        Regards,
       </div> 
       <div>
        Paul G.
       </div> 
      </div> 
      <br/>_______________________________________________
      <br/> python3-ldap mailing list
      <br/> 
      <a href="mailto:python3-ldap@python.org">python3-ldap@python.org</a>
      <br/> 
      <a target="_blank" href="https://mail.python.org/mailman/listinfo/python3-ldap">https://mail.python.org/mailman/listinfo/python3-ldap</a>
      <br/> 
     </blockquote> 
    </div> 
   </div> 
  </blockquote> 
  <div>
   <br/> 
  </div>
 
</body></html>