On 29.01.2016 18:06, Martin Basti wrote:
On 29.01.2016 09:01, Martin Babinsky wrote:
On 01/20/2016 09:40 AM, Martin Babinsky wrote:
On 01/14/2016 05:29 PM, Martin Babinsky wrote:
On 01/13/2016 05:59 PM, Rob Crittenden wrote:
Martin Babinsky wrote:
In order to ensure consistent behavior with ipa-client-install, I
to reuse the configure_openldap_conf() function and restoring the
from client sysrestore before modifying it.
If you think this approach is not optimal please propose an
You could also just do an action set on URI to change the value,
It would need a new function but it would be very small.
If you do end up keeping this I'd want a new commit message for
the code to include why you're moving it (to avoid the need to
Here's the patch that implements the change in URI directive. Please
keep in mind that we not only have to change the URI to point to
ourselves, we also have to do it in a way consistent with
ipa-client-install, i.e. leave a comment with new URI if it was
set by third party.
Plain 'addifnotset' directive will not do, however, because then we
up with two comments, one original, and one pointing to ourselves.
'set' may rewrite the URI set by user and thus we would have to
The correct handling of these cases coupled with a way
written results in a solution presented here.
The fact that it is not much shorter than configure_openldap_conf
additionally pretty ugly (a fact at least partially caused by me not
being very fluent in IPAChangeConf usage) led me to the conclusion
restoring original ldap.conf and reusing already wirrten code for
reediting it anew with replica as URI is actually not that bad idea.
Bump for review/discussion.
Works for me, ACK
Manage your subscription for the Freeipa-devel mailing list:
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code