diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-08-19 17:29:13 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-08-25 07:39:37 +1000 |
commit | 4744c12d2cfdaf47ac5884951ad86b9451f7075e (patch) | |
tree | 2b501ac9232075156142f03c656715e624949f29 /source4/dsdb/samdb | |
parent | 559d92a8dfb0759326f154dbe14d05a3df0ce4d3 (diff) | |
download | samba-4744c12d2cfdaf47ac5884951ad86b9451f7075e.tar.gz samba-4744c12d2cfdaf47ac5884951ad86b9451f7075e.tar.bz2 samba-4744c12d2cfdaf47ac5884951ad86b9451f7075e.zip |
s4-dsdb: removed unused function in ACL module
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/acl_util.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/acl_util.c b/source4/dsdb/samdb/ldb_modules/acl_util.c index 58d3ecde30..cce504dc97 100644 --- a/source4/dsdb/samdb/ldb_modules/acl_util.c +++ b/source4/dsdb/samdb/ldb_modules/acl_util.c @@ -88,45 +88,6 @@ int dsdb_module_check_access_on_dn(struct ldb_module *module, guid); } -int dsdb_module_check_access_on_guid(struct ldb_module *module, - TALLOC_CTX *mem_ctx, - struct GUID *guid, - uint32_t access_mask, - const struct GUID *oc_guid, - struct ldb_request *parent) -{ - int ret; - struct ldb_result *acl_res; - static const char *acl_attrs[] = { - "nTSecurityDescriptor", - "objectSid", - NULL - }; - struct ldb_context *ldb = ldb_module_get_ctx(module); - struct auth_session_info *session_info - = (struct auth_session_info *)ldb_get_opaque(ldb, "sessionInfo"); - if(!session_info) { - return ldb_operr(ldb); - } - ret = dsdb_module_search(module, mem_ctx, &acl_res, NULL, LDB_SCOPE_SUBTREE, - acl_attrs, - DSDB_FLAG_NEXT_MODULE | - DSDB_SEARCH_SHOW_RECYCLED, - parent, - "objectGUID=%s", GUID_string(mem_ctx, guid)); - - if (ret != LDB_SUCCESS || acl_res->count == 0) { - DEBUG(0,("access_check: failed to find object %s\n", GUID_string(mem_ctx, guid))); - return ret; - } - return dsdb_check_access_on_dn_internal(ldb, acl_res, - mem_ctx, - session_info->security_token, - acl_res->msgs[0]->dn, - access_mask, - oc_guid); -} - int acl_check_access_on_attribute(struct ldb_module *module, TALLOC_CTX *mem_ctx, struct security_descriptor *sd, |