andykimpe / rpms / 389-ds-base

Forked from rpms/389-ds-base 5 months ago
Clone
dc8c34
From 8ccf8890fed7097becbe9c7fe8ca89741886fe51 Mon Sep 17 00:00:00 2001
dc8c34
From: Rich Megginson <rmeggins@redhat.com>
dc8c34
Date: Thu, 3 Apr 2014 20:50:14 -0600
dc8c34
Subject: [PATCH 193/225] Ticket #47492 - PassSync removes User must change
dc8c34
 password flag on the Windows side
dc8c34
dc8c34
https://fedorahosted.org/389/ticket/47492
dc8c34
Reviewed by: nkinder (Thanks!)
dc8c34
Branch: 389-ds-base-1.2.11
dc8c34
Fix Description: Cherry pick broke outbound sync.  The suffix variable in
dc8c34
map_entry_dn_outbound was initialized to NULL and not set.  This patch
dc8c34
restores the previous functionality removed by the cherry pick.
dc8c34
NOTE: On 1.3.0 and later, the code has changed quite a bit, so that code
dc8c34
is not affected
dc8c34
Platforms tested: RHEL5 x86_64
dc8c34
Flag Day: no
dc8c34
Doc impact: no
dc8c34
(cherry picked from commit ab4b92153f2d0f5fa3afe9ab2978deaf85fe5e5b)
dc8c34
---
dc8c34
 ldap/servers/plugins/replication/windows_protocol_util.c | 2 +-
dc8c34
 1 file changed, 1 insertion(+), 1 deletion(-)
dc8c34
dc8c34
diff --git a/ldap/servers/plugins/replication/windows_protocol_util.c b/ldap/servers/plugins/replication/windows_protocol_util.c
dc8c34
index 811d2fd..627e8ad 100644
dc8c34
--- a/ldap/servers/plugins/replication/windows_protocol_util.c
dc8c34
+++ b/ldap/servers/plugins/replication/windows_protocol_util.c
dc8c34
@@ -3542,7 +3542,7 @@ map_entry_dn_outbound(Slapi_Entry *e,
dc8c34
 	char *guid = NULL;
dc8c34
 	Slapi_DN *new_dn = NULL;
dc8c34
 	int is_nt4 = windows_private_get_isnt4(prp->agmt);
dc8c34
-	const char *suffix = NULL;
dc8c34
+	const char *suffix = slapi_sdn_get_dn(windows_private_get_windows_subtree(prp->agmt));
dc8c34
 	Slapi_Entry *remote_entry = NULL;
dc8c34
 
dc8c34
 	if (NULL == e) {
dc8c34
-- 
dc8c34
1.8.1.4
dc8c34