Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import sys
from ldif import LDIFParser,LDIFWriter
import StringIO
user_entries = ['uid', 'uidNumber', 'sn', 'cn', 'loginShell','gidNumber', 'userPassword', 'homeDirectory','givenName', 'displayname'];
group_cns = ["group1","group2","group3"]
users= {};