Re: Suppress radpostauth password logging with unlang variable reference

Sam Hutchings <[email protected]> Mon, 18 May 2026 17:15:41 +0100
Newsgroups gmane.comp.freeradius.user
Message-ID <CABAo4zkpwFsT2eY=xjKkQa9T+S_iMxVfvhEoRrj-mSznw5Yk0A@mail.gmail.com>
>   You have to check for a specific value:
>
>         if ("${log.auth_goodpass}" == "yes") {
>                 ...
>
>   You also can't use a "suppress" block in the middle of an unlang processing section.  You have to use "update" to remove User-Password from the request:
>
>         update request {
>                 User-Password !* ANY
>         }
>
>   Since the password isn't used for anything after post-auth, it's safe to delete it.

Alan, thank you for the advice and unlang code; this is working as expected.

I was attempting to use the detail module example for 'suppress'.

I have gone through the unlang documentation further, which I now
hopefully have a better understanding, especially keywords!
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html