diff --git a/www/auth/login-radius.php b/www/auth/login-radius.php index 3aadf28e5503d8d6782a52ea65496ed4b47be399..f23b38d5d3dc37b787d56c31750397c373bbf34e 100644 --- a/www/auth/login-radius.php +++ b/www/auth/login-radius.php @@ -72,7 +72,12 @@ if (isset($_POST['username'])) { $vendor = $resv['vendor']; $attrv = $resv['attr']; $datav = $resv['data']; - printf("Got Vendor Attr:%d %d Bytes %s\n", $attrv, strlen($datav), bin2hex($datav)); + + /** + * Uncomment this to debug vendor attributes. + */ + // printf("Got Vendor Attr:%d %d Bytes %s\n", $attrv, strlen($datav), bin2hex($datav)); + if ($vendor == $config->getValue('auth.radius.vendor') && $attrv == $config->getValue('auth.radius.vendor-attr')) $attrib_name = strtok ($datav,'='); $attrib_value = strtok ('=');