294 Commits

Author SHA1 Message Date
Thomas Waldmann
6b9c7e9511 add reverse dns lookup results for viewer's current IPs to session, show on hosts overview view (see panel at lower right)
not showing it in home view's jumbotron due to potential cosmetic issues
2013-11-27 08:16:49 +01:00
Thomas Waldmann
71509fe935 fix typo in class name 2013-11-27 07:23:04 +01:00
Thomas Waldmann
0e8f318628 add reverse dns lookup code 2013-11-27 07:14:39 +01:00
Thomas Waldmann
aa610e9c3a implement "update other services", with tests, no ui yet
(can be used when adding the records via django admin)
2013-11-26 08:10:05 +01:00
Thomas Waldmann
886bad5fbe warn (using red text colour) about new secret generation 2013-11-25 18:34:50 +01:00
Thomas Waldmann
ec10cd2a92 be more clear for both use cases for generating a new secret (initial configuration / forgot secret) 2013-11-25 01:44:23 +01:00
Thomas Waldmann
e9605535b8 add counters for client and server faults (per host) 2013-11-24 11:42:59 +01:00
Thomas Waldmann
087c1d2c93 deduplicated fqdn lookup uniqueness check, fixed _update return values (must be Response objects, not bool) 2013-11-24 10:43:15 +01:00
Thomas Waldmann
9cd1b7d9f9 blacklist validator: fix validation error msg
do not talk about "domain" if we check a hostname.
also tell it is because of the blacklist.
2013-11-24 09:50:57 +01:00
Thomas Waldmann
d83df3ead1 use get_user_model and AUTH_USER_MODEL 2013-11-24 09:37:47 +01:00
Thomas Waldmann
a1210b21eb cleanup created_by in models
looks like there was some reference to settings.AUTH_USER_MODEL (which is undefined)

brought Host and Domain model in sync for some fields
2013-11-24 08:34:01 +01:00
Thomas Waldmann
068a27d86c add help for adding a host, cosmetic changes to adding a domain help 2013-11-24 05:43:52 +01:00
Thomas Waldmann
9c82ec021f remove comment from Host __unicode__() for consistency (we do not have the comment in Domain __unicode__() either) 2013-11-24 05:23:20 +01:00
Thomas Waldmann
dd09b6b5af nameserver update key / secret terminology cleanup
key = secret + algorithm
2013-11-24 05:04:07 +01:00
Thomas Waldmann
972a411ef4 make adding a domain workflow more similar to adding a host
don't ask for the secret in the first form, just autocreate one and show the configuration example with it.
2013-11-24 04:14:31 +01:00
Thomas Waldmann
5624f3b95f hosts overview: create thead in same way as for domain overview (fixes small visual difference) 2013-11-23 14:07:17 +01:00
Thomas Waldmann
ed074dd33b catch exception when trying to delete a host we are not allowed to modify anyway 2013-11-23 02:57:15 +01:00
Thomas Waldmann
ab421fb686 models: use sane field lengths
for unique fields there seems to be a limit of 255 chars (not: 256)

some fields are much less than we initially had
2013-11-23 02:51:18 +01:00
Thomas Waldmann
1a02925bfa minor changes: fix typo, move comment to right place 2013-11-21 04:10:04 +01:00
Thomas Waldmann
2b5fdacadc status view is expensive (DB accesses to build statistics), make it logged-in only 2013-11-21 04:07:27 +01:00
Thomas Waldmann
ae9c2f29d0 more tests, better coverage 2013-11-21 04:02:16 +01:00
Thomas Waldmann
d6b5041573 a real nic update api test, using basic auth
generate_secret was modified to support giving a secret (not generating a random one), so it matches the test database

