[freeipa PR#3008][opened] [Backport ipa-4-6] Bypass D-BUS interface definition deficiences for trust-fetch-domains
by abbra
URL: https://github.com/freeipa/freeipa/pull/3008
Author: abbra
Title: #3008: [Backport ipa-4-6] Bypass D-BUS interface definition deficiences for trust-fetch-domains
Action: opened
PR body:
"""
In oddjobd it is possible to pass arguments as command line or on the
stdin. We use command line to pass them but the way oddjobd registers
the D-BUS method signatures is by specifying all arguments as mandatory.
Internally, oddjobd simply ignores if you passed less arguments than
specified in the D-BUS defition. Unfortunately, it is not possible to
specify less than maximum due to D-BUS seeing all arguments in the
list (30 is defined for the trust-fetch-domains).
To pass options, have to pad a list of arguments to maximum with empty
strings and then filter out unneeded ones in the script. Option parser
already removes all options from the list of arguments so all we need to
do is to take our actual arguments. In case of trust-fetch-domains, it
is the name of the domain so we can only care about args[0].
Fixes: https://pagure.io/freeipa/issue/7903
Signed-off-by: Alexander Bokovoy <abokovoy(a)redhat.com>
(cherry picked from commit add6180ae5c5771b0b0f1c743df069ece4256512)
"""
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/3008/head:pr3008
git checkout pr3008
5 years
[freeipa PR#3003][opened] Bypass D-BUS interface definition deficiencies for trust-fetch-domains
by abbra
URL: https://github.com/freeipa/freeipa/pull/3003
Author: abbra
Title: #3003: Bypass D-BUS interface definition deficiencies for trust-fetch-domains
Action: opened
PR body:
"""
In oddjobd it is possible to pass arguments as command line or on the
stdin. We use command line to pass them but the way oddjobd registers
the D-BUS method signatures is by specifying all arguments as mandatory.
Internally, oddjobd simply ignores if you passed less arguments than
specified in the D-BUS defition. Unfortunately, it is not possible to
specify less than maximum due to D-BUS seeing all arguments in the
list (30 is defined for the trust-fetch-domains).
To pass options, have to pad a list of arguments to maximum with empty
strings and then filter out unneeded ones in the script. Option parser
already removes all options from the list of arguments so all we need to
do is to take our actual arguments. In case of trust-fetch-domains, it
is the name of the domain so we can only care about args[0].
Fixes: https://pagure.io/freeipa/issue/7903
Signed-off-by: Alexander Bokovoy <abokovoy(a)redhat.com>
"""
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/3003/head:pr3003
git checkout pr3003
5 years