pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0066-winsync-migrate-Add-warning-about-passsync.patch

590d18
From cdbf2fcc214bf8a4f94e3b25b6a742ea1fc9f75c Mon Sep 17 00:00:00 2001
590d18
From: Tomas Babej <tbabej@redhat.com>
590d18
Date: Mon, 17 Aug 2015 08:46:52 +0200
590d18
Subject: [PATCH] winsync-migrate: Add warning about passsync
590d18
590d18
https://fedorahosted.org/freeipa/ticket/5162
590d18
590d18
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
590d18
---
590d18
 ipaserver/install/ipa_winsync_migrate.py | 8 ++++++++
590d18
 1 file changed, 8 insertions(+)
590d18
590d18
diff --git a/ipaserver/install/ipa_winsync_migrate.py b/ipaserver/install/ipa_winsync_migrate.py
590d18
index cbe068458cc0b6853573c9d23d4cb6386a816bb3..c327e502e6bfb6e402931e1962fe2410570b2bc2 100644
590d18
--- a/ipaserver/install/ipa_winsync_migrate.py
590d18
+++ b/ipaserver/install/ipa_winsync_migrate.py
590d18
@@ -302,6 +302,12 @@ class WinsyncMigrate(admintool.AdminTool):
590d18
             object_container_dn=DN(api.env.container_selinux, api.env.basedn),
590d18
         )
590d18
 
590d18
+    def warn_passsync(self):
590d18
+        self.log.warning("Migration completed. Please note that if PassSync "
590d18
+            "was configured on the given Active Directory server, "
590d18
+            "it needs to be manually removed, otherwise it may try "
590d18
+            "to reset password for accounts that are no longer existent.")
590d18
+
590d18
     @classmethod
590d18
     def main(cls, argv):
590d18
         """
590d18
@@ -343,3 +349,5 @@ class WinsyncMigrate(admintool.AdminTool):
590d18
             self.migrate_hbac_memberships(entry)
590d18
             self.migrate_selinux_memberships(entry)
590d18
             self.ldap.delete_entry(entry)
590d18
+
590d18
+        self.warn_passsync()
590d18
-- 
590d18
2.4.3
590d18