Skip to content

Instantly share code, notes, and snippets.

View Morabaraba's full-sized avatar
🐍
Snake! Snake! Oooh it is a snake!

Morabaraba Morabaraba

🐍
Snake! Snake! Oooh it is a snake!
  • Digital Nomad
View GitHub Profile
@rca
rca / openldap_passwd.py
Last active January 21, 2022 14:00
Python hashing and test functions for user passwords stored in OpenLDAP.
#!/usr/bin/env python
"""
http://www.openldap.org/faq/data/cache/347.html
As seen working on Ubuntu 12.04 with OpenLDAP 2.4.28-1.1ubuntu4
Author: Roberto Aguilar <roberto@baremetal.io>
"""
import hashlib
import os