Sorry,
my example was bad
QGIS_AUTH_PASSWORD_FILE already points to a full path to the text file 
containing the password

but FcgidInitialEnv vars are not mentioned by QGIS Server log
Instead it shows
Auth DB PATH: //.local/share/QGIS/QGIS3/profiles/default/qgis-auth.db


Mit freundlichen Grüßen
Im Auftrag

Stefan Overkamp
Team Geodaten-Technik
Referat Geoinformation und Raumbeobachtung

Kronprinzenstraße 6
45128 Essen
T:
F:

+49 201 2069-700
+49 201 2069-369


overk...@rvr.ruhr


[cid:image001.jpg@01D52B74.6EA70D20]
Regionalverband Ruhr
Die Regionaldirektorin

Kronprinzenstraße 35
45128 Essen
T: +49 201 2069-0
F: +49 201 2069-500
www.rvr.ruhr

Postfach 10 32 64 | 45032 Essen
Steuernummer: 112/5797/0116 | USt.-ldNr.: DE 173867500

Diese E-Mail könnte vertrauliche und/oder rechtlich geschützte Informationen 
enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E- Mail 
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
Weitergabe dieser E-Mail sind nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorised 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.
Von: Alessandro Pasotti [mailto:apaso...@gmail.com]
Gesendet: Dienstag, 25. Juni 2019 16:24
An: Overkamp, Stefan
Cc: qgis-user@lists.osgeo.org
Betreff: Re: [Qgis-user] QGIS Server qgis-auth.db



On Tue, Jun 25, 2019 at 4:17 PM Overkamp, Stefan 
<overk...@rvr.ruhr<mailto:overk...@rvr.ruhr>> wrote:
Hi,

I’m trying to configure Authentication Configuration for QGIS Server 3.4.9

In Apache2 I have set environment variables:
FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH /mypath/withoutqgisauthdb/
FcgidInitialEnv QGIS_AUTH_PASSWORD_FILE /mypath/withoutqgis-auth.db/

Then I Have these files
/mypath/withoutqgisauthdb/qgis-auth.db and
/mypath/withoutqgisauthdb/authpwd with masterpassword

Hi,

QGIS_AUTH_PASSWORD_FILE needs to point to a full path to the text file 
containing the password and not to a directory.

From QGI S server code:
  // Initialize the authentication system
  //   creates or uses qgis-auth.db in ~/.qgis3/ or directory defined by 
QGIS_AUTH_DB_DIR_PATH env variable
  //   set the master password as first line of file defined by 
QGIS_AUTH_PASSWORD_FILE env variable
  //   (QGIS_AUTH_PASSWORD_FILE variable removed from environment after 
accessing)


Hope it helps.



In a local test my qgs project file opens the postgis Layers with the authcfg 
in qgis-auth.db

Calling a layer as wms, QGIS Server log shows:
CRITICAL Server[17067]: Layer(s) … not valid
My environmental vars are not mentioned by QGIS Server log, instead it shows
Auth DB PATH: //.local/share/QGIS/QGIS3/profiles/default/qgis-auth.db

Has anyone a running configuration for QGIS Server using qgis-auth.db ??


Mit freundlichen Grüßen
Im Auftrag

Stefan Overkamp
Team Geodaten-Technik
Referat Geoinformation und Raumbeobachtung

Kronprinzenstraße 6
45128 Essen
T:
F:

+49 201 2069-700
+49 201 2069-369


overk...@rvr.ruhr<mailto:overk...@rvr.ruhr>


[cid:image001.jpg@01D52B74.6EA70D20]
Regionalverband Ruhr
Die Regionaldirektorin

Kronprinzenstraße 35
45128 Essen
T: +49 201 2069-0
F: +49 201 2069-500
www.rvr.ruhr<http://www.rvr.ruhr>

Postfach 10 32 64 | 45032 Essen
Steuernummer: 112/5797/0116 | USt.-ldNr.: DE 173867500

Diese E-Mail könnte vertrauliche und/oder rechtlich geschützte Informationen 
enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E- Mail 
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
Weitergabe dieser E-Mail sind nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorised 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


--
Alessandro Pasotti
w3:   www.itopen.it<http://www.itopen.it>
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to