Bug 1623458 - ovirt-engine-extension-aaa-ldap-setup generates incorrect config for LDAP setup using multiple servers with round robin request distribution
Summary: ovirt-engine-extension-aaa-ldap-setup generates incorrect config for LDAP set...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-extension-aaa-ldap
Version: 4.1.11
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.3.0
: ---
Assignee: Ondra Machacek
QA Contact: Petr Matyáš
URL:
Whiteboard:
Depends On:
Blocks: 1635198
TreeView+ depends on / blocked
 
Reported: 2018-08-29 12:21 UTC by Roman Hodain
Modified: 2021-09-09 15:27 UTC (History)
6 users (show)

Fixed In Version: ovirt-engine-extension-aaa-ldap-1.3.8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1635198 (view as bug list)
Environment:
Last Closed: 2019-05-08 12:35:33 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:
pmatyas: testing_plan_complete-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-43588 0 None None None 2021-09-09 15:27:23 UTC
Red Hat Product Errata RHEA-2019:1072 0 None None None 2019-05-08 12:35:39 UTC
oVirt gerrit 94005 0 'None' MERGED setup: Set correct port for round-robin ldaps conf. 2020-12-05 09:21:25 UTC

Description Roman Hodain 2018-08-29 12:21:27 UTC
Description of problem:
ovirt-engine-extension-aaa-ldap-setup generates to following properties file 

/etc/ovirt-engine/aaa/ldap-profile.properties
    include = <rfc2307-openldap.properties>


    pool.authz.auth.type = none
    pool.default.serverset.type = round-robin
    pool.default.serverset.round-robin.00.server = ldap01.example.com
    pool.default.serverset.round-robin.00.server = 636
    pool.default.serverset.round-robin.01.server = ldap02.example.com
    pool.default.serverset.round-robin.01.server = 636
    pool.default.serverset.round-robin.02.server = ldap03.example.com
    pool.default.serverset.round-robin.02.server = 636
    pool.default.ssl.enable = true
    pool.default.ssl.insecure = true

This is incorrect as the server is then set to 636 instead of the DNS record.

Version-Release number of selected component (if applicable):
ovirt-engine-extension-aaa-ldap-setup-1.3.7-1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. LDAP implementations: 8 (OpenLDAP RFC-2307 Schema)
2. Use DNS (Yes, No) [Yes]: Yes
3. Available policy method: 3 (Round-robin between multiple hosts)
4. Please enter space separated list of hosts: ldap01.example.com ldap02.example.com ldap03.example.com


Actual results:
Provided properties file

Expected results:
pool.default.serverset.round-robin.00.port = 636
pool.default.serverset.round-robin.01.port = 636
pool.default.serverset.round-robin.02.port = 636

Additional info:

Comment 2 Petr Matyáš 2018-10-11 12:07:46 UTC
Verified on ovirt-engine-extension-aaa-ldap-1.3.9-0.0.master.gitaeab284.el7.noarch

Comment 4 errata-xmlrpc 2019-05-08 12:35:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:1072


Note You need to log in before you can comment on or make changes to this bug.