OK.
Thanks for your replies.
I now seem to be past the issues of the "file" module.
---
# radiusd -d -f /etc/radius/radiusd.conf
2024-08-17 00:28:08:DEBUG: Module `file' started successfully
2024-08-17 00:28:08:INFO: radius: Use [redacted]:34208 to send requests
for 10.11.2.75:1812
2024-08-17 00:28:08:DEBUG: Module `radius' started successfully
2024-08-17 00:28:08:WARNING: Failed to get reply from module `radius':
imsg_sync_read: Interrupted system call
2024-08-17 00:28:08:DEBUG: Module `radius' started successfully
2024-08-17 00:28:08:DEBUG: Module `strip-realm' started successfully
2024-08-17 00:28:08:DEBUG: Received SIGCHLD
2024-08-17 00:28:08:WARNING: module `file'(pid=73329) exited with status 1
2024-08-17 00:28:08:WARNING: exiting on error
2024-08-17 00:28:08:INFO: Stop listening on [redacted]/udp
---
But there seem to be other issues.
That's for another day.
Many thanks for your awesome support.
Most grateful.
On 8/16/2024 11:11 PM, YASUOKA Masahiko wrote:
> Hi,
>
> On Fri, 16 Aug 2024 19:29:58 -0400
> Mike <the.li...@mgm51.com> wrote:
>> It's me again... :)
>>
>> OK, working in OpenBSD [hostname] 7.6 GENERIC.MP#247 amd64
>>
>>
>> I was able to get bsdauth to work successfully.
>>
>> So, now I have moved to looking at file auth.
>>
>> In man radiusd_file I see...
>> ---
>> CONFIGURATIONS
>> The module supports the following configuration key and value:
>>
>> path path
>> The path for the file written in the syntax described in
>> npppd-users(5).
>> ---
>>
>>
>> So, in my radiusd.conf I place:
>>
>> ---
>> module load file "/usr/libexec/radiusd/radiusd_file path
>> /etc/radius/radiusd.users"
>> ---
>
> You needed to configure if you use the old syntax.
>
> module load file "/usr/libexec/radiusd/radiusd_file"
> module set file path "/etc/radiusd/radiusd.users"
>
> But, I'll recommend you to use new syntax for 7.6 and after,
>
> module file {
> set path "/etc/radiusd/radiusd.users"
> }
>
> Now module path of /usr/libexec... can be omitted.
>
> As an exmaple for users who want to use a local file,
>
> For users who want to use radiusd for iked,
>
> ---
> client 127.0.0.1/32 {
> secret "SECRET"
> }
>
> module file {
> set path "/etc/npppd/npppd-users"
> }
> module eap2mschap
>
> authentication-filter * by eap2mschap
> authenticate * by file
> ---
>
>> And I see ...
>>
>> ---
>> # radiusd -d -f /etc/radius/radiusd.conf
>> Failed to execute /usr/libexec/radiusd/radiusd_file path
>> /etc/radius/radiusd.users: No such file or directory
>>
>> Could not load module `file': module didn't respond
>> /etc/radius/radiusd.conf:28: module `file' is not found
>> radiusd: config error
>>
>> [root@t05-openbsd76 /etc/radius] # ls -al /etc/radius/radiusd.users
>> -rw-r--r-- 1 root wheel 391 Aug 16 18:51 /etc/radius/radiusd.users
>> ---
>>
>> Where have I gone astray?
>>
>> (suggestion, maybe provide an example in the radiusd_file man page to
>> show how the syntax for the file path should be presented.)
>
> Yes, I wrote an example in
> https://man.openbsd.org/radiusd_eap2mschap.8
> But I'm exhausted at there :). I'll update the man pages and examples
> in few weeks. Thanks,
>