summaryrefslogtreecommitdiffstats
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
parent1d20c35b27f2cfcb9db42c87b56a6f731b8bb8dd (diff)
downloadds-cd6fe6d7225656448034bc06e483dab3f36f3f3f.tar.gz
ds-cd6fe6d7225656448034bc06e483dab3f36f3f3f.tar.xz
ds-cd6fe6d7225656448034bc06e483dab3f36f3f3f.zip
170071 - Automatically add grouptype for new groups being synchd to NT4
-rw-r--r--ldap/servers/ntds/apacheds/usersync.schema1
-rw-r--r--ldap/servers/plugins/replication/windows_protocol_util.c13
2 files changed, 13 insertions, 1 deletions
diff --git a/ldap/servers/ntds/apacheds/usersync.schema b/ldap/servers/ntds/apacheds/usersync.schema
index 0dc36a3d..4cf74fb1 100644
--- a/ldap/servers/ntds/apacheds/usersync.schema
+++ b/ldap/servers/ntds/apacheds/usersync.schema
@@ -522,7 +522,6 @@ objectclass ( 1.3.6.1.4.1.7114.2.2.12
isCriticalSystemObject $
member $
name $
- groupType $
showInAdvancedViewOnly $
systemFlags $
objectCategory $
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;