Skip to content

LDAP library built on top of ldap3 providing a more intuitive interface and query objects.

stackhpc/jasmin-ldap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jasmin-ldap

Library providing an improved interface to LDAP built on ldap3:

  • Fully object-oriented
  • Connection pooling
  • Lazy, filter-able, order-able, index-able search queries with annotation and aggregation

Requirements and installation

The reference platform is a fully patched CentOS 6.x installation with Python 3.5 and access to an LDAP server.

To install Python 3.5 in CentOS 6.x, the following can be used:

sudo yum install https://centos6.iuscommunity.org/ius-release.rpm
sudo yum install python35u python35u-devel

The easiest way to install jasmin-ldap is to use pip, which is included by default with Python 3.5.

jasmin-ldap is currently installed directly from Github:

# NOTE: This will install the LATEST versions of any dependent packages
#       For ways to do repeatable installs, see the pip documentation
pip install git+https://github.com/cedadev/jasmin-ldap.git@master

Developing

Installing the jasmin-ldap library in development mode, via pip, ensures that dependencies are installed and entry points are set up properly, but changes we make to the source code are instantly picked up.

# Clone the repository
git clone https://github.com/cedadev/jasmin-ldap.git

# Install in editable (i.e. development) mode
#   NOTE: This will install the LATEST versions of any packages
#         This is what you want for development, as we should be keeping up to date!
pip install -e jasmin-ldap

Generating the API documentation

Once you have successfully installed the jasmin-ldap code, you can generate and view the API documentation:

cd doc
make clean html SPHINXBUILD=/path/to/sphinx-build
firefox _build/html/index.html

Note that this requires Sphinx to be installed.

About

LDAP library built on top of ldap3 providing a more intuitive interface and query objects.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%