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

Alessandro Pasotti apasotti at gmail.com
Tue Jun 25 07:24:01 PDT 2019


On Tue, Jun 25, 2019 at 4:17 PM Overkamp, Stefan <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
>
>
>
> *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.
> _______________________________________________
> Qgis-user mailing list
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190625/59bd00e8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 29783 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190625/59bd00e8/attachment.jpg>


More information about the Qgis-user mailing list