diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2012-05-04 11:59:22 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-08-22 01:31:55 +0200 |
commit | 6a8c6979544594f9fadec768392888793e7eb74f (patch) | |
tree | e69dcb49b851c0ae1444fcca04d9259728544249 | |
parent | c8bfb8eb094e5bb80de8f5fa991910954d47b351 (diff) | |
download | samba-6a8c6979544594f9fadec768392888793e7eb74f.tar.gz samba-6a8c6979544594f9fadec768392888793e7eb74f.tar.bz2 samba-6a8c6979544594f9fadec768392888793e7eb74f.zip |
LDB:ldbsearch - search filters do not only contain "="
Also "<=", ">=", "~"... are allowed as well. Enumeration taken from
ldb_parse_filtertype().
This was the cause of not identifying the search filter as described in bug
https://bugzilla.samba.org/show_bug.cgi?id=8647.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r-- | lib/ldb/tools/ldbsearch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldb/tools/ldbsearch.c b/lib/ldb/tools/ldbsearch.c index 2da7072fa6..a030a5abda 100644 --- a/lib/ldb/tools/ldbsearch.c +++ b/lib/ldb/tools/ldbsearch.c @@ -305,7 +305,7 @@ int main(int argc, const char **argv) /* the check for '=' is for compatibility with ldapsearch */ if (!options->interactive && options->argc > 0 && - strchr(options->argv[0], '=')) { + strpbrk(options->argv[0], "=<>~:")) { expression = options->argv[0]; options->argv++; options->argc--; |