From: yasuoka Date: Sun, 14 Jul 2024 16:22:59 +0000 (+0000) Subject: Add radiusd_file(5) and link it from radiusd.conf(5). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a04dd6c38cfab66512249736cd8d5d7914cb4f3e;p=openbsd Add radiusd_file(5) and link it from radiusd.conf(5). --- diff --git a/usr.sbin/radiusd/radiusd.conf.5 b/usr.sbin/radiusd/radiusd.conf.5 index e1f21cf00b1..1a313c2ba60 100644 --- a/usr.sbin/radiusd/radiusd.conf.5 +++ b/usr.sbin/radiusd/radiusd.conf.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: radiusd.conf.5,v 1.30 2024/07/14 16:09:23 yasuoka Exp $ +.\" $OpenBSD: radiusd.conf.5,v 1.31 2024/07/14 16:22:59 yasuoka Exp $ .\" .\" Copyright (c) 2014 Esdenera Networks GmbH .\" Copyright (c) 2014, 2023 Internet Initiative Japan Inc. @@ -89,6 +89,10 @@ The module provides conversion from EAP-MSCHAPv2 to MS-CHAPv2. See .Xr radiusd_eap2mschap 8 . +.It Do file Dc module +The +.Dq file +module provides authentication by a local file. .It Do ipcp Dc module The .Dq ipcp @@ -225,6 +229,7 @@ account * to standard .Xr radiusd 8 , .Xr radiusd_bsdauth 8 , .Xr radiusd_eap2mschap 8 , +.Xr radiusd_file 8 , .Xr radiusd_ipcp 8 , .Xr radiusd_radius 8 , .Xr radiusd_standard 8 diff --git a/usr.sbin/radiusd/radiusd_file.8 b/usr.sbin/radiusd/radiusd_file.8 new file mode 100644 index 00000000000..4ad65f80ffc --- /dev/null +++ b/usr.sbin/radiusd/radiusd_file.8 @@ -0,0 +1,62 @@ +.\" $OpenBSD: radiusd_file.8,v 1.1 2024/07/14 16:22:59 yasuoka Exp $ +.\" +.\" Copyright (c) 2024 YASUOKA Masahiko +.\" +.\" Permission to use, copy, modify, and distribute this software for any +.\" purpose with or without fee is hereby granted, provided that the above +.\" copyright notice and this permission notice appear in all copies. +.\" +.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +.\" +.\" The following requests are required for all man pages. +.\" +.\" Remove `\&' from the line below. +.Dd $Mdocdate: July 14 2024 $ +.Dt RADIUSD_FILE 8 +.Os +.Sh NAME +.Nm radiusd_file +.Nd provide authentication by a local file +.Sh SYNOPSIS +.\" For a program: program [-abc] file ... +.Nm radiusd_file +.Sh DESCRIPTION +The +.Nm +module is executed by +.Xr radiusd 8 +as a module to provide authentication from a file written in the syntax +described in +.Xr npppd-users 5 . +It supports PAP, CHAP, and MSCHAPv2 authentication methods. +.Sh CONFIGURATIONS +The +.Nm module +supports the following configuration key and value: +.Bl -tag -width Ds +.It Cm path Ar path +The path for the +.Ar file +written in the syntax described in +.Xr npppd-users 5 . +.El +.Sh FILES +.Bl -tag -width "/usr/libexec/radiusd/radiusd_file" -compact +.It Pa /usr/libexec/radiusd/radiusd_file +.Dq file +module executable. +.El +.Sh SEE ALSO +.Xr radiusd 8 , +.Xr npppd-users 5 +.Sh HISTORY +The +.Nm +daemon first appeared in +.Ox 7.6 . diff --git a/usr.sbin/radiusd/radiusd_file/Makefile b/usr.sbin/radiusd/radiusd_file/Makefile index aa248fc38f5..7c15471c29b 100644 --- a/usr.sbin/radiusd/radiusd_file/Makefile +++ b/usr.sbin/radiusd/radiusd_file/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.1 2024/07/14 13:44:30 yasuoka Exp $ +# $OpenBSD: Makefile,v 1.2 2024/07/14 16:22:59 yasuoka Exp $ PROG= radiusd_file BINDIR= /usr/libexec/radiusd @@ -6,7 +6,6 @@ SRCS= radiusd_file.c radiusd_module.c imsg_subr.c log.c chap_ms.c #SRCS+= radius_subr.c LDADD+= -lradius -lcrypto -lutil DPADD+= ${LIBRADIUS} ${LIBCRYPTO} ${LIBUTIL} -#MAN= radiusd_file.8 -NOMAN= # +MAN= radiusd_file.8 .include