GithubHelp home page GithubHelp logo

Comments (4)

dirkjanm avatar dirkjanm commented on August 20, 2024

Make sure you have version 2.5.1 of ldap3 library, newer versions show this error

from ldapdomaindump.

h4knet avatar h4knet commented on August 20, 2024

Hello Dirk-jan,
I just checked and it is.

# apt show python-ldap3
Package: python-ldap3
Version: 2.5.1-0kali1
Priority: optional
Section: python
Maintainer: Debian Python Modules Team <[email protected]>
Installed-Size: 2,081 kB
Depends: python-pyasn1 (>= 0.1.8), python:any (<< 2.8), python:any (>= 2.7~)
Breaks: python-tldap (<< 0.3.8~)
Homepage: https://github.com/cannatag/ldap3
Download-Size: 221 kB
APT-Manual-Installed: no
APT-Sources: http://http.kali.org/kali kali-rolling/main amd64 Packages
Description: Pure Python LDAP client library
 A pure Python 3 LDAP version 3 strictly conforming to RFC4511 released under
 the LGPL v3 open source license. RFC4511 is the current LDAP specification
 (June 2006) from IETF and obsoletes the previous LDAP RFCs 2251, 2830, 3771
 (December 1997)
 .
 This package contains the Python 2.7 version of the library.

# python -V
Python 2.7.16

from ldapdomaindump.

h4knet avatar h4knet commented on August 20, 2024

I've check with 'pip' and the version was 2.5.2..

# pip install ldap3 dnspython
Requirement already satisfied: ldap3 in /usr/local/lib/python2.7/dist-packages (2.5.2)
Requirement already satisfied: dnspython in /usr/lib/python2.7/dist-packages (1.16.0)
Requirement already satisfied: pyasn1>=0.1.8 in /usr/local/lib/python2.7/dist-packages (from ldap3) (0.4.6)

So I've just ran the command pip install --upgrade ldap3==2.5.1 and it solved my problem :)

Maybe it could be an idea to add a requirements.txt file to your project to prevent this problem in the future for other users as well.

I've also seen that the package version I have is the 0.9.1-0kali1 from the kali package. It might be also an idea to add a -V option to check which version of your tool we are running.

from ldapdomaindump.

dirkjanm avatar dirkjanm commented on August 20, 2024

Good to hear you fixed it, the package version is fixed in setup.py

install_requires=['dnspython', 'ldap3==2.5.1', 'future'],
, which is similar to requirements.txt for setuptools/pip.
I'll consider the -V option, I didn't even know ldapdomaindump is part of Kali nowadays 😄

from ldapdomaindump.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.