-/* $OpenBSD: parse.y,v 1.14 2023/08/18 06:37:20 yasuoka Exp $ */
+/* $OpenBSD: parse.y,v 1.15 2023/09/04 12:28:18 yasuoka Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
%type <v.prefix> prefix
%type <v.yesno> yesno
%type <v.string> strnum
+%type <v.string> key
%%
grammar : /* empty */
free($4);
TAILQ_INSERT_TAIL(&conf->module, module, next);
}
- | MODULE SET STRING STRING str_l {
+ | MODULE SET STRING key str_l {
struct radiusd_module *module;
module = find_module($3);
free_str_l(&$5);
}
;
+
+key : STRING
+ | SECRET { $$ = strdup("secret"); }
+ ;
+
authenticate : AUTHENTICATE {
radiusd_authentication_init(&authen);
} str_l optnl '{' authopts '}' {
-.\" $OpenBSD: radiusd.conf.5,v 1.15 2022/12/13 00:59:53 yasuoka Exp $
+.\" $OpenBSD: radiusd.conf.5,v 1.16 2023/09/04 12:28:18 yasuoka Exp $
.\"
.\" Copyright (c) 2014 Esdenera Networks GmbH
.\" Copyright (c) 2014 Internet Initiative Japan Inc.
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: December 13 2022 $
+.Dd $Mdocdate: September 4 2023 $
.Dt RADIUSD.CONF 5
.Os
.Sh NAME
msgauth-required yes
}
-module load "bsdauth" "/usr/libexec/radiusd/radiusd_bsdauth"
-module set "bsdauth" "restrict-group" "operator"
+module load bsdauth "/usr/libexec/radiusd/radiusd_bsdauth"
+module set bsdauth restrict-group "operator"
-module load "radius" "/usr/libexec/radiusd/radiusd_radius"
-module set "radius" "secret" "testing123"
-module set "radius" "server" "127.0.0.1"
+module load radius "/usr/libexec/radiusd/radiusd_radius"
+module set radius secret "testing123"
+module set radius server "127.0.0.1"
authenticate *@example.com {
- authenticate-by "radius"
+ authenticate-by radius
}
authenticate * {
- authenticate-by "bsdauth"
+ authenticate-by bsdauth
}
.Ed
.Sh SEE ALSO