URL: https://github.com/freeipa/freeipa/pull/4277 Author: flo-renaud Title: #4277: ipa-adtrust-install: run remote configuration for new agents Action: opened
PR body: """ ### ipa-adtrust-install: run remote configuration for new agents
When ipa-adtrust-install is run, the tool detects masters that are not enabled as trust agents and propose to configure them. With the current code, the Schema Compat plugin is not enabled on these new trust agents and a manual restart of LDAP server + SSSD is required.
With this commit, ipa-adtrust-install now calls remote code on the new agents through JSON RPC api, in order to configure the missing parts. On the remote agent, the command is using DBus and oddjob to launch a new command, /usr/sbin/ipa-trust-enable-agent [--enable-compat] This command configures the Schema Compat plugin if --enable-compat is provided, then restarts LDAP server and SSSD.
If the remote agent is an older version and does not support remote enablement, or if the remote server is not responding, the tool ipa-adtrust-install prints a WARNING explaining the steps that need to be manually executed in order to complete the installation, and exits successfully (keeping the current behavior).
Fixes: https://pagure.io/freeipa/issue/7600
### ipatests: add test for ipa-adtrust-install --add-agents
Add tests checking the behavior of ipa-adtrust-install when adding trust agents: - try adding a trust agent when the remote node is stopped. The installer must detect that he's not able to run the remote commands and print a WARNING. - try adding a trust agent when the remote node is running. The WARNING must not be printed as the remote configuration is done. - try adding a trust agent with --enable-compat. The WARNING must not be printed and the Schema Compatibility plugin must be enabled (the entries cn=users/groups,cn=Schema Compatibility,cn=plugins,cn=config must contain a new attribute schema-compat-lookup-nsswitch (=user/group).
Notes: - this PR will have to be rebased after PR #4260 is merged as it's modifying the same test suite - TBD: add a SELinux policy rule allowing to call the remote command when #4251 is merged """
To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/4277/head:pr4277 git checkout pr4277
URL: https://github.com/freeipa/freeipa/pull/4277 Author: flo-renaud Title: #4277: ipa-adtrust-install: run remote configuration for new agents Action: closed
To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/4277/head:pr4277 git checkout pr4277
freeipa-devel@lists.fedorahosted.org