From: Maxim Mamontov Date: Wed, 21 Sep 2011 16:34:47 +0000 (+0300) Subject: Fix radius plugin authorization X-Git-Tag: 2.408-rc2~2 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/a228b24c7d126de4553fc2bbcae462a9533949db?ds=sidebyside Fix radius plugin authorization --- diff --git a/projects/stargazer/plugins/other/radius/radius.cpp b/projects/stargazer/plugins/other/radius/radius.cpp index 18c18816..480e6f16 100644 --- a/projects/stargazer/plugins/other/radius/radius.cpp +++ b/projects/stargazer/plugins/other/radius/radius.cpp @@ -463,7 +463,7 @@ if (CanAcctService((char *)packet->service)) return -1; } USER_IPS ips = ui->GetProperty().ips; - if (users->Authorize(ui->GetLogin(), ips[0].ip, 0xffFFffFF, this)) + if (!users->Authorize(ui->GetLogin(), ips[0].ip, 0xffFFffFF, this)) { printfd(__FILE__, "RADIUS::ProcessAcctStartPacket cannot authorize user '%s'\n", packet->login); packet->packetType = RAD_REJECT_PACKET;