summaryrefslogtreecommitdiff
path: root/source4/dns_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-09-12 14:42:18 +0200
committerStefan Metzmacher <metze@samba.org>2012-09-12 16:51:29 +0200
commit9583366d1eba609e902b885244735b9c981cec9c (patch)
treece0f2ba2c97845010742219040281485ad7a6cdb /source4/dns_server
parent61a07df824f2231609b2b3bd157e995f623425a3 (diff)
downloadsamba-9583366d1eba609e902b885244735b9c981cec9c.tar.gz
samba-9583366d1eba609e902b885244735b9c981cec9c.tar.bz2
samba-9583366d1eba609e902b885244735b9c981cec9c.zip
s4:dns_server: remove wrong and unused dsdb_check_access_on_dn() check
metze
Diffstat (limited to 'source4/dns_server')
-rw-r--r--source4/dns_server/dns_update.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/source4/dns_server/dns_update.c b/source4/dns_server/dns_update.c
index 76d263b63d..8be3564ee9 100644
--- a/source4/dns_server/dns_update.c
+++ b/source4/dns_server/dns_update.c
@@ -391,7 +391,6 @@ static WERROR handle_one_update(struct dns_server *dns,
uint16_t i;
WERROR werror;
bool needs_add = false;
- uint32_t access_mask = 0;
DEBUG(2, ("Looking at record: \n"));
if (DEBUGLVL(2)) {
@@ -424,24 +423,9 @@ static WERROR handle_one_update(struct dns_server *dns,
rcount = 0;
needs_add = true;
werror = WERR_OK;
- access_mask = SEC_ADS_CREATE_CHILD;
}
W_ERROR_NOT_OK_RETURN(werror);
- access_mask = SEC_STD_REQUIRED | SEC_ADS_SELF_WRITE;
-
- if (tkey != NULL) {
- int ldb_ret;
- ldb_ret = dsdb_check_access_on_dn(dns->samdb, mem_ctx, dn,
- tkey->session_info->security_token,
- access_mask, NULL);
- if (ldb_ret != LDB_SUCCESS) {
- DEBUG(5, ("Disallowing update: %s\n", ldb_strerror(ldb_ret)));
- return DNS_ERR(REFUSED);
- }
- DEBUG(5, ("Allowing signed update\n"));
- }
-
if (update->rr_class == zone->question_class) {
if (update->rr_type == DNS_QTYPE_CNAME) {
/*