pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone
Blob Blame History Raw
From cdbf2fcc214bf8a4f94e3b25b6a742ea1fc9f75c Mon Sep 17 00:00:00 2001
From: Tomas Babej <tbabej@redhat.com>
Date: Mon, 17 Aug 2015 08:46:52 +0200
Subject: [PATCH] winsync-migrate: Add warning about passsync

https://fedorahosted.org/freeipa/ticket/5162

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
---
 ipaserver/install/ipa_winsync_migrate.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/ipaserver/install/ipa_winsync_migrate.py b/ipaserver/install/ipa_winsync_migrate.py
index cbe068458cc0b6853573c9d23d4cb6386a816bb3..c327e502e6bfb6e402931e1962fe2410570b2bc2 100644
--- a/ipaserver/install/ipa_winsync_migrate.py
+++ b/ipaserver/install/ipa_winsync_migrate.py
@@ -302,6 +302,12 @@ class WinsyncMigrate(admintool.AdminTool):
             object_container_dn=DN(api.env.container_selinux, api.env.basedn),
         )
 
+    def warn_passsync(self):
+        self.log.warning("Migration completed. Please note that if PassSync "
+            "was configured on the given Active Directory server, "
+            "it needs to be manually removed, otherwise it may try "
+            "to reset password for accounts that are no longer existent.")
+
     @classmethod
     def main(cls, argv):
         """
@@ -343,3 +349,5 @@ class WinsyncMigrate(admintool.AdminTool):
             self.migrate_hbac_memberships(entry)
             self.migrate_selinux_memberships(entry)
             self.ldap.delete_entry(entry)
+
+        self.warn_passsync()
-- 
2.4.3