From 6f9a81341109e7cc031f09ca644255fcb36cbd83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Mon, 10 Mar 2008 09:10:55 +0000 Subject: [PATCH] Fixed radius auth module to not print debug information. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@380 44740490-163a-0410-bde0-09ae8108e29a --- www/auth/login-radius.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/www/auth/login-radius.php b/www/auth/login-radius.php index 3aadf28e5..f23b38d5d 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 ('='); -- GitLab