Re: NAS-IP-Address modified during Access-Request process
On Mon, Jun 22, 2009 at 23:08, Ivan Kalik <tnt@kalik.net> wrote:
I installed freeradius 2 but my problem is still there. To remember it :
I configured Freeradius to look in openldap directory to authenticate and authorize an user. The authentication phase is OK During the authorize phase, a ldap search is done : if the user is member of a group identified by the host ip he wants to connect, the user is authorized. The problem is here : freeradius receives an Access-Request packet with a NAS-IP-Address (the good one) and to search in the ldap, it doesn't send the ip received in the packet but another one !
Dynamic expansion for Ldap and SQL-Group doesn't work in users file. I can replicate this. But it works in unlang:
if(Ldap-Group == "%{NAS-IP-Address}) { ... }
will work just fine.
Ivan Kalik Kalik Informatika ISP
:) It works fine ! To help users who have the same problem, I put these lines in authorize section : if(Ldap-Group == "%{NAS-IP-Address}") { ok } else { reject } Thanks ! -- KeV
participants (1)
-
kevin leblanc