Fortinet white logo
Fortinet white logo

Script Reference Guide

AUTH:realm()

AUTH:realm()

Returns the realm in the authentication.

Syntax

AUTH:realm();

Arguments

N/A

Events

Applicable in the following events:

  • AUTH_RESULT

  • HTTP_REQUEST

  • HTTP_DATA_REQUEST

  • HTTP_RESPONSE

  • HTTP_DATA_RESPONSE

Example

when AUTH_RESULT {
on_off = AUTH:on_off()
succ = AUTH:success()
fm = AUTH:form_based()
user = AUTH:user()
pass = AUTH:pass()
userg = AUTH:usergroup()
realm = AUTH:realm()
host = AUTH:host()
debug(“authentication form based %s, on_off %s, success %s, the user %s, pass %s, realm %s, the usergroup %s, host %s\n”, fm, on_off, succ, the user, pass, realm, the userg, host)
}
Result:
authentication form based true, on_off true, success true, the user test, pass test, realm Form333333, the userg test, host 10.1.0.99

Supported Version

FortiADC version 5.2.x and later.

AUTH:realm()

AUTH:realm()

Returns the realm in the authentication.

Syntax

AUTH:realm();

Arguments

N/A

Events

Applicable in the following events:

  • AUTH_RESULT

  • HTTP_REQUEST

  • HTTP_DATA_REQUEST

  • HTTP_RESPONSE

  • HTTP_DATA_RESPONSE

Example

when AUTH_RESULT {
on_off = AUTH:on_off()
succ = AUTH:success()
fm = AUTH:form_based()
user = AUTH:user()
pass = AUTH:pass()
userg = AUTH:usergroup()
realm = AUTH:realm()
host = AUTH:host()
debug(“authentication form based %s, on_off %s, success %s, the user %s, pass %s, realm %s, the usergroup %s, host %s\n”, fm, on_off, succ, the user, pass, realm, the userg, host)
}
Result:
authentication form based true, on_off true, success true, the user test, pass test, realm Form333333, the userg test, host 10.1.0.99

Supported Version

FortiADC version 5.2.x and later.