Add LDAP org chart generator.
Add LDAP org chart generator.

gen-orgchart generates a Graphviz DOT format org chart from an LDAP
source.

The org chart hierarchy is based on the 'manager' LDAP attribute.
Other required attributes are, by supported schema:

inetOrgPerson       Active Directory
-------------       ----------------
displayName         displayName
title               title
o                   company
departmentNumber    department

Usage
=====
gen-orgchart [options] <ldapuri> <basedn>

Prerequisites
=============
- Python 2.x (>= 2.7)
- docopt (https://pypi.python.org/pypi/docopt/)
- jinja2 (https://pypi.python.org/pypi/jinja2/)
- python-ldap (https://pypi.python.org/pypi/python-ldap/)

Comments
========
- There's no real attempt at a pretty layout, but it does the job.
- It's useful to pipe the output to a renderer like xdot.
- Only tested on Debian/Ubuntu.

Examples
========
gen-orgchart --help

gen-orgchart \
    --binddn me@example.com --askpass \
    ldaps://ad.example.com ou=people,dc=example,dc=com | xdot -

(As above, with short options):

gen-orgchart \
    -D me@example.com -W \
    ldaps://ad.example.com ou=people,dc=example,dc=com | xdot -

traviscross/ldap-ad-utils