3.0.x: user-password length decoding sometimes wrong?

Stefano Mason stefano.mason at eng-mo.it
Mon Nov 30 16:39:53 CET 2015


 From Brocade switch:

Mon Nov 30 16:33:56 2015 : Debug: (1) Received Access-Request Id 4 from 
X.X.X.X:10185 to X.X.X.X:1812 length 93
Mon Nov 30 16:33:56 2015 : Debug: (1)   User-Name = "db00000"
Mon Nov 30 16:33:56 2015 : Debug: (1) User-Password = 
"db00000\000\000\000\000\000\000\000\000\031"
Mon Nov 30 16:33:56 2015 : Debug: (1)   NAS-IP-Address = xxx.xx.xx.x
Mon Nov 30 16:33:56 2015 : Debug: (1)   NAS-Identifier = "XXXXXXXXXX"
Mon Nov 30 16:33:56 2015 : Debug: (1)   Calling-Station-Id = "xxx.xx.xx.xx"
Mon Nov 30 16:33:56 2015 : Debug: (1)   NAS-Port = 9160
Mon Nov 30 16:33:56 2015 : Debug: (1)   NAS-Port-Type = Virtual
Mon Nov 30 16:33:56 2015 : Debug: (1) session-state: No State attribute
Mon Nov 30 16:33:56 2015 : Debug: (1) # Executing section authorize from 
file /etc/raddb/sites-enabled/default
Mon Nov 30 16:33:56 2015 : Debug: (1)   authorize {
Mon Nov 30 16:33:56 2015 : Debug: (1)     update request {
Mon Nov 30 16:33:56 2015 : Debug: (1)       EXPAND %{string:User-Password}
Mon Nov 30 16:33:56 2015 : Debug: (1)          --> db00000
Mon Nov 30 16:33:56 2015 : Debug: (1)       Tmp-String-0 := db00000
Mon Nov 30 16:33:56 2015 : Debug: (1)       EXPAND %{string:Tmp-String-0}
Mon Nov 30 16:33:56 2015 : Debug: (1)          --> db00000
Mon Nov 30 16:33:56 2015 : Debug: (1)       User-Password := db00000
Mon Nov 30 16:33:56 2015 : Debug: (1)       Overwriting value 
"db00000\000\000\000\000\000\000\000\000\031" with "db00000"
Mon Nov 30 16:33:56 2015 : Debug: (1)     } # update request = noop


Resolved in this way:

         update request {
                 Tmp-String-0 := "%{string:User-Password}"
                 User-Password := "%{string:Tmp-String-0}"
         }

Best regards.
Stefano


More information about the Freeradius-Users mailing list