GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing www.pgadmin.org — Enabling Webserver Authentication — pgAdmin 4 9.19 documentation
This page in other versions:
Latest
(9.19) | 9.18 | 9.17 | Development
Warning: this documentation is for a pre-release version of pgAdmin 4. Contents
Enabling Webserver Authentication¶To configure Webserver authentication, you must setup your webserver with any authentication plug-in (such as Shibboleth, HTTP BASIC auth) as long as it sets the REMOTE_USER environment variable. To enable Webserver authentication for pgAdmin, you must configure the Webserver settings in the config_local.py or config_system.py file (see the config.py documentation) on the system where pgAdmin is installed in Server mode. You can copy these settings from config.py file and modify the values for the following parameters:
Warning Setting WEBSERVER_REMOTE_USER to a header-derived name (such as HTTP_X_FORWARDED_USER, or REMOTE-USER/Remote-user) means the identity is read from a client-controlled HTTP request header, not necessarily a value set by your webserver’s authentication plug-in. Any client that can reach pgAdmin can set this header itself and impersonate any user, including an existing Administrator, unless you:
Without all of the above, pgAdmin does not trust a header-asserted identity and login through it is rejected. Warning A user matched via Webserver authentication is only logged in if their Authentication source is webserver. This prevents a header-asserted identity from ever logging into an account that was created some other way - most importantly, the default administrator account created by pgAdmin’s own setup, whose Authentication source is internal. If you are enabling Webserver authentication on a site that already has
users (including that default administrator) with an Authentication
source other than webserver, none of them will be able to log in
through Webserver authentication until you change it. To do so, sign in
through another configured authentication source and, for each such
user, set Authentication source to webserver on the
User Management page. If See Accounts from different authentication sources for more information. Master Password¶In the multi user mode, pgAdmin uses user’s login password to encrypt/decrypt the PostgreSQL server password. In the Webserver authentication, the pgAdmin does not store the user’s password, so we need an encryption key to store the PostgreSQL server password. To accomplish this, set the configuration parameter MASTER_PASSWORD to True, so upon setting the master password, it will be used as an encryption key while storing the password. If it is False, the server password can not be stored. | ||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |