Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1635198

Summary: [downstream clone - 4.2.7] ovirt-engine-extension-aaa-ldap-setup generates incorrect config for LDAP setup using multiple servers with round robin request distribution
Product: Red Hat Enterprise Virtualization Manager Reporter: RHV bug bot <rhv-bugzilla-bot>
Component: ovirt-engine-extension-aaa-ldapAssignee: Ondra Machacek <omachace>
Status: CLOSED ERRATA QA Contact: Petr Matyáš <pmatyas>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.1.11CC: audgiri, lsurette, lsvaty, mgoldboi, mperina, Rhev-m-bugs
Target Milestone: ovirt-4.2.7Keywords: ZStream
Target Release: ---Flags: pmatyas: testing_plan_complete-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-extension-aaa-ldap-1.3.8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1623458 Environment:
Last Closed: 2018-11-05 15:04:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1623458    
Bug Blocks:    

Description RHV bug bot 2018-10-02 10:30:51 UTC
+++ This bug is a downstream clone. The original bug is: +++
+++   bug 1623458 +++
======================================================================

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:

(Originally by Roman Hodain)

Comment 2 Petr Matyáš 2018-10-04 13:48:45 UTC
Verified on ovirt-engine-extension-aaa-ldap-1.3.8-1.el7ev.noarch

Comment 4 errata-xmlrpc 2018-11-05 15:04:11 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/RHBA-2018:3485