LDAP not working
Posted: Mon May 11, 2015 4:11 am
Hello,
I am using a community version 8.0.7
The installation worked fine, but LDAP doesn't seem to work. Following are the logs during authentication. I dont see it initiating LDAP authentication. Any suggestions?
Thanks,
Guru.
---------------[ 11-May-2015 21:01:44 +1000 [1431342103.277] (PID: 6406) ]---------------
DEBUG [L0438] [7ms]: [Function](): URI: /api/json/api.php?Class=APIAuthentication&Method=Login&v=2&MessageID=0bdac497-c624-318d-0f19-6060ad67c6c5 IP Address: 10.8.0.11
DEBUG [L0441] [7ms]: [Function](): USER-AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36
DEBUG [L0445] [7ms]: [Function](): Version: 8.0.7 Edition: 10 Production: 1 Database: Type: mysqli Name: ess Config: /var/www/html/ess/includes/../timetrex.ini.php Demo Mode: 0
DEBUG [L0163] [27ms]: TTDate::setTimeZone(): Setting TimeZone: Australia/Melbourne
DEBUG [L0224] [28ms]: [Function](): Handling JSON Call To API Factory: APIAuthentication Method: Login Message ID: 0bdac497-c624-318d-0f19-6060ad67c6c5
DEBUG [L0259] [28ms] Array: [Function](): Arguments: (Size: 41)
array(2) {
[0]=>
string(4) "guru"
[1]=>
string(9) "********"
}
DEBUG [L0283] [31ms]: [Function](): No SessionID or calling non-authenticated function...
DEBUG [L0462] [32ms]: TTi18n::chooseBestLocale(): Choosing Best Locale...
DEBUG [L0433] [32ms]: TTi18n::getBrowserLanguage(): HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
DEBUG [L0516] [32ms]: TTi18n::chooseBestLocale(): cSetting Locale: en_US
DEBUG [L0371] [32ms]: TTi18n::setLocale(): Generated/Passed In Locale: en_US
DEBUG [L0300] [32ms]: TTi18n::generateLocale(): Array of Locales to try in order for "en_US": en_US,en_US.UTF-8,en,en.UTF-8
DEBUG [L0258] [32ms]: TTi18n::tryLocale(): Found valid locale: en_US Default: 1
DEBUG [L0374] [32ms]: TTi18n::setLocale(): Attempting to set Locale(s) to: en_US Category: 6 Current Locale:
DEBUG [L0380] [32ms]: TTi18n::setLocale(): Setting currency/numeric Locale to: en_US
DEBUG [L0393] [36ms]: TTi18n::setLocale(): Setting translator to normalized locale: en_US
DEBUG [L0417] [36ms]: TTi18n::setLocale(): Set Master Locale To: en_US
DEBUG [L0516] [36ms]: TTi18n::chooseBestLocale(): cSetting Locale: en
DEBUG [L0371] [36ms]: TTi18n::setLocale(): Generated/Passed In Locale: en
DEBUG [L0300] [36ms]: TTi18n::generateLocale(): Array of Locales to try in order for "en": en,en.UTF-8,en_US,en_US.UTF-8
DEBUG [L0258] [36ms]: TTi18n::tryLocale(): Found valid locale: en_US Default: 1
DEBUG [L0374] [36ms]: TTi18n::setLocale(): Attempting to set Locale(s) to: en_US Category: 6 Current Locale: en_US
DEBUG [L0537] [36ms]: TTi18n::chooseBestLocale(): Unable to find and set a locale.
DEBUG [L0082] [36ms]: unauthenticatedInvokeService(): Handling UNAUTHENTICATED JSON Call To API Factory: APIAuthentication Method: Login Message ID: 0bdac497-c624-318d-0f19-6060ad67c6c5
DEBUG [L0054] [38ms]: APIAuthentication::Login(): User Name: guru Password Length: 9 Type: USER_NAME
DEBUG [L0608] [38ms]: Authentication::Login(): Login Type: USER_NAME
DEBUG [L0686] [53ms]: Authentication::Login(): Login Failed! Attempt: 2
DEBUG [L0828] [1063ms]: Validator::Error(): Validation Error: Label: user_name Value: "0" Msg: User Name or Password is incorrect
DEBUG [L0341] [1063ms] Array: APIFactory::returnHandler(): returnHandler v2 ERROR: 0
array(2) {
["api_retval"]=>
bool(false)
["api_details"]=>
array(7) {
["code"]=>
string(10) "VALIDATION"
["description"]=>
string(12) "INVALID DATA"
["record_details"]=>
array(3) {
["total"]=>
int(1)
["valid"]=>
int(0)
["invalid"]=>
int(1)
}
["user_generic_status_batch_id"]=>
bool(false)
["request"]=>
bool(false)
["pager"]=>
bool(false)
["details"]=>
array(1) {
[0]=>
array(1) {
["user_name"]=>
array(1) {
[0]=>
string(34) "User Name or Password is incorrect"
}
}
}
}
}
DEBUG [L0093] [1064ms]: ProgressBar::start(): start: '0bdac497-c624-318d-0f19-6060ad67c6c5' Iterations: 9999 Update Iterations: 9999 Key: 0bdac497-c624-318d-0f19-6060ad67c6c5(1431342104.3406) Message: INVALID DATA
DEBUG [L0287] [1064ms]: [Function](): Server Response Time: 1.0639040470123
---------------[ 11-May-2015 21:01:44 +1000 [1431342104.341] (PID: 6406) ]---------------
I am using a community version 8.0.7
The installation worked fine, but LDAP doesn't seem to work. Following are the logs during authentication. I dont see it initiating LDAP authentication. Any suggestions?
Thanks,
Guru.
---------------[ 11-May-2015 21:01:44 +1000 [1431342103.277] (PID: 6406) ]---------------
DEBUG [L0438] [7ms]: [Function](): URI: /api/json/api.php?Class=APIAuthentication&Method=Login&v=2&MessageID=0bdac497-c624-318d-0f19-6060ad67c6c5 IP Address: 10.8.0.11
DEBUG [L0441] [7ms]: [Function](): USER-AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36
DEBUG [L0445] [7ms]: [Function](): Version: 8.0.7 Edition: 10 Production: 1 Database: Type: mysqli Name: ess Config: /var/www/html/ess/includes/../timetrex.ini.php Demo Mode: 0
DEBUG [L0163] [27ms]: TTDate::setTimeZone(): Setting TimeZone: Australia/Melbourne
DEBUG [L0224] [28ms]: [Function](): Handling JSON Call To API Factory: APIAuthentication Method: Login Message ID: 0bdac497-c624-318d-0f19-6060ad67c6c5
DEBUG [L0259] [28ms] Array: [Function](): Arguments: (Size: 41)
array(2) {
[0]=>
string(4) "guru"
[1]=>
string(9) "********"
}
DEBUG [L0283] [31ms]: [Function](): No SessionID or calling non-authenticated function...
DEBUG [L0462] [32ms]: TTi18n::chooseBestLocale(): Choosing Best Locale...
DEBUG [L0433] [32ms]: TTi18n::getBrowserLanguage(): HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
DEBUG [L0516] [32ms]: TTi18n::chooseBestLocale(): cSetting Locale: en_US
DEBUG [L0371] [32ms]: TTi18n::setLocale(): Generated/Passed In Locale: en_US
DEBUG [L0300] [32ms]: TTi18n::generateLocale(): Array of Locales to try in order for "en_US": en_US,en_US.UTF-8,en,en.UTF-8
DEBUG [L0258] [32ms]: TTi18n::tryLocale(): Found valid locale: en_US Default: 1
DEBUG [L0374] [32ms]: TTi18n::setLocale(): Attempting to set Locale(s) to: en_US Category: 6 Current Locale:
DEBUG [L0380] [32ms]: TTi18n::setLocale(): Setting currency/numeric Locale to: en_US
DEBUG [L0393] [36ms]: TTi18n::setLocale(): Setting translator to normalized locale: en_US
DEBUG [L0417] [36ms]: TTi18n::setLocale(): Set Master Locale To: en_US
DEBUG [L0516] [36ms]: TTi18n::chooseBestLocale(): cSetting Locale: en
DEBUG [L0371] [36ms]: TTi18n::setLocale(): Generated/Passed In Locale: en
DEBUG [L0300] [36ms]: TTi18n::generateLocale(): Array of Locales to try in order for "en": en,en.UTF-8,en_US,en_US.UTF-8
DEBUG [L0258] [36ms]: TTi18n::tryLocale(): Found valid locale: en_US Default: 1
DEBUG [L0374] [36ms]: TTi18n::setLocale(): Attempting to set Locale(s) to: en_US Category: 6 Current Locale: en_US
DEBUG [L0537] [36ms]: TTi18n::chooseBestLocale(): Unable to find and set a locale.
DEBUG [L0082] [36ms]: unauthenticatedInvokeService(): Handling UNAUTHENTICATED JSON Call To API Factory: APIAuthentication Method: Login Message ID: 0bdac497-c624-318d-0f19-6060ad67c6c5
DEBUG [L0054] [38ms]: APIAuthentication::Login(): User Name: guru Password Length: 9 Type: USER_NAME
DEBUG [L0608] [38ms]: Authentication::Login(): Login Type: USER_NAME
DEBUG [L0686] [53ms]: Authentication::Login(): Login Failed! Attempt: 2
DEBUG [L0828] [1063ms]: Validator::Error(): Validation Error: Label: user_name Value: "0" Msg: User Name or Password is incorrect
DEBUG [L0341] [1063ms] Array: APIFactory::returnHandler(): returnHandler v2 ERROR: 0
array(2) {
["api_retval"]=>
bool(false)
["api_details"]=>
array(7) {
["code"]=>
string(10) "VALIDATION"
["description"]=>
string(12) "INVALID DATA"
["record_details"]=>
array(3) {
["total"]=>
int(1)
["valid"]=>
int(0)
["invalid"]=>
int(1)
}
["user_generic_status_batch_id"]=>
bool(false)
["request"]=>
bool(false)
["pager"]=>
bool(false)
["details"]=>
array(1) {
[0]=>
array(1) {
["user_name"]=>
array(1) {
[0]=>
string(34) "User Name or Password is incorrect"
}
}
}
}
}
DEBUG [L0093] [1064ms]: ProgressBar::start(): start: '0bdac497-c624-318d-0f19-6060ad67c6c5' Iterations: 9999 Update Iterations: 9999 Key: 0bdac497-c624-318d-0f19-6060ad67c6c5(1431342104.3406) Message: INVALID DATA
DEBUG [L0287] [1064ms]: [Function](): Server Response Time: 1.0639040470123
---------------[ 11-May-2015 21:01:44 +1000 [1431342104.341] (PID: 6406) ]---------------