mirror of
https://github.com/lldap/lldap.git
synced 2026-03-31 15:07:48 +01:00
1.5 KiB
1.5 KiB
Configuration for pgAdmin
The configuration for pgAdmin is done in the config_local.py. Refer
to the pgAdmin documentation for guidance on its config file. The
Enabling LDAP Authentication describes all available
variables related to enabling LDAP authentication for pgAdmin.
Note
The configuration can also be done through pgAdmin's
PGADMIN_CONFIG_*environnement variables when run in Docker.
Add and adapt the following in your config_local.py where:
dc=example,dc=comis your LLDAP configured domain.ldap://lldap:3890is yourldap://HOSTNAME-OR-IP:PORTof your LLDAP server.bind_userandREPLACE_MEare your user uid and password of the bind user for pgAdmin.pgadmin_usersis the group of the users you want to give access to pgAdmin.
AUTHENTICATION_SOURCES = ["ldap"]
LDAP_AUTO_CREATE_USER = True
LDAP_SERVER_URI = "ldap://lldap:3890"
LDAP_USERNAME_ATTRIBUTE = "uid"
LDAP_BASE_DN = "ou=people,dc=example,dc=com"
LDAP_SEARCH_BASE_DN = "ou=people,dc=example,dc=com"
LDAP_BIND_USER = "uid=bind_user,ou=people,dc=example,dc=com"
LDAP_BIND_PASSWORD = "REPLACE_ME"
LDAP_SEARCH_FILTER = "(memberof=cn=pgadmin_users,ou=groups,dc=example,dc=com)"