Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ldap3.core.exceptions.LDAPInvalidPortError: port must be an integer #37

Open
KDR9666 opened this issue Feb 25, 2024 · 0 comments
Open

Comments

@KDR9666
Copy link

KDR9666 commented Feb 25, 2024

kali@kali:~/AD/LDAP/ldapdomaindump$ sudo ldapdomaindump lkdaps://192.168.202.132 -u 'ADLAB\s1account' -p User1@123

/usr/local/bin/ldapdomaindump:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import('pkg_resources').run_script('ldapdomaindump==0.9.4', 'ldapdomaindump')
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ldap3/core/server.py", line 114, in init
port = int(hostport) or port
^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '//192.168.202.132'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/ldapdomaindump", line 4, in
import('pkg_resources').run_script('ldapdomaindump==0.9.4', 'ldapdomaindump')
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 722, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1561, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python3.11/dist-packages/ldapdomaindump-0.9.4-py3.11.egg/EGG-INFO/scripts/ldapdomaindump", line 3, in
ldapdomaindump.main()
File "/usr/local/lib/python3.11/dist-packages/ldapdomaindump-0.9.4-py3.11.egg/ldapdomaindump/init.py", line 940, in main
s = Server(args.host, get_info=ALL)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/ldap3/core/server.py", line 118, in init
raise LDAPInvalidPortError('port must be an integer')
ldap3.core.exceptions.LDAPInvalidPortError: port must be an integer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant