authorize {
authorized_macs
# if not found accept access
if (!ok) {
accept
}
update control {
Auth-Type := Accept
}
}
i think this is what i want. does this unlang look correct to you ?
Thanks / Regards
Russell Mike wrote:You can't just put "accept" into the configuration file.
> authorize {
>
> authorized_macs
>
> # if not found accept access
>
> if (!ok) {
>
> accept
What do you mean by that? What are the "accept and reject fields"?
> # Here I also want to say that if record found, look for accept and
> reject field in DB. i need little help
You have an idea as to what you want to do. But you're explaining it
using the idea itself... "I want to do stuff with stuff". Well...
that's not helpful.
The example in the Wiki shows how to force Auth-Type = Accept. Use that.
> it seems to be little tricky for me, once i have already said, accept if
> record NOT found.
Look for accept/reject WHERE?
> how can i say again look for (accept/reject) entry if
> record found.
If you want to put accept/reject into the authorized_macs file... just
do that. Add another field to the file. Do this by using a text
editor. Then, edit the "authorized_macs" module definition to add that
field.
All of this is documented in detail.