Commit 39c716060f2de88317d89d8fa1eead144c52ce6a

Authored by Michael Joseph
1 parent 6f996dac

added more authentication tests


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@849 c91229c3-7414-0410-bfa2-8a42b809f60b
tests/authentication/authentication.php
... ... @@ -43,8 +43,13 @@ if (checkSession()) {
43 43  
44 44 echo "<b>Testing LDAP authentication</b>";
45 45 // user credentials to authenticate
46   - $sUserName = "michael";
47   - $sPassword = "pass123";
  46 + $sUserName = "michael"; $sPassword = "pass123";
  47 + echo "<ul><li>Authenticating ($sUserName, $sPassword) : " . ($oLdapAuth->checkPassword($sUserName, $sPassword) ? "true" : "false") . "</li></ul>";
  48 +
  49 + $sUserName = "rob"; $sPassword = "rob123";
  50 + echo "<ul><li>Authenticating ($sUserName, $sPassword) : " . ($oLdapAuth->checkPassword($sUserName, $sPassword) ? "true" : "false") . "</li></ul>";
  51 +
  52 + $sUserName = "mukhtar"; $sPassword = "mukhtar123";
48 53 echo "<ul><li>Authenticating ($sUserName, $sPassword) : " . ($oLdapAuth->checkPassword($sUserName, $sPassword) ? "true" : "false") . "</li></ul>";
49 54 }
50 55 ?>
... ...