diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/common/ldb.c | 8 | ||||
-rw-r--r-- | source4/lib/ldb/include/ldb_module.h | 5 | ||||
-rw-r--r-- | source4/lib/ldb/wscript | 2 |
3 files changed, 14 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index 0c2aa34289..f644855753 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -1844,6 +1844,14 @@ void ldb_req_mark_untrusted(struct ldb_request *req) } /** + mark a request as trusted. + */ +void ldb_req_mark_trusted(struct ldb_request *req) +{ + req->handle->flags &= ~LDB_HANDLE_FLAG_UNTRUSTED; +} + +/** return true is a request is untrusted */ bool ldb_req_is_untrusted(struct ldb_request *req) diff --git a/source4/lib/ldb/include/ldb_module.h b/source4/lib/ldb/include/ldb_module.h index 35dbd120fa..a793525b7c 100644 --- a/source4/lib/ldb/include/ldb_module.h +++ b/source4/lib/ldb/include/ldb_module.h @@ -228,6 +228,11 @@ int ldb_reply_add_control(struct ldb_reply *ares, const char *oid, bool critical void ldb_req_mark_untrusted(struct ldb_request *req); /** + mark a request as trusted. + */ +void ldb_req_mark_trusted(struct ldb_request *req); + +/** return true is a request is untrusted */ bool ldb_req_is_untrusted(struct ldb_request *req); diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript index b0635c5d67..81d2adcfd3 100644 --- a/source4/lib/ldb/wscript +++ b/source4/lib/ldb/wscript @@ -1,7 +1,7 @@ #!/usr/bin/env python APPNAME = 'ldb' -VERSION = '0.9.23' +VERSION = '0.9.24' blddir = 'bin' |