On 20/02/13 12:47, Phil Mayers wrote:

...and then:

authorize {

Damn, sorry this is not right. The 2nd "update" will squash the return values.

You'll need:

authorize {
  # first, just check the cache, don't
  # create entries or set reply attrs
  update control {
    Cache-Status-Only = yes
  }
  otpcache

  if (ok) {
    # entry found in cache; set auth type to accept
    # and call cache again to get reply attrs
    update control {
      Auth-Type := Accept
      Cache-Status-Only !* ANY
    }
    otpcache
    ok
  }
  else {
    # future cache lookups here, and in post-auth,
    # should be normal ones
    update control {
      Cache-Status-Only !* ANY
    }
  }

  ...
}
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to