summaryrefslogtreecommitdiff
path: root/source4/dns_server/dns_update.c
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2012-09-05 11:07:55 +0200
committerKai Blin <kai@samba.org>2012-09-05 14:10:54 +0200
commit558fa4c45a87704c57893d61a5431fc8bb51385a (patch)
tree4762f19917ac8e8e1bd2f2b82a2bee79bfae5717 /source4/dns_server/dns_update.c
parent92bd7b0db82bffc951af7862edde95852edc756d (diff)
downloadsamba-558fa4c45a87704c57893d61a5431fc8bb51385a.tar.gz
s4 dns: Revert erroneous push from wrong branch
I've pushed the wrong branch for this, sorry about that. Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Wed Sep 5 14:10:54 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4/dns_server/dns_update.c')
-rw-r--r--source4/dns_server/dns_update.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source4/dns_server/dns_update.c b/source4/dns_server/dns_update.c
index 61850a10564..e7514acace0 100644
--- a/source4/dns_server/dns_update.c
+++ b/source4/dns_server/dns_update.c
@@ -734,15 +734,10 @@ WERROR dns_server_process_update(struct dns_server *dns,
/* TODO: Check if update is allowed, we probably want "always",
* key-based GSSAPI, key-based bind-style TSIG and "never" as
* smb.conf options. */
- if (lpcfg_allow_dns_updates(dns->task->lp_ctx) == DNS_UPDATE_OFF) {
+ if (lpcfg_allow_dns_updates(dns->task->lp_ctx) != DNS_UPDATE_ON) {
DEBUG(0, ("Update not allowed.\n"));
return DNS_ERR(REFUSED);
}
- if (lpcfg_allow_dns_updates(dns->task->lp_ctx) == DNS_UPDATE_SIGNED &&
- state->authenticated == false ) {
- DEBUG(0, ("Update not allowed for unsigned packet.\n"));
- return DNS_ERR(REFUSED);
- }
*update_count = in->nscount;
*updates = in->nsrecs;