From d933ffe4679914ecb1a75b739ff87caf0e54c618 Mon Sep 17 00:00:00 2001 From: "Thierry bordaz (tbordaz)" Date: Wed, 8 Oct 2014 12:09:28 +0200 Subject: [PATCH] Ticket 47920: Encoding of SearchResultEntry is missing tag Bug Description: The encoding of the PreReadControl,PostReadControl does not contain the tag (LDAP_RES_SEARCH_ENTRY = constructed+application). The server should return SearchResultEntry (http://tools.ietf.org/html/rfc4527 3.1 & 3.2) That is SearchResultEntry ::= [APPLICATION 4] SEQUENCE { objectName LDAPDN, attributes PartialAttributeList } Fix Description: Add the tag to the ber encoding https://fedorahosted.org/389/ticket/47920 Reviewed by: ? Platforms tested: Flag Day: no Doc impact: no --- ldap/servers/slapd/result.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldap/servers/slapd/result.c b/ldap/servers/slapd/result.c index fa1788c..92573d5 100644 --- a/ldap/servers/slapd/result.c +++ b/ldap/servers/slapd/result.c @@ -2176,7 +2176,7 @@ encode_read_entry (Slapi_PBlock *pb, Slapi_Entry *e, char **attrs, int alluserat } /* Start the ber encoding with the DN */ - rc = ber_printf( ber, "{s{", slapi_entry_get_dn_const(e) ); + rc = ber_printf( ber, "t{s{", LDAP_RES_SEARCH_ENTRY, slapi_entry_get_dn_const(e) ); if ( rc == -1 ) { rc = -1; goto cleanup; -- 1.7.11.7