]> git.sur5r.net Git - openldap/commitdiff
ITS#2521 log names of unrecognized attributeTypes in search filters
authorHoward Chu <hyc@openldap.org>
Thu, 4 Dec 2003 01:10:02 +0000 (01:10 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 4 Dec 2003 01:10:02 +0000 (01:10 +0000)
servers/slapd/ava.c

index f24a03076ec2b09d5c7c41ba2d8895e2f8f756c9..63a1b288457afcf1fa78a9d9312f37489c2089e1 100644 (file)
@@ -80,6 +80,13 @@ get_ava(
        rc = slap_bv2ad( &type, &aa->aa_desc, text );
 
        if( rc != LDAP_SUCCESS ) {
+#ifdef NEW_LOGGING
+               LDAP_LOG( FILTER, ERR,
+               "get_ava: unknown attributeType %s\n", type.bv_val, 0, 0 );
+#else
+               Debug( LDAP_DEBUG_FILTER,
+               "get_ava: unknown attributeType %s\n", type.bv_val, 0, 0 );
+#endif
                op->o_tmpfree( aa, op->o_tmpmemctx );
                return rc;
        }
@@ -89,6 +96,13 @@ get_ava(
                usage, &value, &aa->aa_value, text, op->o_tmpmemctx );
 
        if( rc != LDAP_SUCCESS ) {
+#ifdef NEW_LOGGING
+               LDAP_LOG( FILTER, ERR,
+               "get_ava: illegal value for attributeType %s\n", type.bv_val, 0, 0 );
+#else
+               Debug( LDAP_DEBUG_FILTER,
+               "get_ava: illegal value for attributeType %s\n", type.bv_val, 0, 0 );
+#endif
                op->o_tmpfree( aa, op->o_tmpmemctx );
                return rc;
        }