aboutsummaryrefslogtreecommitdiffstats
path: root/ddns/frontend
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2014-03-17 23:31:21 +0100
committerMarius Halden <marius.h@lden.org>2014-03-17 23:31:21 +0100
commit16fe98b9a7d580e818346a8850e4755a65dc478c (patch)
tree6c8bf96d38bf4111f7b526e2fbe49342265a7eef /ddns/frontend
parent2c8a22216ef9c6cb9c6e6741f9c54acfd3262a72 (diff)
downloadDDNS.py-16fe98b9a7d580e818346a8850e4755a65dc478c.tar.gz
DDNS.py-16fe98b9a7d580e818346a8850e4755a65dc478c.tar.bz2
DDNS.py-16fe98b9a7d580e818346a8850e4755a65dc478c.tar.xz
Adjusted config format
Diffstat (limited to 'ddns/frontend')
-rw-r--r--ddns/frontend/dyn_com.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/ddns/frontend/dyn_com.py b/ddns/frontend/dyn_com.py
index 9b803ec..e0a1ebb 100644
--- a/ddns/frontend/dyn_com.py
+++ b/ddns/frontend/dyn_com.py
@@ -40,11 +40,10 @@ def dyn_com():
if zone_name == zone['name']:
for domain in zone['domains']:
if domain['domain'] == hostname:
- for user in domain['users']:
- if request.authorization.username == user['username']:
- ddns.backend.dnsupdate.update_dns(zone_name, hostname, ip)
- # We should probably check something here...
- return "good"
+ if request.authorization.username in users:
+ ddns.backend.dnsupdate.update_dns(zone_name, hostname, ip)
+ # We should probably check something here...
+ return "good"
return auth.authenticate("!yours")
return "nohost2"
raise RuntimeError("ooops")