This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Getting Started / Network SysAdmin Guide / The Mathematica License Manager / Restricting Licenses /

5.5.2 Sample Restriction Scripts

The following examples illustrate the key features of the new restriction scripts.

Scripts without Groups

The following script will allow a Mathematica checkout provided it is not from host1 or user1.

AuthGroupFile C:\Program Files\Wolfram Research\MathLM\mathlmgroup.txt

AuthName Sample



order allow, deny

allow from all

deny from host1

allow user all

deny user user1

The following script will only allow a checkout from user1 and host1.

AuthGroupFile C:\Program Files\Wolfram Research\MathLM\mathlmgroup.txt

AuthName Sample



order deny, allow

deny from all

allow from host1

deny user all

allow user user1

Scripts with Groups

The following script will allow a checkout from all hosts or users except user1 through user10 and host1 through host4.

AuthGroupFile C:\Program Files\Wolfram Research\MathLM\mathlmgroup.txt

AuthName Sample



order allow, deny

allow from all

deny from host1

allow user all

deny group group1 group2

deny machinegroup group3

This is the sample file, mathlmgroup.txt, used in the above example. It defines two user groups and one machine group.

------------------------------------

group1: user1 user2 user3 user4

group2: user5 user6 user7 user8 user9 user10

group3: host2 host3 host4

-------------------------------------