Re: pgAdmin4 web ldap authtification

From: Stefan Harbich <stefan(dot)harbich(at)harnet(dot)de>
To: Khushboo Vashi <khushboo(dot)vashi(at)enterprisedb(dot)com>
Cc: pgadmin-support(at)lists(dot)postgresql(dot)org
Subject: Re: pgAdmin4 web ldap authtification
Date: 2023-11-06 20:28:25
Message-ID: 09817f2bf5c1a6ddda78c553134ac014385f07cb.camel@harnet.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

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?

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 Khushboo Vashi 2023-11-07 04:35:12 Re: pgAdmin4 web ldap authtification
Previous Message Karl O. Pinc 2023-11-06 15:16:55 Re: pgadmin for ubuntu 23.10 (mantic)