[Fedora-directory-commits] ldapserver/ldap/servers/plugins/replication windows_protocol_util.c, 1.21, 1.22
Nathan Kinder (nkinder)
fedora-directory-commits at redhat.com
Thu Oct 20 17:12:23 UTC 2005
Author: nkinder
Update of /cvs/dirsec/ldapserver/ldap/servers/plugins/replication
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv12369/ldap/servers/plugins/replication
Modified Files:
windows_protocol_util.c
Log Message:
170071 - Automatically add grouptype for new groups being synchd to NT4
Index: windows_protocol_util.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/plugins/replication/windows_protocol_util.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- windows_protocol_util.c 28 Sep 2005 20:21:20 -0000 1.21
+++ windows_protocol_util.c 20 Oct 2005 17:12:16 -0000 1.22
@@ -1362,6 +1362,19 @@
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;
More information about the 389-commits
mailing list