using unlang to rewrite framed-ip-address sent from LDAP 
    sebastien boucher 
    cannibalist at gmail.com
       
    Tue May  7 22:53:20 CEST 2013
    
    
  
hello, 
i am trying to rewrite the framed-ip-address information that are given to radius via ldap to a null value 
currently many of our users have a fixed framed-ip-address value of 255.255.255.254 , since we will now be using radius and mysql  to distribute IP i would like to change this value to nothing upon connection. 
i have tried this but was unsuccessful 
post-auth {
	reply_log
	sql-accounting
	exec
	Post-Auth-Type REJECT {
                attr_filter.access_reject
        }
	if (Framed-IP-Address =="255.255.255.254") {
       update control {
             Framed-IP-Address :="%{1.1.1.1}"
                }
        }
	sqlippool
}
debug tells me: 
++? if (Framed-IP-Address =="255.255.255.254")
    (Attribute Framed-IP-Address was not found)
? Evaluating (Framed-IP-Address =="255.255.255.254") -> FALSE
++? if (Framed-IP-Address =="255.255.255.254") -> FALSE
so of course i am wrong somewhere and i wondering if some of you guys could give me input or help or directions :) 
thanks
seb. 
    
    
More information about the Freeradius-Users
mailing list