Chetan Gaonker | 7f4bf74 | 2016-05-04 15:56:08 -0700 | [diff] [blame] | 1 | # -*- text -*- |
| 2 | # |
| 3 | # $Id: de3f13089d8951f4c822ebc4007df58e0487de14 $ |
| 4 | |
| 5 | # |
| 6 | # The "always" module is here for debugging purposes, or |
| 7 | # for use in complex policies. |
| 8 | # Instance simply returns the same result, always, without |
| 9 | # doing anything. |
| 10 | # |
| 11 | # rcode may be one of the following values: |
| 12 | # - reject - Reject the user. |
| 13 | # - fail - Simulate or indicate a failure. |
| 14 | # - ok - Simulate or indicate a success. |
| 15 | # - handled - Indicate that the request has been handled, |
| 16 | # stop processing, and send response if set. |
| 17 | # - invalid - Indicate that the request is invalid. |
| 18 | # - userlock - Indicate that the user account has been |
| 19 | # locked out. |
| 20 | # - notfound - Indicate that a user account can't be found. |
| 21 | # - noop - Simulate a no-op. |
| 22 | # - updated - Indicate that the request has been updated. |
| 23 | # |
| 24 | # If an instance is listed in a session {} section, |
| 25 | # this simulates a user having <integer> sessions. |
| 26 | # |
| 27 | # simulcount = <integer> |
| 28 | # |
| 29 | # If an instance is listed in a session {} section, |
| 30 | # this simulates the user having multilink |
| 31 | # sessions. |
| 32 | # |
| 33 | # mpp = <integer> |
| 34 | # |
| 35 | always reject { |
| 36 | rcode = reject |
| 37 | } |
| 38 | always fail { |
| 39 | rcode = fail |
| 40 | } |
| 41 | always ok { |
| 42 | rcode = ok |
| 43 | } |
| 44 | always handled { |
| 45 | rcode = handled |
| 46 | } |
| 47 | always invalid { |
| 48 | rcode = invalid |
| 49 | } |
| 50 | always userlock { |
| 51 | rcode = userlock |
| 52 | } |
| 53 | always notfound { |
| 54 | rcode = notfound |
| 55 | } |
| 56 | always noop { |
| 57 | rcode = noop |
| 58 | } |
| 59 | always updated { |
| 60 | rcode = updated |
| 61 | } |