idp: when adding an IdP allow to override IdP options

Use of 'ipa idp-add --provider' was supposed to allow override scope and
other IdP options. The defaults are provided by the IdP template and
were actually not overridden. Fix this.

Fixes: https://pagure.io/freeipa/issue/9421
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
Alexander Bokovoy 2023-07-28 14:40:21 +03:00 committed by Florence Blanc-Renaud
parent c84c59c66f
commit 69e4397421

View File

@ -350,6 +350,9 @@ class idp_add(LDAPCreate):
name=self.options[s].cli_name,
error=_('value is missing'))
points[k] = template_str(v, elements)
elif k in elements:
points[k] = elements[k]
entry_attrs.update(points)
def get_options(self):