【问题标题】:debugging LDAP library / connection Wireshark / or whatever调试 LDAP 库 / 连接 Wireshark / 或其他
【发布时间】:2019-03-22 12:00:17
【问题描述】:

很遗憾,我无法访问 Ldap 服务器。

我只需要回答为什么我无法使用python库ldap连接Ldap服务器。

在wireshark中我已经进行了一些传输:

  • 同步
  • 同步/确认
  • 确认

但不幸的是:

  • Rst,确认

不幸的是,图书馆没有显示任何日志,要么密码错误,要么我发现了一些连接问题。

所以我想问一下,除了调试 ldap 库之外,我还能做些什么。

【问题讨论】:

    标签: python python-3.x active-directory ldap wireshark


    【解决方案1】:

    您可以在库中启用日志记录。

    import ldap;
    
    # enable python-ldap logging
    ldap.set_option(ldap.OPT_DEBUG_LEVEL, 4095)
    
    # enable openLDAP logging
    l = ldap.initialize('ldap://yourserver:port', trace_level=2)
    

    取自:http://lpetr.org/blog/archives/how-to-enable-logging-in-python-ldap

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-12-18
      • 1970-01-01
      • 1970-01-01
      • 2016-01-21
      • 1970-01-01
      • 1970-01-01
      • 2013-02-19
      • 2019-02-02
      相关资源
      最近更新 更多