Category: Python

Python Script for Stripping Leading Spaces and Trailing Parentheses

#!/usr/bin/python #—————————————————————————— # Name: scrub.py # Author: Jeremy Pierson # Last Modified: 11/3/11 # Description: Deletes text after ( in a text file and trims leading white # spaces before writing to a new file. #—————————————————————————— import os import sys

Posted in Python

Python LDAP Queries

While working on a project, I stumbled across the need to run a simple LDAP query against an Active Directory domain controller periodically. Since I’m still learning my Python-fu, I thought this would be a great opportunity to solve a

Posted in Python