<html><body bgcolor="#FFFFFF"><div>Also, don't forget to password protect your datasource. &nbsp;No sense hiding the layer from GeoMoose if someone can just get the data straight from MapServer anyway.</div><div><br></div><div>One option I've used involves separate map files for each data source and a lot of apache rules. &nbsp;Another option I've used was to write&nbsp;<span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">a script that implements WMS via mapscript and validates off of your auth solution.</span></div><div><br></div><div>Also, don't forget the printing and query scripts need to understand the login part too.</div><div><br>On Apr 9, 2012, at 13:40, Dan Little &lt;<a href="mailto:danlittle@yahoo.com">danlittle@yahoo.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Replace getmapbook.php.&nbsp; You'll need to create a login solution, of which there are many and varied.&nbsp; Essentially it goes this like:</span></div><div><br><span></span></div><div><br><span></span></div><div><span>1. Create something like "/gis/login.php" - Then if you want , have a link there for "public" or "guests"</span></div><div><span>2. login.php gets the credentials, checks them against a database or LDAP/AD, and you get a role.&nbsp; PHP's session functionality makes this pretty easy.&nbsp; Then login.php would forward the user to "geomoose.html" (or whatever it's called on your system)</span></div><div><span>3. getmapbook.php, probably reads a "header.xml", then for the body (map-source's and catalog) you'd write a quick for-loop that would either use a XML/DOM building utility or just some text that makes valid
 XML to output in the form of a mapbook, finally a "footer.xml".&nbsp; The script would populate the available layers based on the auth levels of the user and I'd probably store that info in postgresql.<br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Mark Volz &lt;<a href="mailto:MarkVolz@co.lyon.mn.us">MarkVolz@co.lyon.mn.us</a>&gt;<br> <b><span style="font-weight: bold;">To:</span></b> "<a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a>" &lt;<a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a>&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, April 9, 2012 12:59 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [Geomoose-users] per user
 layers<br> </font> </div> <br>
<div id="yiv2054512414">

 
 

<style><!--#yiv2054512414 .yiv2054512414EmailQuote {margin-left:1pt;padding-left:4pt;border-left:#800000 2px solid;}--></style>

<div>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>Hello,</div>
<div>&nbsp;</div>
<div>Is there a way in GeoMOOSE 2.x to password protect some layers in the TOC without having to recreate several mapbooks.&nbsp; For example:</div>
<div>&nbsp;</div>
<div>Catalog</div>
<div>-Public Layers</div>
<div>-Layers only visible to county workers</div>
<div>-Layers only visible to the Highway Department</div>
<div>-Layers only visible to the Assessor Department</div>
<div>-Layers only for the City</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Thanks</div>
<div>&nbsp;</div>
<div>Mark Volz</div>
<div>GIS Specialist</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
</span></font>
</div>

</div><br>_______________________________________________<br>Geomoose-users mailing list<br><a ymailto="mailto:Geomoose-users@lists.osgeo.org" href="mailto:Geomoose-users@lists.osgeo.org"><a href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a></a><br><a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank"><a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a></a><br><br><br> </div> </div> </blockquote></div>   </div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Geomoose-users mailing list</span><br><span><a href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a></span><br><span><a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a></span><br></div></blockquote></body></html>