1. Kayako Download customers: we will continue to develop and support Kayako Download beyond July 2017, alongside the new Kayako for existing customers.

    Find out more.

  2. The forum you are viewing relates to Kayako Classic. If you signed up or upgraded to the new Kayako (after the 4th July 2016), the information in this thread may not apply to you. You can visit the forums for the new Kayako here.

PHP AD LDAP Authenticator "Invalid data provided: 1" error

Discussion in 'LoginShare' started by rdrewniak, Oct 1, 2012.

  1. rdrewniak

    rdrewniak New Member

    Hello. I'm in the process of trying to set up the PHP AD LDAP Authenticator and have encountered some MAJOR issues.

    after following the installation instructions TO THE LETTER, I repeatedly get the exact same (horribly obscure) "Invalid data provided: 1" error. I followed the Troubleshooting guide TO THE LETTER in an attempt to generate the XML error data. However, when I try to log in again after going through the guide (and getting the same error), nothing shows up in the ldap/logs directory (whose permissions ARE set to 777).

    The config.php file reads as such...

    PHP:
    <?php
     
    /**
    * Please read the wiki first!
    * http://forge.kayako.com/projects/ad-ldap-authenticator/wiki
    */
    //#########################################################################################
     
    /**
    * YOU MUST CHANGE THESE FOR THIS TO WORK
    */
     
    /**
    * LDAP domain info
    * AD Prefix => Base DN
    * array('@mydomain.local' => 'DC=mydomain,DC=local')
    */
    $ldap_domain_info = array('@mic.local' => 'DC=mic,DC=local');
     
    /**
    * Domain controller(s).  You can use names or IPs
    * You can have more than one domain server by using
    * array('dc01.mydomain.local', 'dc02.mydomain.local', 'dc03.mydomain.local');
    */
    $ldap_domain_controllers = array('10.1.120.140');
     
    /**
    * Change for AD staff groups a user must be in to login
    * AD_Group => Kayako_Staff_Team
    * Example:
    *    $staff_groups = array('IS Group' => 'IS');
    * This is required only if you are using this for staff
    */
    //$staff_groups = array('Group' => 'Staff');
     
    //Everything below here is optional
    //#########################################################################################
     
    /**
    * Change for valid AD user groups (see KAYAKO_LDAP_ERROR_USERGROUP as well)
    * AD_Group => Kayako_User_Group
    * Example:
    *    $user_groups = array('Customer Service' => 'CS');
    * This is not required for a user!!
    */
    $user_groups = array();
     
    /**
    * Change to include any AD groups you want the user to be in to authenticate
    * Example:
    *  $valid_user_groups = array('Customer Service', 'IT');
    * If they are not in one of these groups they will not be able to login
    */
    $valid_user_groups = array();
     
    /**
    * Change to false if you want users not in the $user_group to still be able to login
    */
    define('KAYAKO_LDAP_ERROR_USERGROUP'false);
     
    /**
    * If more than one domain controller is used adLDAP will attempt
    * to connect to one of the controllers.  If failed it will try another.
    * If set to false it will use the default behavior which is to try to connect
    * to a controller no matter what.  If failed it will NOT try another server
    */
    define('KAYAKO_LDAP_VERIFY_CONTROLLER'true);
     
    /**
    * Change to true to enable testing mode
    * If left disabled username and password is ignored
    */
    define('KAYAKO_LDAP_TEST'false);
     
    /**
    * Change to true to show all errors & warnings
    */
    define('KAYAKO_LDAP_SHOW_ERRORS'true);
     
    /**
    * Change to true to enable logging mode
    * Your ldap/log directory must be writable
    */
    define('KAYAKO_LDAP_LOG'true);
     
    /**
    * Logs the outgoing XML
    * Logging must be enable for this to work
    */
    define('KAYAKO_LDAP_LOG_XML'true);
     
    /**
    * Attempts to log everything that is displayed to the screen
    * Logging must be enable for this to work
    */
    define('KAYAKO_LDAP_LOG_OUTPUT'true);
     
    /**
    * Enter values to test with
    */
    define('KAYAKO_LDAP_USERNAME''username');
    define('KAYAKO_LDAP_PASSWORD''password');
     
    /**
    * Change to false if you do not want to try to get mobile or home number if the telephone number is empty
    */
    define('KAYAKO_LDAP_PHONE_NUMBER'true);
     
    /**
    * Change to false if you do not want to import AD Department to Organization in the user's profile
    */
    define('KAYAKO_LDAP_IMPORT_DEPARTMENT'true);
     
    /**
    * Change to false if you do not want to import AD Job Title to Title/Position in the user's profile
    */
    define('KAYAKO_LDAP_IMPORT_TITLE'true);
    The "logs" Within Kayako I get numerous "Error Logs" appearing, saying:



    After tirelessly searching the forums and the wiki, I've still come up with nothing. I am absolutely at my wit's end. Is there anyone out there that can help point me in the right direction? Can someone at least help me figure out why I'm not generating the XML error reports?
     
  2. Drew Keller

    Drew Keller Just one person in a world of millions.

  3. Liam Deeney

    Liam Deeney New Member

    This is an old thread however for people like me who have just come across the same - the solution is to put the "adLDAP.php" file in the route of the kayako website (where the index.php is) - you then need to go into this file and set your server details in there too. This is not documented anywhere at all even now and caused me a lot of unnecessary time and effort to sort out.
     

Share This Page