summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tools
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-01-15 06:12:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:11 -0500
commit3725b1817f1e26370015d955622f0705e9121714 (patch)
tree938954066c19dd5b1265c775f8b08c365c78da2a /source4/lib/ldb/tools
parentb71075e836ff3488dd60c54ce9702264fcee6d2f (diff)
downloadsamba-3725b1817f1e26370015d955622f0705e9121714.tar.gz
samba-3725b1817f1e26370015d955622f0705e9121714.tar.bz2
samba-3725b1817f1e26370015d955622f0705e9121714.zip
r12941: Add Attribute Scoped Search control
want to see what it does ? do aq make test and try: ./bin/ldbsearch -H st/private/sam.ldb --controls=asq:1:member -s base -b 'CN=Administrators,CN=Builtin,DC=samba,DC=example,DC=com' 'objectclass=*' have fun. simo. (This used to be commit 900f4fd3435aacc3351f30afb77d3488d2cb4804)
Diffstat (limited to 'source4/lib/ldb/tools')
-rw-r--r--source4/lib/ldb/tools/ldbsearch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/ldb/tools/ldbsearch.c b/source4/lib/ldb/tools/ldbsearch.c
index c81db7eb4d..582861eae2 100644
--- a/source4/lib/ldb/tools/ldbsearch.c
+++ b/source4/lib/ldb/tools/ldbsearch.c
@@ -305,6 +305,10 @@ static int do_search(struct ldb_context *ldb,
ret = ldb_request(ldb, &req);
if (ret != LDB_SUCCESS) {
printf("search failed - %s\n", ldb_errstring(ldb));
+ if (req.op.search.res && req.op.search.res->controls) {
+ /* TODO: handle_control */
+ ;
+ }
return -1;
}