Tags:
create new tag
, view all tags

Question

I have an implementation that has several webs and dozens of users. I have several access control groups set up to make sure the data is kept within the required group.

From time to time, I get requests from users to add them to the required group for permission to a particular page. At this point, I don't remember what group I used on what page and would like to access the information easily.

I'm also a glutton for SEARCH punishment and thought I'd see if I could find a way to enter a topic name and have it return all the permissions ALLOW or DENY for that topic.

As I got further into this task, I decided to make it a bit more generic. At this point I have a form requesting the Web name, the Topic name and a selection box for returning ALLOW, DENY, BOTH, or ALL.

My uses for this were pretty minimal, but I thought I'd post it in case someone else needed something like this.

*Topic:* <noautolink>%URLPARAM{"searchWeb" default="%WEB%"}% >
 %URLPARAM{"searchTopic" default="%TOPIC%"}%</noautolink><br />
*Permissions:*
%SEARCH{"   \* [#]{0,1}Set %URLPARAM{"searchPermissions" default=""}%" regex="on"
web="%URLPARAM{"searchWeb" default="%WEB%"}%" topic="%URLPARAM{"searchTopic" 
default="%TOPIC%"}%" nonoise="on" multiple="on" 
format="   * $pattern(.*   \* [#]{0,1}Set (.*? =[^\n]*).*)"}%
---
_Enter a Web.Topic name below to display the permissions set in it._ <br />
<form action="%SCRIPTURLPATH{view}%/%WEB%/%TOPIC%">
<input type="text" name="searchWeb" size="10" value="%URLPARAM{"searchWeb" default="Web"}%" />*.*
<input type="text" name="searchTopic" size="40" value="%URLPARAM{"searchTopic" default="Topic"}%" />&nbsp;
<select name="searchPermissions" size="1">
   <option value="ALLOW">Allow</option>
   <option value="DENY">Deny</option>
   <option value="(ALLOW|DENY)">Allow & Deny</option>
   <option value="" selected>All</option>
</select>
<input type="submit" class="twikiSubmit" value="Search Permissions" />
</form>

Environment

TWiki version: TWikiRelease04x00x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Ubuntu Linux 6.06
Web server: Apache 2
Perl version:  
Client OS:  
Web Browser:  
Categories: Permissions, Security, Search

-- MatthewCardozo - 25 Jun 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

-- MatthewCardozo - 25 Jun 2007

 
Change status to:
Topic revision: r1 - 2007-06-25 - MatthewCardozo
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.