summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-18 12:48:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:26 -0500
commitbe19641f30f9a13a38dd08216e1fd22aaaffa9bd (patch)
treed66212c1c1c2125aaccefc3473ef032c8a918ebf /source4/libcli
parent2a0a0f2551b03e4792cab37455b094d21819dc87 (diff)
downloadsamba-be19641f30f9a13a38dd08216e1fd22aaaffa9bd.tar.gz
samba-be19641f30f9a13a38dd08216e1fd22aaaffa9bd.tar.bz2
samba-be19641f30f9a13a38dd08216e1fd22aaaffa9bd.zip
r7724: added encoding of LDB_OP_NOT search components
(This used to be commit 82b1feeafea57ca1b8d7bf79f777eebcc703769c)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/ldap/ldap.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/libcli/ldap/ldap.c b/source4/libcli/ldap/ldap.c
index 81e659d3e8..2514e10117 100644
--- a/source4/libcli/ldap/ldap.c
+++ b/source4/libcli/ldap/ldap.c
@@ -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;