mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r12843: get special objects with ldbsearch -a too, to match ldbedit -a
metze
(This used to be commit bb68f2e602
)
This commit is contained in:
parent
91a37f02dd
commit
2e8937c334
@ -55,7 +55,7 @@ struct ldb_cmdline *ldb_cmdline_process(struct ldb_context *ldb, int argc, const
|
|||||||
{ "recursive", 'r', POPT_ARG_NONE, &options.recursive, 0, "recursive delete", NULL },
|
{ "recursive", 'r', POPT_ARG_NONE, &options.recursive, 0, "recursive delete", NULL },
|
||||||
{ "num-searches", 0, POPT_ARG_INT, &options.num_searches, 0, "number of test searches", NULL },
|
{ "num-searches", 0, POPT_ARG_INT, &options.num_searches, 0, "number of test searches", NULL },
|
||||||
{ "num-records", 0, POPT_ARG_INT, &options.num_records, 0, "number of test records", NULL },
|
{ "num-records", 0, POPT_ARG_INT, &options.num_records, 0, "number of test records", NULL },
|
||||||
{ "all", 'a', POPT_ARG_NONE, &options.all_records, 0, "objectClass=*", NULL },
|
{ "all", 'a', POPT_ARG_NONE, &options.all_records, 0, "(|(objectClass=*)(distinguishedName=*))", NULL },
|
||||||
{ "nosync", 0, POPT_ARG_NONE, &options.nosync, 0, "non-synchronous transactions", NULL },
|
{ "nosync", 0, POPT_ARG_NONE, &options.nosync, 0, "non-synchronous transactions", NULL },
|
||||||
{ "sorted", 'S', POPT_ARG_NONE, &options.sorted, 0, "sort attributes", NULL },
|
{ "sorted", 'S', POPT_ARG_NONE, &options.sorted, 0, "sort attributes", NULL },
|
||||||
{ "sasl-mechanism", 0, POPT_ARG_STRING, &options.sasl_mechanism, 0, "choose SASL mechanism", "MECHANISM" },
|
{ "sasl-mechanism", 0, POPT_ARG_STRING, &options.sasl_mechanism, 0, "choose SASL mechanism", "MECHANISM" },
|
||||||
|
@ -278,7 +278,7 @@ static void usage(void)
|
|||||||
struct ldb_result *result = NULL;
|
struct ldb_result *result = NULL;
|
||||||
struct ldb_dn *basedn = NULL;
|
struct ldb_dn *basedn = NULL;
|
||||||
int ret;
|
int ret;
|
||||||
const char *expression = "(|(objectclass=*)(distinguishedName=*))";
|
const char *expression = "(|(objectClass=*)(distinguishedName=*))";
|
||||||
const char * const * attrs = NULL;
|
const char * const * attrs = NULL;
|
||||||
|
|
||||||
ldb = ldb_init(NULL);
|
ldb = ldb_init(NULL);
|
||||||
|
@ -324,7 +324,7 @@ static int do_search(struct ldb_context *ldb,
|
|||||||
const char * const * attrs = NULL;
|
const char * const * attrs = NULL;
|
||||||
struct ldb_cmdline *options;
|
struct ldb_cmdline *options;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
const char *expression = "(objectclass=*)";
|
const char *expression = "(|(objectClass=*)(distinguishedName=*))";
|
||||||
|
|
||||||
ldb = ldb_init(NULL);
|
ldb = ldb_init(NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user