[RADIATOR] Win32::NetAdmin issue
Heikki Vatiainen
hvn at open.com.au
Thu Oct 28 16:22:27 UTC 2021
On 28.10.2021 16.25, Heikki Vatiainen wrote:
> I compared Radiator 4.25 and 4.23 AuthLSA.pm and I think the changes
> should not trigger this problem. In other words, I'd say the problem is
> simply that Win32::NetAdmin is not installed.
Hello Viktu,
I took another look at the changes and I think what I wrote above is not
correct. The problem you see can happen when you have AuthBy LSA without
Group parameter configured. When you do a Group check indirectly from
AuthBy FILE, Win32::NetAdmin is not loaded when it's needed.
A temporary fix for 4.24 and 4.25 is to edit
C:/Strawberry/perl/site/lib/Radius/AuthLSA.pm
The steps are:
1) Locate this line:
use Win32::Lsa;
2) Add one line just below it so that you have:
use Win32::Lsa;
use Win32::NetAdmin;
Configurations that use Group within AuthBy LSA are not affected. Fix
for this will be in the next release that will be out soon.
What happens is that Radiator 4.24 changed how Win32::NetAdmin is
loaded. When AuthBy LSA has parameter Group configured, Win32::NetAdmin
load is attempted immediately so that its absence can be logged when the
configuration is loaded. This had the unfortunate effect of breaking the
indirect use.
Thanks again for reporting this.
Heikki
--
Heikki Vatiainen <hvn at open.com.au>
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, TACACS+, PAM, Active Directory,
EAP, TLS, TTLS, PEAP, WiMAX, RSA, Vasco, Yubikey, HOTP, TOTP,
DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS, etc.
More information about the radiator
mailing list