Closed mubix closed 4 years ago
Which version of ldap3 is this? Sounds like a non-compatible version
I am having a similar issue using ldapdomaindump with similar output as what @mubix got.
OS: Kali Linux 5.3.0-kali3-amd64 #1 SMP Debian 5.3.15-1kali1 (2019-12-09) x86_64 GNU/Linux
Command ran: python3 ldapdomaindump.py 10.10.10.172
Output:
[*] Connecting as anonymous user, dumping will probably fail. Consider specifying a username/password to login with
[*] Connecting to host...
[*] Binding to host
[+] Bind OK
[*] Starting domain dump
Traceback (most recent call last):
File "ldapdomaindump.py", line 3, in <module>
ldapdomaindump.main()
File "/root/Documents/htb/monteverde/recon/ldapdomaindump/ldapdomaindump/__init__.py", line 944, in main
dd.domainDump()
File "/root/Documents/htb/monteverde/recon/ldapdomaindump/ldapdomaindump/__init__.py", line 422, in domainDump
rw.generateUsersReport(self)
File "/root/Documents/htb/monteverde/recon/ldapdomaindump/ldapdomaindump/__init__.py", line 789, in generateUsersReport
dd.mapGroupsIdsToDns()
File "/root/Documents/htb/monteverde/recon/ldapdomaindump/ldapdomaindump/__init__.py", line 350, in mapGroupsIdsToDns
gid = int(group.objectSid.value.split('-')[-1])
TypeError: a bytes-like object is required, not 'str'
This is the output of pip3 show ldap3
:
Name: ldap3
Version: 2.5.1
Summary: A strictly RFC 4510 conforming LDAP V3 pure Python client library
Home-page: https://github.com/cannatag/ldap3
Author: Giovanni Cannata
Author-email: cannatag@gmail.com
License: LGPL v3
Location: /usr/lib/python3/dist-packages
Requires:
Required-by:
@Pascal-0x90 you're likely running into the issue described in #26
Ah so it seems. Sorry for that. I should have looked further into it. Thank you!
Closing due to lack of feedback