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

metze at samba.org metze at samba.org
Thu Feb 22 14:29:04 GMT 2007


Author: metze
Date: 2007-02-22 14:29:04 +0000 (Thu, 22 Feb 2007)
New Revision: 21501

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

Log:
ugly but the windows 2000 mmc deturns decoding error without this

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


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/ldap/ldap.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/ldap/ldap.c	2007-02-22 13:35:01 UTC (rev 21500)
+++ branches/SAMBA_4_0/source/libcli/ldap/ldap.c	2007-02-22 14:29:04 UTC (rev 21501)
@@ -237,6 +237,10 @@
 		ldap_encode_response(&data, &r->response);
 		if (r->SASL.secblob) {
 			asn1_write_ContextSimple(&data, 7, r->SASL.secblob);
+		} else {
+			/* ugly but the windows 2000 mmc deturns decoding error without this */
+			DATA_BLOB zero = data_blob(NULL, 0);
+			asn1_write_ContextSimple(&data, 7, &zero);
 		}
 		asn1_pop_tag(&data);
 		break;



More information about the samba-cvs mailing list