Skip to content
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

[dev.icinga.com #13539] Improve error handling and validation of multiple LDAP URIs #2645

Closed
icinga-migration opened this issue Dec 12, 2016 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/13539

Created by TheFlyingCorpse on 2016-12-12 21:47:36 +00:00

Assignee: (none)
Status: New
Target Version: (none)
Last Update: 2016-12-13 22:02:45 +00:00 (in Redmine)


Issue

refs #11809

I saw the documentation update and decided to try this out right away. Sadly it does not work.

I've tried the list below (each pre is its own attempt) which yields the following error message:

Validation Log

Connect using LDAPS
ldap_connect(): Could not create session handle: Bad parameter to an ldap routine

Attempted:

ldaps://rygmdc08.labdomain.net

ldaps://rygmdc08.labdomain.net ldaps://rygmdc12.labdomain.net

rygmdc08.labdomain.net rygmdc12.labdomain.net

Works:

rygmdc08.labdomain.net

rygmdc12.labdomain.net

About

Info about setup:
distro: Debian Jessie
icingaweb2 (package) version: 2.3.4+snapshot2016.12.12+1~jessie
php version: 5.6.27+dfsg-0+deb8u1
php5 ldap version: 5.6.27+dfsg-0+deb8u1

This is attempted against AD with the following resource config(which does work when using either of the servers as a single fqdn to ldap server:

[LABDomain-LDAPS]
type = "ldap"
hostname = "rygmdc08.labdomain.net"
port = "636"
encryption = "ldaps"
root_dn = "dc=labdomain,dc=net"
bind_dn = "CN=svcIcingaWeb2,OU=ServiceAccounts,OU=Admins,OU=RYG,DC=labdomain,DC=net"
bind_pw = "xxxx"

Relations:

@icinga-migration
Copy link
Author

Updated by mfrosch on 2016-12-13 12:54:00 +00:00

  • Relates set to 11809

@icinga-migration
Copy link
Author

Updated by elippmann on 2016-12-13 12:56:39 +00:00

Hi Rune,

Please set encryption to none and use the following for the hostname:

ldaps://rygmdc08.labdomain.net ldaps://rygmdc12.labdomain.net

This should work.

Best regards,
Eric

@icinga-migration
Copy link
Author

Updated by TheFlyingCorpse on 2016-12-13 22:02:45 +00:00

Setting the encryption type to "none" makes it possible to use multiple ldap hostnames. I did not see that in the documentation :)

@icinga-migration icinga-migration added the bug Something isn't working label Jan 17, 2017
@nilmerg nilmerg self-assigned this Feb 1, 2017
@nilmerg nilmerg added this to the 2.5.0 milestone Feb 1, 2017
@nilmerg nilmerg changed the title [dev.icinga.com #13539] IcingaWeb2 does not support multiple ldap servers in the same field [dev.icinga.com #13539] Improve error handling and validation of multiple LDAP URIs Feb 2, 2017
nilmerg added a commit that referenced this issue Feb 2, 2017
@nilmerg nilmerg closed this as completed in 5b4de83 Feb 2, 2017
@lippserd lippserd modified the milestones: 2.5.0, 2.4.2 Sep 20, 2017
lippserd pushed a commit that referenced this issue Sep 20, 2017
…d-validation-of-multiple-ldap-uris-2645

fixes #2645

(cherry picked from commit 5b4de83)
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants