ソースを参照

#1130 CAS authentication security leak when cas_memberof is left empty (already committed into branch 2.1.0)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3685 a333f486-631f-4898-b8df-5754b55c2be0
romainq 9 年 前
コミット
8d93c95d0d
1 ファイル変更3 行追加2 行削除
  1. 3 2
      core/userrights.class.inc.php

+ 3 - 2
core/userrights.class.inc.php

@@ -1303,8 +1303,9 @@ class CAS_SelfRegister implements iSelfRegister
 		}
 		else
 		{
-			// No membership required, anybody will pass
-			$bFound = true;
+			// No membership: no way to create the user that should exist prior to authentication
+			phpCAS::log("User ".phpCAS::getUser().": missing user account in iTop (or iTop badly configured, Cf setting cas_memberof)");
+			$bFound = false;
 		}
 		
 		if (!$bFound)