andykimpe / rpms / 389-ds-base

Forked from rpms/389-ds-base 6 months ago
Clone

Blame SOURCES/0031-Ticket-48232-winsync-lastlogon-attribute-not-syncing.patch

a2f18f
From bf8da26adf08db15ae2cbaeadb40f62af6c52037 Mon Sep 17 00:00:00 2001
a2f18f
From: Noriko Hosoi <nhosoi@redhat.com>
a2f18f
Date: Wed, 29 Jul 2015 11:26:22 -0700
a2f18f
Subject: [PATCH 31/39] Ticket #48232 - winsync lastlogon attribute not syncing
a2f18f
 between DS and AD.
a2f18f
a2f18f
Bug Description:
a2f18f
From Microsoft forum:
a2f18f
 The DirSync control taps into the replication stream to get the necessary
a2f18f
 changes. Since lastLogon is not replicated, it isn't available via the
a2f18f
 DirSync control.
a2f18f
Additional notes:
a2f18f
 The lastLogon attribute is not replicated.
a2f18f
 In contrast the lastLogontimeStamp attribute is replicated.
a2f18f
a2f18f
Fix Description:
a2f18f
 Instead of lastLogon|lastLogoff, sync lastLogonTimestamp|lastLogoffTimestamp
a2f18f
 which are the target of DirSync, to ntUserLastLogon|ntUserLastLogoff.
a2f18f
a2f18f
https://fedorahosted.org/389/ticket/48232
a2f18f
a2f18f
Reviewed by rmeggins@redhat.com (Thank you, Rich!!)
a2f18f
a2f18f
(cherry picked from commit 0db29788e6c1b17f944fcafa368b66580e1e90d5)
a2f18f
(cherry picked from commit b81adb0bc8ad97fec50fba30454e94858476bad5)
a2f18f
---
a2f18f
 ldap/servers/plugins/replication/windows_protocol_util.c | 4 ++--
a2f18f
 1 file changed, 2 insertions(+), 2 deletions(-)
a2f18f
a2f18f
diff --git a/ldap/servers/plugins/replication/windows_protocol_util.c b/ldap/servers/plugins/replication/windows_protocol_util.c
a2f18f
index 4cfa20d..5c12af7 100644
a2f18f
--- a/ldap/servers/plugins/replication/windows_protocol_util.c
a2f18f
+++ b/ldap/servers/plugins/replication/windows_protocol_util.c
a2f18f
@@ -194,8 +194,8 @@ static windows_attribute_map user_attribute_map[] =
a2f18f
 {
a2f18f
 	{ "homeDirectory", "ntUserHomeDir", bidirectional, always, normal},
a2f18f
 	{ "scriptPath", "ntUserScriptPath", bidirectional, always, normal},
a2f18f
-	{ "lastLogon", "ntUserLastLogon", fromwindowsonly, always, normal},
a2f18f
-	{ "lastLogoff", "ntUserLastLogoff", fromwindowsonly, always, normal},
a2f18f
+	{ "lastLogonTimestamp", "ntUserLastLogon", fromwindowsonly, always, normal},
a2f18f
+	{ "lastLogoffTimestamp", "ntUserLastLogoff", fromwindowsonly, always, normal},
a2f18f
 	{ "accountExpires", "ntUserAcctExpires", bidirectional, always, normal},
a2f18f
 	{ "codePage", "ntUserCodePage", bidirectional, always, normal},
a2f18f
 	{ "logonHours", "ntUserLogonHours", bidirectional, always, normal},
a2f18f
-- 
a2f18f
1.9.3
a2f18f