[Fedora-directory-commits] ldapserver/ldap/servers/plugins/replication windows_protocol_util.c, 1.20.2.1, 1.20.2.2

Nathan Kinder (nkinder) fedora-directory-commits at redhat.com
Thu Oct 20 17:25:25 UTC 2005


Author: nkinder

Update of /cvs/dirsec/ldapserver/ldap/servers/plugins/replication
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv12443

Modified Files:
      Tag: Directory71RtmBranch
	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.20.2.1
retrieving revision 1.20.2.2
diff -u -r1.20.2.1 -r1.20.2.2
--- windows_protocol_util.c	28 Sep 2005 20:27:53 -0000	1.20.2.1
+++ windows_protocol_util.c	20 Oct 2005 17:25:22 -0000	1.20.2.2
@@ -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 Fedora-directory-commits mailing list