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