]> git.sur5r.net Git - openldap/commitdiff
ITS#6656 make reqEntryUUID searchable
authorPierangelo Masarati <ando@OpenLDAP.org>
Tue, 10 Apr 2012 21:12:41 +0000 (23:12 +0200)
committerPierangelo Masarati <ando@OpenLDAP.org>
Tue, 10 Apr 2012 21:13:55 +0000 (23:13 +0200)
servers/slapd/overlays/accesslog.c

index c396e7b7b81a724ee48e40aa1a7feab0d4db640f..5cb4d73308933d73c8c2076f5f96ada9c3a1d2d2 100644 (file)
@@ -404,6 +404,7 @@ static struct {
        { "( " LOG_SCHEMA_AT ".31 NAME 'reqEntryUUID' "
                "DESC 'UUID of entry' "
                "EQUALITY UUIDMatch "
+               "ORDERING UUIDOrderingMatch "
                "SYNTAX 1.3.6.1.1.16.1 "
                "SINGLE-VALUE )", &ad_reqEntryUUID },
        { NULL, NULL }
@@ -1797,7 +1798,7 @@ static int accesslog_response(Operation *op, SlapReply *rs) {
                } 
 
                if ( pbv ) {
-                       attr_merge_one( e, ad_reqEntryUUID, pbv, NULL );
+                       attr_merge_normalize_one( e, ad_reqEntryUUID, pbv, op->o_tmpmemctx );
                }
 
                if ( !BER_BVISNULL( &li->li_uuid ) ) {