dns_update: RODC updates should use lower case realm
authorGarming Sam <garming@catalyst.net.nz>
Mon, 3 Apr 2017 03:31:14 +0000 (15:31 +1200)
committerGarming Sam <garming@samba.org>
Thu, 13 Apr 2017 05:29:18 +0000 (07:29 +0200)
This is consistent with the standard update list we write.

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/dns/dns_update.c

index 959223dc6f8b13d73f7d0107d7b0ccc77902cd64..8962b085f61ca7e83d9516b986112abd1b33858a 100644 (file)
@@ -515,7 +515,7 @@ static NTSTATUS dnsupdate_dnsupdate_RODC(struct irpc_message *msg,
 
 
        /* find dnsdomain and dnsforest */
-       dnsdomain = lpcfg_realm(s->task->lp_ctx);
+       dnsdomain = lpcfg_dnsdomain(s->task->lp_ctx);
        dnsforest = dnsdomain;
 
        /* find the hostname */