Re: pgAdmin4 web ldap authtification

From: Khushboo Vashi <khushboo(dot)vashi(at)enterprisedb(dot)com>
To: Stefan Harbich <stefan(dot)harbich(at)harnet(dot)de>
Cc: pgadmin-support(at)lists(dot)postgresql(dot)org
Subject: Re: pgAdmin4 web ldap authtification
Date: 2023-11-07 04:35:12
Message-ID: CAFOhELf1k-oCd+8kk58gyGZ9kNGMPk30NeW3X_s603tkFnm1Fw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On Tue, Nov 7, 2023 at 1:58 AM Stefan Harbich <stefan(dot)harbich(at)harnet(dot)de>
wrote:

> Hello,
>
> i created the file config_local.py in the config.py directory. Now I get
> the following error message.
> ...
> 2023-11-06 20:22:52,271: ERROR pgadmin:
> pgadmin.authenticate.AuthSourceRegistry 'l' has not been implemented.
> Traceback (most recent call last):
> File "/venv/lib/python3.11/site-packages/flask/app.py", line 1823, in
> full_dispatch_request
> rv = self.dispatch_request()
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/venv/lib/python3.11/site-packages/flask/app.py", line 1799, in
> dispatch_request
> return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/pgadmin4/pgadmin/authenticate/__init__.py", line 102, in login
> return _login()
> ^^^^^^^^
> File "/pgadmin4/pgadmin/authenticate/__init__.py", line 141, in _login
> if not auth_obj.validate():
> ^^^^^^^^^^^^^^^^^^^
> File "/pgadmin4/pgadmin/authenticate/__init__.py", line 267, in validate
> source = get_auth_sources(src)
> ^^^^^^^^^^^^^^^^^^^^^
> File "/pgadmin4/pgadmin/authenticate/__init__.py", line 328, in
> get_auth_sources
> auth_source = AuthSourceRegistry.get(type)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/pgadmin4/pgadmin/utils/dynamic_registry/__init__.py", line 48, in
> __get
> raise NotImplementedError(
> NotImplementedError: pgadmin.authenticate.AuthSourceRegistry 'l' has not
> been implemented.
> ...
> What else can I do?
>
> Please send your config_local.py settings, so I can have a look.

> Greetings from Stefan
>
> Am Montag, dem 06.11.2023 um 10:30 +0530 schrieb Khushboo Vashi:
>
>
>
> On Sat, Nov 4, 2023 at 2:06 AM Stefan Harbich <stefan(dot)harbich(at)harnet(dot)de>
> wrote:
>
> Hello, my dears,
>
> i can't get the LDAP login user to pgAdmin on the website. In Docker
> Bash, I created the file config_local.py with the following content in
> the “/var/lib/pgadmin” directory.
> ...
> AUTHENTICATION_SOURCES = ['ldap','internal']
> LDAP_SERVER_URI = 'ldap://<my-ip-address>:10389'
> LDAP_USERNAME_ATTRIBUTE = 'uid'
> LDAP_BASE_DN = 'uid=admin,ou=system'
> LDAP_SEARCH_BASE_DN = 'uid=admin,ou=system'
> ...
>
> Unfortunately, the content is not used after the container is
> restarted. Why not?
>
> config_local.py should be created in the same directory as config.py.
> Please refer: https://www.pgadmin.org/docs/pgadmin4/7.8/config_py.html
>
>
> Greetings from Stefan Harbich
>
>
>
>

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Stefan Harbich 2023-11-07 08:16:32 Re: pgAdmin4 web ldap authtification
Previous Message Stefan Harbich 2023-11-06 20:28:25 Re: pgAdmin4 web ldap authtification