16 Commits

Author SHA1 Message Date
Thomas Waldmann
adc6315a34 implemented authorized nic update view (via admin session) 2013-09-29 02:43:47 +02:00
Fabian Faessler
abe8ee41ff Merge branch 'master' of github.com:asmaps/nsupdate.info
Conflicts:
	nsupdate/main/urls.py
2013-09-29 02:08:39 +02:00
Fabian Faessler
374288d20a changed updateIp to detectIP 2013-09-29 02:07:58 +02:00
Thomas Waldmann
0a297b04ee style fix: use with with open, os.path.join for pathes 2013-09-29 01:59:47 +02:00
Thomas Waldmann
26a911824d pep8 fixes 2013-09-29 01:29:01 +02:00
Fabian Faessler
a9cca9071b Merge branch 'master' of github.com:asmaps/nsupdate.info 2013-09-29 01:12:35 +02:00
Fabian Faessler
aabc5d78d6 updadd Host fields. serve 1px image instead of OK text in /updateip/. favicon change. 2013-09-29 01:12:23 +02:00
Thomas Waldmann
d558e2ece2 store update_secret as salted sha1 (use crypto code from django), fix bug: we also need to catch NoAnswer, not just NXDOMAIN.
NoAnswer == there is a record, but not of the type (A or AAAA) we requested.
NXDOMAIN == there is no record at all.
2013-09-29 00:34:47 +02:00
Thomas Waldmann
ec3869c9d0 verify username (fqdn) and password (update secret) against the database, improve docstrings 2013-09-28 23:32:47 +02:00
Thomas Waldmann
60353a6429 implement / configure logging to stderr, reorder actions for update api, so that a lot of info can be logged 2013-09-28 21:42:04 +02:00
Thomas Waldmann
44770d9cbd small style change 2013-09-28 21:42:04 +02:00
Thomas Waldmann
add5e6a379 implemented update api (still without checking the DB), misc. cleanups 2013-09-28 20:39:33 +02:00
Fabian Faessler
a96c7b4608 imrpoved ipv4/ipv6 check. now always update ip, in case host changes IP. added a create_host() method for the HostForm. 2013-09-28 20:18:20 +02:00
Fabian Faessler
eb30914704 added comment field in host. added admin and forms. 2013-09-28 20:01:09 +02:00
Fabian Faessler
04602c53a6 get ipv4 and ipv6 adr from session 2013-09-28 19:01:40 +02:00
Fabian Faessler
366f809e7f moved the /myip call into the api module 2013-09-28 18:46:31 +02:00