There’s no real attempt at a pretty layout, but it does the job.
It would be useful to be able to specify an LDAP filter.
Currently, it includes everything under the base DN, which is not
ideal if the directory is complex.
It’s useful to pipe the output to a renderer like xdot.
It’s only been tested on Debian/Ubuntu.
Generate an org chart (long options)
# Generate an org chart from an Active Directory server at# ldaps://ad.example.com, binding as email@example.com and prompting# for a password.gen-orgchart \ --binddn firstname.lastname@example.org --askpass \ ldaps://ad.example.com ou=people,dc=example,dc=com | xdot -
Generate an org chart (short options)
# As above, but with short optionsgen-orgchart \ -D email@example.com -W \ ldaps://ad.example.com ou=people,dc=example,dc=com | xdot -