Archive for November, 2009

November 18, 2009 0

Searching Your Corporate LDAP/AD with python

By in SysAdmin

There are a ton of examples out there on how to utilize ldap in python. I recently worked on a simple project which required active directory authentication using ldap. The following is simple script I’ve used hundreds of times. #!/usr/bin/env python #binds to ldap, queries for a specific AD account import ldap def Search(server,port, auth_user, [...]

November 10, 2009 0

Useful Commands for Proxy Migration

By in SysAdmin

Recently I took on a project to migrate “difficult” users from our proxy-based firewalls to use default route towards packet filters. Since we do not force users to authenticate for dhcp / keep track of IP assignments to users, it was very difficult to contact the remaining users going through our proxies. The first step [...]