diff options
author | Rob Crittenden <rcritten@redhat.com> | 2011-03-18 11:19:53 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-03-21 13:23:53 -0400 |
commit | ca5332951c68904b0763f79f3612209271206b2a (patch) | |
tree | d2e39143f5d1b7b78fb40fd906e0d722c1b19d3d /freeipa.spec.in | |
parent | ba5e0c43070c1ec77e45a032cd3dabbe0f7a76fc (diff) | |
download | freeipa-ca5332951c68904b0763f79f3612209271206b2a.tar.gz freeipa-ca5332951c68904b0763f79f3612209271206b2a.tar.xz freeipa-ca5332951c68904b0763f79f3612209271206b2a.zip |
Automatically update IPA LDAP on rpm upgrades
Re-enable ldapi code in ipa-ldap-updater and remove the searchbase
restriction when run in --upgrade mode. This allows us to autobind
giving root Directory Manager powers.
This also:
* corrects the ipa-ldap-updater man page
* remove automatic --realm, --server, --domain options
* handle upgrade errors properly
* saves a copy of dse.ldif before we change it so it can be recovered
* fixes an error discovered by pylint
ticket 1087
Diffstat (limited to 'freeipa.spec.in')
-rw-r--r-- | freeipa.spec.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/freeipa.spec.in b/freeipa.spec.in index 8962b3f50..53bfb809c 100644 --- a/freeipa.spec.in +++ b/freeipa.spec.in @@ -279,7 +279,10 @@ if [ $1 = 1 ]; then /sbin/chkconfig --add ipa /sbin/chkconfig --add ipa_kpasswd fi -/usr/sbin/ipa-upgradeconfig || : +if [ $1 -gt 1 ] ; then + /usr/sbin/ipa-upgradeconfig || : + /usr/sbin/ipa-ldap-updater --upgrade >/dev/null 2>&1 || : +fi %preun server if [ $1 = 0 ]; then @@ -478,6 +481,9 @@ fi %ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/ipa/default.conf %changelog +* Thu Mar 17 2011 Rob Crittenden <rcritten@redhat.com> - 1.99-46 +- Automatically apply updates when the package is upgraded. + * Thu Feb 17 2011 Jakub Hrozek <jhrozek@redhat.com> - 1.99-45 - Set minimum version of python-nss to 0.11 to make sure IPv6 support is in |