The package pointed to by Mr. janglin is very effective
A good series of articles by Matt Butcher, link to first one http://www.packtpub.com/article/installing-and-configuring-the-python-ldap-library-and-binding-to-an-ldap-directory
python-ldap site is http://www.python-ldap.org/ It has links to code, documentation and examples.
Cheerio
Aalok