petl-developers/petl

Investigate fromldap() that can be used to extract data from an ldap directory

Opened this issue · 0 comments

Minimal, reproducible code sample, a copy-pastable example if possible

petl_ldap3

Provides an LdapView class and a function fromldap that can be used to extract data from an ldap directory and turn it into a petl table.

fromldap requires a valid ldap3.Connection to be passed in. fromldap also requires a base ou to start serching and search query in RFC2254 format. (https://www.ietf.org/rfc/rfc2254.txt)

Problem description

A PETL LDAPView class. Need this until I can get my changes included in the main PETL package.

https://github.com/PGower/petl_ldap3/blob/master/petl_ldap3.py