From 2e635c6e97368f12d7c259afe9ab473494406105 Mon Sep 17 00:00:00 2001 From: yasuoka Date: Sun, 24 Sep 2023 06:09:35 +0000 Subject: [PATCH] Strip realm part for bsdauth. This is required and an exmaple usage of new radius_standard module. --- etc/examples/radiusd.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/examples/radiusd.conf b/etc/examples/radiusd.conf index 8dc94cd763b..00c92eb8336 100644 --- a/etc/examples/radiusd.conf +++ b/etc/examples/radiusd.conf @@ -1,4 +1,4 @@ -# $OpenBSD: radiusd.conf,v 1.4 2023/09/18 14:44:21 sobrado Exp $ +# $OpenBSD: radiusd.conf,v 1.5 2023/09/24 06:09:35 yasuoka Exp $ listen on 0.0.0.0 #listen on :: @@ -20,8 +20,12 @@ module load radius "/usr/libexec/radiusd/radiusd_radius" module set radius secret "testing123" module set radius server "127.0.0.1" +module load strip-realm "/usr/libexec/radiusd/radiusd_standard" +module set strip-realm strip-atmark-realm true + authenticate *@local { authenticate-by bsdauth + decorate-by strip-realm } authenticate *@example.com { authenticate-by radius -- 2.20.1