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.
/* the check for '=' is for compatibility with ldapsearch */
if (!options->interactive &&
options->argc > 0 &&
/* 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--;
expression = options->argv[0];
options->argv++;
options->argc--;