On 09/15/2015 11:30 AM, Tomas Babej wrote:
> Hi,
> 
> attached patch fixes:
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1262315
> 
> Tomas
> 
> 
> 

The previous version is for ipa-4-2, attaching a patch for master as well.

Tomas
From 5a86506d3601e8b6405237afa619ee083572cbc1 Mon Sep 17 00:00:00 2001
From: Tomas Babej <tba...@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
---
 install/updates/73-winsync.update | 3 +++
 ipaserver/install/replication.py  | 2 +-
 2 files changed, 4 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/ipaserver/install/replication.py b/ipaserver/install/replication.py
index aa2edd1722d46637cdec461daf65188ec3ab196b..173f9696deb21d1ba768dfdfbda3c76aac5447e6 100644
--- a/ipaserver/install/replication.py
+++ b/ipaserver/install/replication.py
@@ -567,7 +567,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.1.0

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to