add a User and a Host to the test db
2013-11-16 01:25:05 +01:00
Thomas Waldmann
4c46c30d25 more api tests (mostly triggering execution of some code)
it's hard to test anything without a user / http auth / login / session.
2013-11-15 13:00:57 +01:00
Thomas Waldmann
1f28cb3ed0 name api views, use reverse() in unit tests 2013-11-15 12:14:36 +01:00
Thomas Waldmann
117b34d4c9 fix docstring, is for class, not method 2013-11-14 10:17:53 +01:00
Thomas Waldmann
f6fb8b67bd try to not write into session unless there is really a change or a refresh needed, reduce code duplication
move code from HomeView to context processor
2013-11-14 02:11:44 +01:00
Thomas Waldmann
24b687960e deal with "nameserver not available" and "peer bad signature" in same way as with dns update errors, 2013-11-10 07:04:46 +01:00
Thomas Waldmann
e27d1fa687 update bind9 configuration example / view 2013-11-10 06:48:48 +01:00
Thomas Waldmann
bd3e7c80f7 if a dns update give a rcode != NOERROR, we log it and raise a DnsUpdateError, dyndns2 result code: "dnserr REASON" (also shown on web ui) 2013-11-10 06:29:33 +01:00
Thomas Waldmann
57641f3b9a allow single-host update secrets, make dnstools tests work for everybody
the nsupdate.info zone is configured to allow updating test.nsupdate.info with a non-secret key used for the tests.
we also have a test that tries to update another host with that key and checks that this fails.

change the tests so they only use test.nsupdate.info (if possible).

single-host update secrets need a Domain record for the fqdn of this single host, the fqdn is tried first, before it tries the origin zone.
2013-11-10 05:52:41 +01:00
Thomas Waldmann
4fadb5de82 dnstools tests: always use the same TEST_HOST 2013-11-09 23:19:05 +01:00
Thomas Waldmann
596b03b2b0 domain overview: rather show domain owner than master nameserver IP address
the ip address we use to send updates to is not required to be a publically available nameserver, so it is better not published.
the users of domains can query the official public nameservers from dns in the usual ways.
2013-11-09 18:05:51 +01:00
Thomas Waldmann
cc7b22d63f more help texts 2013-11-08 08:03:12 +01:00
Thomas Waldmann
2eb13ee3b8 remove the screenshots view, it is prone to be outdated and boring work to keep it uptodate
it is replaced by a hint to use a test account, so you can see it all "live" - without needing to register first.
2013-11-08 05:35:10 +01:00
Thomas Waldmann
e58afb792c upgrade to font-awesome 4.0.2 2013-11-06 04:02:37 +01:00
Thomas Waldmann
c3ec4c5a50 Fix/generalize ns update secret generation. Reduce code duplication. Fixes #74. 2013-11-06 02:21:12 +01:00
Thomas Waldmann
1072b7ccf0 fixed levels of some error messages, should work now 2013-11-06 01:30:06 +01:00
Thomas Waldmann
e2f51d5eb1 more pep8 fixes 2013-11-05 00:32:07 +01:00
Thomas Waldmann
51e5efbe8f transform some views from function- to class-based
fixes some pep8 issues. use lowercase function name for the stuff we keep as function.
2013-11-05 00:24:02 +01:00
Thomas Waldmann
4ba29fc3ff detectip: it is not valid without a sessionid, remove the view
and as we currently use the sessionid, we should also name it like that.
2013-11-04 23:09:24 +01:00
Thomas Waldmann
0ce04a64cb urls.py: cosmetic changes, added comments, reorder 2013-11-04 22:17:41 +01:00
Thomas Waldmann
43838cff9b add customization includes / templates for base template (add stuff to head and body) 2013-11-04 00:03:26 +01:00
Thomas Waldmann
9dcefda8d3 make home view customizable via includes 2013-11-03 22:57:37 +01:00
Thomas Waldmann
12c3c052f7 bots don't need to request the ajax_get_ips view 2013-11-03 17:36:04 +01:00
Thomas Waldmann
f7bbb41fd2 show statistics about SSL updates 2013-11-03 08:57:16 +01:00
Thomas Waldmann
e194ac0e46 show whether we received last v4/v6 update via SSL 2013-11-03 08:32:43 +01:00
Thomas Waldmann
aaae69ae61 added notes about ssl/https support on update clients / update service server, use https: in examples, fix obvious bug in dd-wrt example 2013-11-03 08:00:10 +01:00
Thomas Waldmann
e05b1f4583 ddclient configuration template: use ssl, use specific v4/v6 hosts, add comment about ipv6 patch 2013-11-03 07:20:44 +01:00
Thomas Waldmann
95212f4baf fix invalid html, remove unneeded semicolons from js 2013-11-03 05:57:13 +01:00
Thomas Waldmann
0915cc2f68 reindent templates, cosmetic changes only 2013-11-03 05:45:03 +01:00