bfontaine / p7ldap

:open_file_folder: Lightweight layer on top of python-ldap for Paris Diderot University’s LDAP server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

p7ldap

p7ldap is a very lightweight layer on top of python-ldap to search on Paris Diderot University’s LDAP server.

This is only a proof of concept for now.

Install

Requirements:

  • Python 2.7

The library can’t be installed for now, you can clone the repo and play with it if you want.

git clone https://github.com/IP7/p7ldap.git
cd p7ldap
pip install -r requirements.txt

Usage

Simple search:

from p7ldap import connection,formatting

con = connection.Connection()
formatting.print_search_results(con.search('yun'))

This should print something like (I changed the email address):

1 result found:

  Name: Jean-Baptiste Yunes
  Email: bar@foo.univ-paris-diderot.fr

About

:open_file_folder: Lightweight layer on top of python-ldap for Paris Diderot University’s LDAP server

License:MIT License


Languages

Language:Python 100.0%