summaryrefslogtreecommitdiffstats
path: root/ldap/servers/plugins/replication
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2005-10-20 17:12:16 +0000
committerNathan Kinder <nkinder@redhat.com>2005-10-20 17:12:16 +0000
commitcd6fe6d7225656448034bc06e483dab3f36f3f3f (patch)
tree70cae2871ba5e63228dbcc247a5d9b5220138c09 /ldap/servers/plugins/replication
parent1d20c35b27f2cfcb9db42c87b56a6f731b8bb8dd (diff)
170071 - Automatically add grouptype for new groups being synchd to NT4
Diffstat (limited to 'ldap/servers/plugins/replication')
-rw-r--r--ldap/servers/plugins/replication/windows_protocol_util.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/ldap/servers/plugins/replication/windows_protocol_util.c b/ldap/servers/plugins/replication/windows_protocol_util.c
index 6fe7a8a6..76fa15e5 100644
--- a/ldap/servers/plugins/replication/windows_protocol_util.c
+++ b/ldap/servers/plugins/replication/windows_protocol_util.c
@@ -1362,6 +1362,19 @@ windows_create_remote_entry(Private_Repl_Protocol *prp,Slapi_Entry *original_ent
vs = NULL;
}
}
+ /* NT4 must have the groupType attribute set for groups. If it is not present, we will
+ * add it here with a value of 2 (global group).
+ */
+ if (is_nt4 && is_group)
+ {
+ Slapi_Attr *ap = NULL;
+ if(slapi_entry_attr_find(new_entry, "groupType", &ap))
+ {
+ /* groupType attribute wasn't found, so we'll add it */
+ slapi_entry_attr_set_int(new_entry, "groupType", 2 /* global group */);
+ }
+ }
+
if (remote_entry)
{
*remote_entry = new_entry;