pgadmin4 icon indicating copy to clipboard operation
pgadmin4 copied to clipboard

Using ldap without having an internal user and setting PGADMIN_DEFAULT_EMAIL and PGADMIN_DEFAULT_PASSWORD

Open Tinu74 opened this issue 2 years ago • 2 comments

Why do I need to set PGADMIN_DEFAULT_EMAIL/PGADMIN_DEFAULT_PASSWORD for ldap?

It looks like type internal must always be part of the list and so the two mentioned parameters must be set to create an admin user. But why?

Is it not possible to just use ldap? And therefore a parameter like PGADMIN_DEFAULT_USERNAME could be set? Now if I'm right the value of PGADMIN_DEFAULT_EMAIL is used to set the username.

We would like to use pgAdmin without the possibility of creating internal users. Just LDAP-user.

Tinu74 avatar Nov 08 '23 06:11 Tinu74

I have the same question when using oauth2.

mingfang avatar Jan 11 '24 00:01 mingfang

+1 useing oauth2.

However i set AUTHENTICATION_SOURCES = ['oauth2'] this at least disables the local login via the ui.

henkwiedig avatar Jul 09 '24 07:07 henkwiedig