Commit bb64a26197ef4a7088fab2cdb47d8cd4c2d4dbee

Authored by michael
1 parent f09527d6

added ldap auth test


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@842 c91229c3-7414-0410-bfa2-8a42b809f60b
tests/authentication/authentication.php
... ... @@ -41,5 +41,10 @@ if (checkSession()) {
41 41 $aResults = $oLdapAuth->searchUsers($sSearch, $aAttributes);
42 42 echo "<li><pre>" . arrayToString($aResults) . "</pre></li></ul>";
43 43  
  44 + echo "<b>Testing LDAP authentication</b>";
  45 + // user credentials to authenticate
  46 + $sUserName = "michael";
  47 + $sPassword = "pass123";
  48 + echo "<ul><li>Authenticating ($sUserName, $sPassword) : " . $oLdapAuth->checkPass($sUserName, $sPassword) . "</li></ul>";
44 49 }
45 50 ?>
... ...