Re: pgAdmin4 web ldap authtification

Поиск
Список
Период
Сортировка
От Khushboo Vashi
Тема Re: pgAdmin4 web ldap authtification
Дата
Msg-id CAFOhELf1k-oCd+8kk58gyGZ9kNGMPk30NeW3X_s603tkFnm1Fw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgAdmin4 web ldap authtification  (Stefan Harbich <stefan.harbich@harnet.de>)
Ответы Re: pgAdmin4 web ldap authtification  (Stefan Harbich <stefan.harbich@harnet.de>)
Список pgadmin-support


On Tue, Nov 7, 2023 at 1:58 AM Stefan Harbich <stefan.harbich@harnet.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.harbich@harnet.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.

Greetings from Stefan Harbich



В списке pgadmin-support по дате отправления:

Предыдущее
От: Stefan Harbich
Дата:
Сообщение: Re: pgAdmin4 web ldap authtification
Следующее
От: Stefan Harbich
Дата:
Сообщение: Re: pgAdmin4 web ldap authtification