diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-06-18 12:48:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:18:26 -0500 |
commit | be19641f30f9a13a38dd08216e1fd22aaaffa9bd (patch) | |
tree | d66212c1c1c2125aaccefc3473ef032c8a918ebf /source4 | |
parent | 2a0a0f2551b03e4792cab37455b094d21819dc87 (diff) | |
download | samba-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')
-rw-r--r-- | source4/libcli/ldap/ldap.c | 7 |
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; |