[Fedora-directory-commits] ldapserver/ldap/servers/slapd attr.c, 1.8, 1.9 slapi-plugin.h, 1.15, 1.16

Nathan Kinder (nkinder) fedora-directory-commits at redhat.com
Thu Aug 30 15:56:38 UTC 2007


Author: nkinder

Update of /cvs/dirsec/ldapserver/ldap/servers/slapd
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1718/servers/slapd

Modified Files:
	attr.c slapi-plugin.h 
Log Message:
Resolves: 212671
Summary: Handle syncing multi-valued street attribute to AD.



Index: attr.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/attr.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- attr.c	10 Nov 2006 23:45:40 -0000	1.8
+++ attr.c	30 Aug 2007 15:56:36 -0000	1.9
@@ -699,7 +699,20 @@
 	return 0;
 }
 
-/* Make the valuset in SLapi_Attr be *vs--not a copy */
+int
+slapi_attr_set_type(Slapi_Attr *a, const char *type)
+{
+	int rc = 0;
+
+	if((NULL == a) || (NULL == type)) {
+		rc = -1;
+	} else {
+		a->a_type = slapi_ch_strdup(type);
+	}
+	return rc;
+}
+
+/* Make the valuset in Slapi_Attr be *vs--not a copy */
 int
 slapi_attr_set_valueset(Slapi_Attr *a, const Slapi_ValueSet *vs)
 {


Index: slapi-plugin.h
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/slapi-plugin.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- slapi-plugin.h	27 Feb 2007 02:57:30 -0000	1.15
+++ slapi-plugin.h	30 Aug 2007 15:56:36 -0000	1.16
@@ -418,6 +418,7 @@
 int slapi_attr_get_valueset(const Slapi_Attr *a, Slapi_ValueSet **vs);
 /* Make the valuset in Slapi_Attr be *vs--not a copy */
 int slapi_attr_set_valueset(Slapi_Attr *a, const Slapi_ValueSet *vs);
+int slapi_attr_set_type(Slapi_Attr *a, const char *type);
 int slapi_attr_get_bervals_copy( Slapi_Attr *a, struct berval ***vals );
 char * slapi_attr_syntax_normalize( const char *s );
 void slapi_valueset_set_valueset(Slapi_ValueSet *vs1, const Slapi_ValueSet *vs2);




More information about the Fedora-directory-commits mailing list