r7724: added encoding of LDB_OP_NOT search components
authorAndrew Tridgell <tridge@samba.org>
Sat, 18 Jun 2005 12:48:42 +0000 (12:48 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:26 +0000 (13:18 -0500)
(This used to be commit 82b1feeafea57ca1b8d7bf79f777eebcc703769c)

source4/libcli/ldap/ldap.c

index 81e659d3e86c07c014a3637b6c04d0b9f7c0fc2f..2514e10117c660c5b97f4c0ef93d988df775919a 100644 (file)
@@ -96,7 +96,12 @@ static BOOL ldap_push_filter(struct asn1_data *data, struct ldb_parse_tree *tree
                break;
 
        case LDB_OP_NOT:
-               #warning "OP_NOT missing"
+               asn1_push_tag(data, ASN1_CONTEXT(2));
+               if (!ldap_push_filter(data, tree->u.not.child)) {
+                       return False;
+               }
+               asn1_pop_tag(data);
+               break;
 
        default:
                return False;