summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2005-10-20 17:25:22 +0000
committerNathan Kinder <nkinder@redhat.com>2005-10-20 17:25:22 +0000
commit262e02a2a571e0eb2d14f81dfa9d50ff31e4b095 (patch)
treec70f6493eb63a79808bd6d6d8af98ad22a4a38fb
parentdcef520ea174157b616b32dc1a03bc35e9fb2ce2 (diff)
downloadds-262e02a2a571e0eb2d14f81dfa9d50ff31e4b095.tar.gz
ds-262e02a2a571e0eb2d14f81dfa9d50ff31e4b095.tar.xz
ds-262e02a2a571e0eb2d14f81dfa9d50ff31e4b095.zip
170071 - Automatically add grouptype for new groups being synchd to NT4
-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;