-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LDAP authentication fails when using more than one host in LDAP configuration in RHEL6 and PHP >= 5.6 IUS #2906
Comments
I propose the following change that splits the hostname into an array and tries to connect one of the given servers after another. line 1152 of /usr/share/php/Icinga/Protocol/Ldap/LdapConnection.php
|
Hi, Please share your authentication.ini w/ the settings that fail. Make sure to remove sensitive information beforehand. Any chance to test our master branch? It may be the case that this bug has been fixed already. Best regards, |
Eric, that has nothing to do with the authentication.ini. But you asked for it, so here is my file:
|
Oops, yep that's true :) Please share the configuration of the LDAP resource . |
Eric, you seem to be right (very embarrasing). https://github.com/Icinga/icingaweb2/blob/master/library/Icinga/Protocol/Ldap/LdapConnection.php |
Related issue is #2645 |
Unfortunately I have to use prebuild RPMs as long as possible. Until now I didn't have the time to build up some reliable git knowledge. Just some basics. It's difficult enough to handle the director. I don't want to mess with something that I don't understand completely. Monitoring must always work. Or else I'm blindfolded. Perhaps if I find the time to build a test system....someday.... But it's good to know, that this bug will be fixed in the near future. The LDAP part in my resources.ini looks like this (working on RHEL6 with php-5.3.3): [icingaweb2-ldap User] [icingaweb2-ldap Group] |
Apart from this bug, the only reason why you've hit it was to upgrade PHP and Director. Stick with native PHP 5.3 and Director 1.3.1 for now and plan your upgrade to RHEL7 wisely, i.e. once a new Icinga Web 2 RPM release is out. |
The master branch won't help you in this case. If you really have to upgrade PHP on your servers, please use the Software Collections Packages. We do not actively support custom/community PHP packages. |
When updating a RHEL6 system from default Red Hat PHP 5.3.3 to 5.6 or greater from IUS Community repo LDAP authentication fails when using more than one host in the resource configuration.
When changing the configuration in icingaweb2 to mor than one host (space seperated list), I get
Validierung der Konfiguration schlug fehl: ldap_connect(): Could not create session handle: Bad parameter to an ldap routine
and
Validierungslog
NOTE: There might be an issue with the chosen encryption. Ensure that the LDAP-Server supports STARTTLS and that the LDAP-Client is configured to accept its certificate.
ldap_connect(): Could not create session handle: Bad parameter to an ldap routine
Both ldap servers in the list use STARTTLS in a configuration that worked before.
When I simply remove the second server from the list I get:
Validierungslog
Connect using STARTTLS
LDAP bind to ldaps-rzkj-3....successful
OpenLDAP
Supports STARTTLS: True
Default naming context: dc=.....
System is
RHEL6.9 x86_64,
httpd-2.2.15-60.el6_9.4.x86_64
icinga2-2.6.3-1.el6.x86_64
icingaweb2-2.4.1-1.el6.noarch
I've tested with version php56u and mod_php71u from IUS Community repository.
Regards
Berthold Cogel
The text was updated successfully, but these errors were encountered: