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

Python 3.10 with ldap3.NTLM - unsupported hash type MD4 #1038

Closed
Barsovski opened this issue Jun 14, 2022 · 3 comments · Fixed by #1132
Closed

Python 3.10 with ldap3.NTLM - unsupported hash type MD4 #1038

Barsovski opened this issue Jun 14, 2022 · 3 comments · Fixed by #1132

Comments

@Barsovski
Copy link

Ubuntu 22.04 / Python 3.10.4 / ldap3==2.9 with authentication=ldap3.NTLM

Exception:
Error: unsupported hash type MD4

@dogwynn
Copy link

dogwynn commented Jun 30, 2022

Related bug track mentioned here.

It seems this is related to openssl itself no longer supporting "legacy" hashing algorithms (e.g. MD4).

I've made the suggested changes to my /usr/lib/ssl/openssl.cnf file, but unfortunately, it makes no difference. This is almost certainly because I'm missing something obvious, but I've never fiddled with OpenSSL. I'm hoping I don't have to reboot my machine.

@exploide
Copy link
Contributor

See #1051 for an explanation and a possible workaround (manually installing pycryptodome).

@md5tack
Copy link

md5tack commented May 26, 2023

pip3 install pycryptodome --break-system-packages

npredey added a commit to npredey/gce-automated-ad-join that referenced this issue Jun 21, 2023
Receiving "unsupported hash type MD4" error. Per this GitHub issue, cannatag/ldap3#1038, adding pycryptodome will unblock that error
npredey added a commit to npredey/gce-automated-ad-join that referenced this issue Jun 21, 2023
Receiving "unsupported hash type MD4" when trying to auto-join the domain controller. Per this issue (cannatag/ldap3#1038) with the ldap Python library, adding pycryptodome==3.18.0 to the requirements.txt fixes the issue.
p4yl0ad referenced this issue in p0dalirius/LDAPmonitor Mar 27, 2024
FIX: ValueError: unsupported hash type MD4
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

Successfully merging a pull request may close this issue.

4 participants