Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

City-of-Bloomington/pg-ldap-sync

Repository files navigation

Sync user accounts from LDAP to Postgres

This python script creates and deletes postgres user accounts by comparing members of an LDAP group. LDAP group members will have accounts created. Postgres users not in the LDAP group, who are not SuperUsers, will be deleted.

This is currently written to support ActiveDirectory nested groups. This uses Microsoft's matching rule OIDs in the LDAP search filter.

Requirements

  • Python >= 3.6

Python libraries

  • configparser
  • ldap
  • psycopg2

About

Sync users from LDAP to Postgres

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages