« Previous - Version 8/14 (diff) - Next » - Current version
Bryan Heath, 06/08/2012 04:13 pm


Troubleshooting

If you are having issues here are some steps to try and help you figure out what is going on.

After you have read and tried all these you can post your issue on the forum:
http://forums.kayako.com/threads/php-ad-ldap-authenticator.24269/

Please remember to UNDO all the testing changes before going live!!!!!

First step

Read and check all the Installation, Setup and Configure steps. Many of the issues people have is they didnt follow each step correctly.

Enable logging

  • First make sure that /ldap/log/ is writable
  • Open the ldap/config.php file
  • Find:
    • define('KAYAKO_LDAP_LOG', false);
  • Change to:
    • define('KAYAKO_LDAP_LOG', true);
  • Now logging is enabled. You can now try to login again, even if you know it will not work. However if you go to /ldap/log/ you should see log.txt file. In it there should be a log of what is going on. This should help you track down the problem.

Enable testing

  • Open the ldap/config.php file
  • Find:
    define('KAYAKO_LDAP_USERNAME', 'username');
    define('KAYAKO_LDAP_PASSWORD', 'password');
  • Change the username and password to known good AD account (preferably your own). So it should look like:
    define('KAYAKO_LDAP_USERNAME', 'administrator');
    define('KAYAKO_LDAP_PASSWORD', 'thepassword');
  • Find:
    • define('KAYAKO_LDAP_TEST', false);
  • Change to:
    • define('KAYAKO_LDAP_TEST', true);
  • Now you are in testing mode. If you go to the ldap.php you can now test those credentials and see if they work. If they do you should get a valid XML result.

Try the ldap.html

In the tools folder you will find ldap.hml. If you upload it and go to it, it will allow you to test different ldap users and see if you get a valid XML.

This is currently setup for testing users. If you want to test staff:

  • Open ldap.html
  • Find:
    • <form action="ldap.php" method="post">
  • Replace with:
    • <form action="ldap.php?type=staff" method="post">