Skip to content

Instantly share code, notes, and snippets.

@stick
stick / ldap_admin.rb
Created September 17, 2012 14:41 — forked from tritonrc/ldap_admin.rb
Simple Sinatra based LDAP admin tool
require 'rubygems'
require 'sinatra'
require 'net-ldap'
require 'digest/sha1'
require 'base64'
require 'haml'
LDAP_HOST = 'localhost'
ADMIN_DN = 'cn=admin,dc=company,dc=com'