From: Matthias Dieter Wallnöfer Date: Fri, 4 May 2012 09:59:22 +0000 (+0200) Subject: LDB:ldbsearch - search filters do not only contain "=" X-Git-Tag: samba-4.0.0beta7~99 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a8c6979544594f9fadec768392888793e7eb74f;p=thirdparty%2Fsamba.git 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 --- diff --git a/lib/ldb/tools/ldbsearch.c b/lib/ldb/tools/ldbsearch.c index 2da7072fa60..a030a5abda6 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--;