[Kde-kiosk] KDE URL Restrictions Containg Variables

Russell Brown russell at lls.lls.com
Tue Jun 7 12:14:53 CEST 2005


Quoth Murray Trainer.....
>On Fri, 2005-06-03 at 15:08, Russell Brown wrote:
>> Quoth Murray Trainer.....
>> >
>> >rule_3[e]=list,,,,file,,/shares/group1,$GROUP1_ACCESS
>> >rule_4[e]=list,,,,file,,/shares/group2,$GROUP2_ACCESS
>> >rule_5[e]=list,,,,file,,/shares/group3,$GROUP3_ACCESS
>> 
>> You could try using an external script/program to produce the allowable
>> pathname. Then use a line like:
>> 
>> rule_3[$e]=list,,,,file,,$(/usr/local/bin/echo_group_shared_path),true
>
>What about something like:
>
>rule_3[$e]=list,,,,file,,/shares/group1,
>$(/usr/local/bin/is_member_of_group group1)
>
>where the script returns true/false.  I could then use the same script
>for each group share.

Yes - that'd work.  I suggested using the script to generate the
acceptable pathname on the assumption (from your example) that there
would be one allowable path per group and doing it this way you only
need one line in kdeglobals.

Its trivial either way :-)

-- 
 Regards,
     Russell
 --------------------------------------------------------------------
| Russell Brown          | MAIL: russell at lls.com PHONE: 01780 471800 |
| Lady Lodge Systems     | WWW Work: http://www.lls.com              |
| Peterborough, England  | WWW Play: http://www.ruffle.me.uk         |
 --------------------------------------------------------------------


More information about the kde-kiosk mailing list