My favorites | Sign in
Project Logo
                
Search
for
Updated Oct 31, 2008 by geertj
PythonAdInstallation  

This page explains the Python-AD installation.

Prerequisites

Python-AD depends on the following software packages. These must be installed before Python-AD can be installed or used.

  • Python >= 2.2.
  • Python-LDAP >= ''unknown''
    • Support for paged results is required.
    • Ensure your OpenLDAP installation has support for SASL/GSSAPI. On Red Hat based distributions this means you need to install the cyrus-sasl-gssapi package.
  • dnspython >= ''unknown''. Used for looking up DNS SRV records.
  • PLY >= ''unknown''. PLY is used for parsing LDAP search filters.
  • MIT Kerberos >= 1.3
  • Nose is used for running the unit tests.

Installation

Because Python-AD uses distutils, installation is easy:

$ python setup.py build
$ python setup.py install

Testing

Python-AD comes with an extensive test suite. To run the tests, you first need the py.test tool from the py library. Follow the steps below to run the tests:

$ cp test.conf.example test.conf
$ vi test.conf
$ eval `python env.py`
$ python setup.py test

The file test.conf contains the test configuration. A lot of options are available for e.g. testing Python-AD against a real Active Directory. Please see inside this file for help on how to enable these tests.


Comment by kmbrandt, Mar 04, 2009

For Ubuntu Intrepid Ibex I installed the following packages to build this (some of these might have not been needed): python-setuptools python-ldap python-dns python-ply python-nose python2.5-dev python-kerberos libkrb5-dev libldap2-dev python-dnspython libsasl2-modules-gssapi-mit

Comment by sampowers, Dec 30, 2009

I use this set of packages: python-ldap libsasl2-modules-gssapi-mit python-dnspython python-ply libkrb5-dev python-dev


Sign in to add a comment
Hosted by Google Code