svn commit: samba r13352 - in branches/SAMBA_4_0/source/libcli/ldap: .

idra at samba.org idra at samba.org
Sun Feb 5 17:28:28 GMT 2006


Author: idra
Date: 2006-02-05 17:28:27 +0000 (Sun, 05 Feb 2006)
New Revision: 13352

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13352

Log:

Integrate Patch to support the ManageDSAIT control
from Pete Rowley <prowley at redhat.com>


Modified:
   branches/SAMBA_4_0/source/libcli/ldap/ldap_controls.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/ldap/ldap_controls.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/ldap/ldap_controls.c	2006-02-04 22:01:30 UTC (rev 13351)
+++ branches/SAMBA_4_0/source/libcli/ldap/ldap_controls.c	2006-02-05 17:28:27 UTC (rev 13352)
@@ -345,6 +345,15 @@
 	return True;
 }
 
+static BOOL decode_manageDSAIT_request(void *mem_ctx, DATA_BLOB in, void **out)
+{
+	if (in.length != 0) {
+		return False;
+	}
+
+	return True;
+}
+
 static BOOL encode_server_sort_response(void *mem_ctx, void *in, DATA_BLOB *out)
 {
 	struct ldb_sort_resp_control *lsrc = talloc_get_type(in, struct ldb_sort_resp_control);
@@ -568,6 +577,16 @@
 	return True;
 }
 
+static BOOL encode_manageDSAIT_request(void *mem_ctx, void *in, DATA_BLOB *out)
+{
+	if (in) {
+		return False;
+	}
+
+	*out = data_blob(NULL, 0);
+	return True;
+}
+
 struct control_handler ldap_known_controls[] = {
 	{ "1.2.840.113556.1.4.319", decode_paged_results_request, encode_paged_results_request },
 	{ "1.2.840.113556.1.4.529", decode_extended_dn_request, encode_extended_dn_request },
@@ -576,6 +595,7 @@
 	{ "1.2.840.113556.1.4.1504", decode_asq_control, encode_asq_control },
 	{ "1.2.840.113556.1.4.841", decode_dirsync_request, encode_dirsync_request },
 	{ "1.2.840.113556.1.4.528", decode_notification_request, encode_notification_request },
+	{ "2.16.840.1.113730.3.4.2", decode_manageDSAIT_request, encode_manageDSAIT_request },
 	{ NULL, NULL, NULL }
 };
 



More information about the samba-cvs mailing list