Added LDAP authentication support. Fixes #2186
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=f77aa3284f93a4ea07ea5df8e12fcb60a7248142
Author: Khushboo Vashi <khushboo.vashi@enterprisedb.com>
Modified Files
--------------
docs/en_US/release_notes_4_21.rst | 1 +
requirements.txt | 1 +
web/config.py | 59 ++++
web/migrations/versions/7fedf8531802_.py | 51 ++++
web/pgAdmin4.py | 12 +
web/pgadmin/__init__.py | 3 +-
web/pgadmin/authenticate/__init__.py | 156 ++++++++++
web/pgadmin/authenticate/internal.py | 98 +++++++
web/pgadmin/authenticate/ldap.py | 186 ++++++++++++
web/pgadmin/authenticate/registry.py | 65 +++++
web/pgadmin/browser/__init__.py | 92 ++++--
web/pgadmin/browser/templates/browser/index.html | 2 +
.../templates/browser/macros/gravatar_icon.macro | 2 +-
web/pgadmin/browser/tests/test_change_password.py | 1 +
web/pgadmin/browser/tests/test_ldap_login.py | 89 ++++++
.../browser/tests/test_ldap_with_mocking.py | 84 ++++++
web/pgadmin/model/__init__.py | 6 +-
web/pgadmin/templates/security/fields.html | 11 +
web/pgadmin/templates/security/login_user.html | 4 +-
web/pgadmin/templates/security/panel.html | 2 +-
web/pgadmin/tools/user_management/__init__.py | 99 +++++--
.../user_management/static/js/user_management.js | 317 ++++++++++++++-------
.../templates/user_management/js/current_user.js | 3 +-
.../python_test_utils/csrf_test_client.py | 4 +-
web/regression/runtests.py | 7 +
web/regression/test_config.json.in | 43 +++
26 files changed, 1238 insertions(+), 160 deletions(-)