Skip to content

Python Script to resync the greenlight database with a given LDAP-database

License

Notifications You must be signed in to change notification settings

inDane/greenlight_ldap_resync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

greenlight_ldap_resync

Python Script to resync the fullnames to the greenlight database from a given LDAP-database.

It fetches all users from LDAP and tries to update them in greenlight's postgres database.

Information

These variables need to be adjusted.

ldap_server = "ldaps://yourcompany.com:636"
basedn = "ou=people,dc=company,dc=de"
binddn = "cn=your_user,ou=admin,dc=company,dc=de"
pw = ""
psql_data = "host=localhost dbname=greenlight_production user=postgres password=PG-PASS" 

pw is the password of your ldap user (binddn).

PG-PASS is the password, that is set as DB_PASSWORD in the .env file of greenlight.

About

Python Script to resync the greenlight database with a given LDAP-database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages