Operators For Expressions - Sun Microsystems Netscape Enterprise Server Administrator's Manual

Table of Contents

Advertisement

ACL File Syntax
You can also restrict access by day of the week. Use the following three-letter
abbreviations to specify days of the week: Sun, Mon, Tue, Wed Thu, Fri, and
Sat.
The following statement allows access for users in the premium group any day
and any time. Users in the discount group get access all day on weekends and
on weekdays anytime except 8am-4:59pm.

Operators For Expressions

You can use various operators in attribute expressions. You can use
parentheses to delineate the order of precedence of the operators. With user,
group, dns, and ip, you can use the following operators:
• and
• or
• not
• = (equals)
• != (not equal to)
With timeofday and dayofweek, you can use the following additional
operators:
• greater than
• < less than
• = greater than or equal to
• <= less than or equal to
460 Netscape Enterprise Server Administrator's Guide
allow (read)
(group="guests") and
(timeofday<800 or timeofday=1700);
allow (read) (group="discount" and dayofweek="Sat,Sun") or
(group="discount" and (dayofweek="mon,tue,wed,thu,fri" and
(timeofday<0800 or timeofday=1700)))
or
(group="premium");

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Netscape Enterprise Server and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents