https://github.com/bfontaine/p7ldap
:open_file_folder: Lightweight layer on top of python-ldap for Paris Diderot University’s LDAP server
https://github.com/bfontaine/p7ldap
ldap library paris-diderot python
Last synced: 12 months ago
JSON representation
:open_file_folder: Lightweight layer on top of python-ldap for Paris Diderot University’s LDAP server
- Host: GitHub
- URL: https://github.com/bfontaine/p7ldap
- Owner: bfontaine
- License: mit
- Created: 2014-02-05T21:48:57.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-10-01T14:01:13.000Z (almost 12 years ago)
- Last Synced: 2025-03-23T23:43:41.381Z (over 1 year ago)
- Topics: ldap, library, paris-diderot, python
- Language: Python
- Homepage:
- Size: 133 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# p7ldap
**p7ldap** is a very lightweight layer on top of [`python-ldap`][pldap] to
search on Paris Diderot University’s LDAP server.
[pldap]: http://www.python-ldap.org/
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.
```sh
git clone https://github.com/IP7/p7ldap.git
cd p7ldap
pip install -r requirements.txt
```
## Usage
Simple search:
```python
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
```