]> git.sur5r.net Git - openldap/commitdiff
ITS#6899
authorPierangelo Masarati <ando@OpenLDAP.org>
Wed, 8 Jun 2011 20:14:54 +0000 (22:14 +0200)
committerPierangelo Masarati <ando@OpenLDAP.org>
Wed, 8 Jun 2011 20:19:09 +0000 (22:19 +0200)
tag read entry response control value with [APPLICATION 4] (SearchResultEntry)

servers/slapd/result.c

index 0803f7fb80ce42add0af8176db03d900fa712232..5079bd11a34397db00845f3f281f62676a713e68 100644 (file)
@@ -1042,7 +1042,8 @@ slap_send_search_entry( Operation *op, SlapReply *rs )
 #endif
        if ( op->o_res_ber ) {
                /* read back control */
-           rc = ber_printf( ber, "{O{" /*}}*/, &rs->sr_entry->e_name );
+           rc = ber_printf( ber, "t{O{" /*}}*/,
+                       LDAP_RES_SEARCH_ENTRY, &rs->sr_entry->e_name );
        } else {
            rc = ber_printf( ber, "{it{O{" /*}}}*/, op->o_msgid,
                        LDAP_RES_SEARCH_ENTRY, &rs->sr_entry->e_name );
@@ -1744,6 +1745,7 @@ int slap_read_controls(
        myop.o_res_ber = ber;
        myop.o_callback = NULL;
        myop.ors_slimit = 1;
+       myop.ors_attrsonly = 0;
 
        rc = slap_send_search_entry( &myop, rs );
        if( rc ) return rc;