Anonymous | Login | 2024-11-23 00:55 MST |
Main | My View | View Issues | Change Log | Roadmap | Repositories |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0007541 | ClearOS | webconfig-httpd | public | 2016-03-02 20:20 | 2016-07-26 04:56 | ||||
Reporter | user2 | ||||||||
Assigned To | bchambers | ||||||||
Priority | high | Severity | major | Reproducibility | have not tried | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | 7.2.0 Updates | Fixed in Version | 7.2.0 Updates | ||||||
Summary | 0007541: Webconfig unable to connect to LDAP - Account system is offline | ||||||||
Description | The _bind() method in /usr/clearos/apps/ldap/libraries/LDAP_Client.php is used to connect to LDAP (OpenLDAP or Samba Directory). From time to time, we have seen systems that have failed to bind to LDAP which in turn generates a "Account system is offline" warning in webconfig. Strangely, the exact same method call using a simple command line test script works just fine. Turning up the PHP LDAP debug is possible by adding the following to the LDAP_Client.php code: ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7); With this debug in place, the following is shown in the /var/log/webconfig/error.log ldap_bind_s ldap_simple_bind_s ldap_sasl_bind_s ldap_sasl_bind ldap_send_initial_request ldap_new_connection 1 1 0 ldap_int_open_connection ldap_connect_to_host: TCP 127.0.0.1:389 ldap_connect_to_host: getaddrinfo failed: Address family for hostname not supported ldap_err2string The "getaddrinfo failed" warning is... odd! | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | ||||||
|
Notes | |
(0003561) dloper (administrator) 2016-07-07 12:40 |
Create dialog box similar to ssl cert error that restarts webconfig. |
(0003621) bchambers (administrator) 2016-07-08 15:37 edited on: 2016-07-14 12:33 |
Possible cause is that we're not closing ldap connections...ever. Try closing connections with __destruct() function...eg: In /usr/clearos/apps/ldap/libraries/LDAP_Client.php add the following function after the __construct(..) function: /** * Performs LDAP close. * * @return void */ public function __destruct() { $this->close(); } |
Issue History | |||
Date Modified | Username | Field | Change |
2016-03-02 20:20 | user2 | New Issue | |
2016-03-02 20:25 | user2 | Status | new => confirmed |
2016-03-03 11:47 | user2 | Issue cloned: 0007551 | |
2016-03-03 11:47 | user2 | Relationship added | related to 0007551 |
2016-06-21 09:18 | user2 | Priority | normal => high |
2016-07-07 12:40 | dloper | Note Added: 0003561 | |
2016-07-07 12:40 | bchambers | Assigned To | => bchambers |
2016-07-07 12:40 | bchambers | Status | confirmed => assigned |
2016-07-08 09:40 | bchambers | Severity | minor => major |
2016-07-08 15:37 | bchambers | Note Added: 0003621 | |
2016-07-14 12:33 | bchambers | Note Edited: 0003621 | View Revisions |
2016-07-26 04:54 | bchambers | Status | assigned => acknowledged |
2016-07-26 04:55 | bchambers | Status | acknowledged => confirmed |
2016-07-26 04:56 | bchambers | Status | confirmed => resolved |
2016-07-26 04:56 | bchambers | Fixed in Version | => 7.2.0 Updates |
2016-07-26 04:56 | bchambers | Resolution | open => fixed |
2016-07-26 04:56 | bchambers | Status | resolved => closed |