[Qgis-user] QGIS Server qgis-auth.db

Overkamp, Stefan overkamp at rvr.ruhr
Tue Jun 25 07:38:34 PDT 2019


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


overkamp at rvr.ruhr


[cid:image001.jpg at 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:apasotti at gmail.com]
Gesendet: Dienstag, 25. Juni 2019 16:24
An: Overkamp, Stefan
Cc: qgis-user at lists.osgeo.org
Betreff: Re: [Qgis-user] QGIS Server qgis-auth.db



On Tue, Jun 25, 2019 at 4:17 PM Overkamp, Stefan <overkamp at rvr.ruhr<mailto:overkamp at 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


overkamp at rvr.ruhr<mailto:overkamp at rvr.ruhr>


[cid:image001.jpg at 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 at lists.osgeo.org<mailto:Qgis-user at 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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190625/96a5d812/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 29783 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190625/96a5d812/attachment-0001.jpg>


More information about the Qgis-user mailing list