85ce7ac OpenLDAP 2.6+: use only -H option to specify LDAP url

Authored and Committed by abbra 2 years ago
    OpenLDAP 2.6+: use only -H option to specify LDAP url
    
    OpenLDAP 2.6+ finally deprecated -h and -p options in all its command
    line tools. They are not allowed anymore and cause ldap* tools to stop
    hard with 'unknown option' error.
    
    Fix this by always using -H url option instead. Deriving default value
    for -H url from the configuration file still works, it is only -h and -p
    that were deprecated.
    
    See also: https://bugs.openldap.org/show_bug.cgi?id=8618
    
    Fixes: https://pagure.io/freeipa/issue/9106
    
    Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
    Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
    Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>