Auth-Type in post-auth SQL insert
I'm pretty new to FreeRADIUS so I apologize if this is a really basic question. I've searched around quite a bit and have been unable to locate an answer. I've successfully configured FreeRADIUS to use a SQL driver for authentication checks as well as inserting records via the post-auth query. Is there a runtime variable that I can reference to save the Auth-Type used for authenticating the user during post-auth? I've tried what I thought to be the obvious (e.g. %{Auth-Type}) but that doesn't seem to be available (just inserts an empty string). Essentially, I'd like to catalog the type of authentication that was used for authorizing a user (assuming it was successful, of course). For example, user Joe authenticated via PAP. -brad
Brad Robel-Forrest wrote:
I've successfully configured FreeRADIUS to use a SQL driver for authentication checks
Huh? SQL doesn't do authentication. If you *can* list "sql" in the "authenticate" section, it's because you've edited the source. Don't do that.
Is there a runtime variable that I can reference to save the Auth-Type used for authenticating the user during post-auth? I've tried what I thought to be the obvious (e.g. %{Auth-Type}) but that doesn't seem to be available (just inserts an empty string).
It's in the check list, not the request list. See "man users", or doc/variables.txt.
Essentially, I'd like to catalog the type of authentication that was used for authorizing a user (assuming it was successful, of course). For example, user Joe authenticated via PAP.
Authentication type is *not* authentication protocol. Alan DeKok.
participants (2)
-
Alan DeKok -
Brad Robel-Forrest