Want to control the return value when DB did not give positive response.
Arran Cudbard-Bell
a.cudbardb at freeradius.org
Wed May 27 05:54:13 CEST 2015
> On 26 May 2015, at 23:49, Yanrui Hu <yhu at appannie.com> wrote:
>
> Here I have some customize requirement and not sure which file/function to
> change.
> Normally when DB connection timeout or there is no such user the DB return
> negative response to radius. and radius return REJECT to nas.
> I want to control these two situation and not sure which file to change,
> there are too many return value in the project related with REJECT.
man unlang
sql {
fail = 1
}
if (fail) {
# do things other than issuing an Access-Reject
}
if (notfound) {
# do something appropriate to not finding the user...
}
-Arran
Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS development team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 872 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20150526/b818eb6e/attachment.sig>
More information about the Freeradius-Devel
mailing list