pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone
Blob Blame History Raw
From e2c2bd871a0282628364dcb83d1feba44c5f71dc Mon Sep 17 00:00:00 2001
From: Tomas Babej <tbabej@redhat.com>
Date: Tue, 15 Sep 2015 11:28:18 +0200
Subject: [PATCH] winsync: Add inetUser objectclass to the passsync sysaccount

https://bugzilla.redhat.com/show_bug.cgi?id=1262315

Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
---
 install/updates/73-winsync.update | 3 +++
 install/updates/Makefile.am       | 1 +
 ipaserver/install/replication.py  | 2 +-
 3 files changed, 5 insertions(+), 1 deletion(-)
 create mode 100644 install/updates/73-winsync.update

diff --git a/install/updates/73-winsync.update b/install/updates/73-winsync.update
new file mode 100644
index 0000000000000000000000000000000000000000..538eaa1cb6f97a73bfaadd61ac2ce9e9137739cf
--- /dev/null
+++ b/install/updates/73-winsync.update
@@ -0,0 +1,3 @@
+# Add a inetUser objectclass to the passsync user
+dn: uid=passsync,cn=sysaccounts,cn=etc,$SUFFIX
+addifexist: objectClass: inetUser
diff --git a/install/updates/Makefile.am b/install/updates/Makefile.am
index 2693e4f8f81dc1464a43041e5104ea4363440933..1f4a91c9bb4222f99ad7a7ad16e376aeef7f525b 100644
--- a/install/updates/Makefile.am
+++ b/install/updates/Makefile.am
@@ -51,6 +51,7 @@ app_DATA =				\
 	62-ranges.update		\
 	71-idviews.update		\
 	72-domainlevels.update		\
+	73-winsync.update		\
 	90-post_upgrade_plugins.update	\
 	$(NULL)
 
diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py
index 2b36a5eb9287bf1789009a3198e540e333869e98..4bd3849e5e91c7251856362891f6c8848da43448 100644
--- a/ipaserver/install/replication.py
+++ b/ipaserver/install/replication.py
@@ -565,7 +565,7 @@ class ReplicationManager(object):
             print "Adding Windows PassSync system account"
             entry = conn.make_entry(
                 pass_dn,
-                objectclass=["account", "simplesecurityobject"],
+                objectclass=["account", "simplesecurityobject", "inetUser"],
                 uid=["passsync"],
                 userPassword=[password],
             )
-- 
2.4.3