<div dir="ltr">One point of clarification. If a config file is referenced then when the mapfile is read then the value for PLUGIN is always interpreted as a key to the list of plugins. That is always the case for CGI/FastCGI where a config file is required. In the case of MapScript (or shp2map) loading a mapfile, the config file is optional and the value for PLUGIN works as prior versions if a config file is not referenced. This was done to minimize impact on scripts. If a mapfile serves dual purposes then a config file will be required and PLUGIN values represent keys.<div><br></div><div>--Steve</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 20, 2023 at 9:13 AM Jörg Thomsen (WhereGroup) <<a href="mailto:joerg.thomsen@wheregroup.com">joerg.thomsen@wheregroup.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Benedek,<br>
<br>
 > Is it mandatory now, to define the PLUGIN path from the global CONFIG <br>
file?<br>
<br>
short answer: yes it's mandatory and it's a security issue.<br>
<br>
the documentation is very explizit<br>
(see <a href="https://mapserver.org/mapfile/layer.html" rel="noreferrer" target="_blank">https://mapserver.org/mapfile/layer.html</a>):<br>
<br>
> For MapServer >=8:<br>
defining plugins for dataconnections in the config-gile<br>
...<br>
> For MapServer <8:<br>
defining plugins for dataconnections in the mapfile<br>
<br>
further in <a href="https://mapserver.org/mapfile/config.html" rel="noreferrer" target="_blank">https://mapserver.org/mapfile/config.html</a> :<br>
> This block allows for keys to be mapped to plugin library paths.<br>
 > For example the MS SQL Plugin.<br>
 > **This registry of plugins avoids possible unsafe libraries being<br>
 >  loaded by a mapfile.**<br>
<br>
Regards, Jörg<br>
<br>
<br>
<br>
<br>
<br>
<br>
Am 20.03.23 um 14:51 schrieb Benedek Petrovicz:<br>
> Hi!<br>
> <br>
> Before MapServer 8, I always defined the mssql plugin path in the <br>
> mapfiles directly.<br>
> It was a convenient way for my use case.<br>
> <br>
> Now from MapServer 8 there's the required global CONFIG file I have to <br>
> define.<br>
> Which is fine, but MapServer will only allow loading the plugin through <br>
> that global CONFIG file.<br>
> <br>
> The CONFIG reference states the following:<br>
> <br>
>     /"PLUGINS: This block allows for keys to be mapped to plugin library<br>
>     paths."/<br>
> <br>
> For me, this means I can define a global plugin keyword if I want to, <br>
> but I don't have to.<br>
> In reality I don't have other options. At least I don't know about any.<br>
> <br>
> Is it mandatory now, to define the PLUGIN path from the global CONFIG file?<br>
> <br>
> Thank you!<br>
> Benedek Petrovicz<br>
> <br>
> _______________________________________________<br>
> MapServer-users mailing list<br>
> <a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br>
-- <br>
Viele Grüße,<br>
Jörg Thomsen<br>
---------------------------------------------<br>
Aufwind durch Wissen!<br>
Web-Seminare und Online-Schulungen<br>
bei der <a href="http://www.foss-academy.com" rel="noreferrer" target="_blank">www.foss-academy.com</a><br>
---------------------------------------------<br>
<br>
<br>
Jörg Thomsen<br>
WhereGroup GmbH<br>
Bundesallee 23<br>
10717 Berlin<br>
Germany<br>
<br>
Tel: +49 (0)30 / 5130 278 74<br>
Fax: +49 (0)30 / 5130 278 11    <br>
<br>
<a href="mailto:joerg.thomsen@wheregroup.com" target="_blank">joerg.thomsen@wheregroup.com</a><br>
<a href="http://www.wheregroup.com" rel="noreferrer" target="_blank">www.wheregroup.com</a><br>
<br>
Geschäftsführer:<br>
Olaf Knopp, Peter Stamm<br>
Amtsgericht Bonn, HRB 9885<br>
<br>
-------------------------------<br>
Folgen Sie der WhereGroup auf twitter: <a href="http://twitter.com/WhereGroup_com" rel="noreferrer" target="_blank">http://twitter.com/WhereGroup_com</a><br>
<br>
_______________________________________________<br>
MapServer-users mailing list<br>
<a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div>