Skip to content

Instantly share code, notes, and snippets.

View jchansen's full-sized avatar

Jason Hansen jchansen

View GitHub Profile
@jchansen
jchansen / openldap_passwd.py
Created June 3, 2017 07:41 — forked from rca/openldap_passwd.py
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