Browse Source

Ticket #48232 - winsync lastlogon attribute not syncing between DS and AD.

Bug Description:
From Microsoft forum:
 The DirSync control taps into the replication stream to get the necessary
 changes. Since lastLogon is not replicated, it isn't available via the
 DirSync control.
Additional notes:
 The lastLogon attribute is not replicated.
 In contrast the lastLogontimeStamp attribute is replicated.

Fix Description:
 Instead of lastLogon|lastLogoff, sync lastLogonTimestamp|lastLogoffTimestamp
 which are the target of DirSync, to ntUserLastLogon|ntUserLastLogoff.

https://fedorahosted.org/389/ticket/48232

Reviewed by [email protected] (Thank you, Rich!!)
Noriko Hosoi 10 năm trước cách đây
mục cha
commit
0db29788e6
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      ldap/servers/plugins/replication/windows_protocol_util.c

+ 2 - 2
ldap/servers/plugins/replication/windows_protocol_util.c

@@ -194,8 +194,8 @@ static windows_attribute_map user_attribute_map[] =
 {
 	{ "homeDirectory", "ntUserHomeDir", bidirectional, always, normal},
 	{ "scriptPath", "ntUserScriptPath", bidirectional, always, normal},
-	{ "lastLogon", "ntUserLastLogon", fromwindowsonly, always, normal},
-	{ "lastLogoff", "ntUserLastLogoff", fromwindowsonly, always, normal},
+	{ "lastLogonTimestamp", "ntUserLastLogon", fromwindowsonly, always, normal},
+	{ "lastLogoffTimestamp", "ntUserLastLogoff", fromwindowsonly, always, normal},
 	{ "accountExpires", "ntUserAcctExpires", bidirectional, always, normal},
 	{ "codePage", "ntUserCodePage", bidirectional, always, normal},
 	{ "logonHours", "ntUserLogonHours", bidirectional, always, normal},