summaryrefslogtreecommitdiffstats
path: root/ldap/servers/plugins/replication/windows_private.c
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2007-09-12 23:05:25 +0000
committerNathan Kinder <nkinder@redhat.com>2007-09-12 23:05:25 +0000
commitf236db01a582398977853a7dacf0161ccc140c7f (patch)
tree973128d83f96683bd34e669887e34a6ecc862d4a /ldap/servers/plugins/replication/windows_private.c
parent2ee49b2fe9f96893809d4dbf2c2362a0e018694f (diff)
downloadds-f236db01a582398977853a7dacf0161ccc140c7f.tar.gz
ds-f236db01a582398977853a7dacf0161ccc140c7f.tar.xz
ds-f236db01a582398977853a7dacf0161ccc140c7f.zip
Resolves: 243227
Summary: Handle syncing add opererations that have a ntuniqueid present.
Diffstat (limited to 'ldap/servers/plugins/replication/windows_private.c')
-rw-r--r--ldap/servers/plugins/replication/windows_private.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/ldap/servers/plugins/replication/windows_private.c b/ldap/servers/plugins/replication/windows_private.c
index 340047f7..1c2e0fbe 100644
--- a/ldap/servers/plugins/replication/windows_private.c
+++ b/ldap/servers/plugins/replication/windows_private.c
@@ -65,6 +65,7 @@ struct windowsprivate {
PRBool create_groups_from_dirsync;
char *windows_domain;
int isnt4;
+ int iswin2k3;
};
static int
@@ -245,6 +246,38 @@ void windows_private_set_isnt4(const Repl_Agmt *ra, int isit)
LDAPDebug( LDAP_DEBUG_TRACE, "<= windows_private_set_isnt4\n", 0, 0, 0 );
}
+int windows_private_get_iswin2k3(const Repl_Agmt *ra)
+{
+ Dirsync_Private *dp;
+
+ LDAPDebug( LDAP_DEBUG_TRACE, "=> windows_private_get_iswin2k3\n", 0, 0, 0 );
+
+ PR_ASSERT(ra);
+
+ dp = (Dirsync_Private *) agmt_get_priv(ra);
+ PR_ASSERT (dp);
+
+ LDAPDebug( LDAP_DEBUG_TRACE, "<= windows_private_get_iswin2k3\n", 0, 0, 0 );
+
+ return dp->iswin2k3;
+}
+
+void windows_private_set_iswin2k3(const Repl_Agmt *ra, int isit)
+{
+ Dirsync_Private *dp;
+
+ LDAPDebug( LDAP_DEBUG_TRACE, "=> windows_private_set_iswin2k3\n", 0, 0, 0 );
+
+ PR_ASSERT(ra);
+
+ dp = (Dirsync_Private *) agmt_get_priv(ra);
+ PR_ASSERT (dp);
+
+ dp->iswin2k3 = isit;
+
+ LDAPDebug( LDAP_DEBUG_TRACE, "<= windows_private_set_iswin2k3\n", 0, 0, 0 );
+}
+
/* Returns a copy of the Slapi_DN pointer, no need to free it */
const Slapi_DN* windows_private_get_windows_subtree (const Repl_Agmt *ra)