Commit Graph

1135 Commits

Author SHA1 Message Date
SIPOS, Peter
562b7e2053 Add create_reverse_domain function to Domain
This function will create automatically the reverse lookup 
domain for the applied record of a Domain.
And also grant the privileges from the original Domain.
2016-11-16 14:09:13 +01:00
SIPOS, Peter
bbb71f401c Add try block into domain.get_id_by_name function
If we try to check if a domain exists, and we fetch with
get_id_by_name() function it will return with None if
the domain not exists, and return the id when yes.
2016-11-16 14:03:14 +01:00
SIPOS, Peter
88f0faa73b Add AUTOMATIC_REVERSE_PTR option to cfg
We'll use this option to create reverse lookup domains
and PTR records inside them when creating A or AAAA records
in any domain.
2016-11-15 11:01:10 +01:00
bergzand
28f3dba050 Fix issue #133. Store hash as '*' for external users
Set password to '*' for users created by the create_user method. Should cause an invalid password hash for non local users added to the database
2016-09-28 10:50:37 +02:00
Khanh Ngo
4f122830bc Merge pull request #142 from kaechele/master
Replace python libraries with better maintained versions
2016-09-19 00:10:10 +07:00
Felix Kaechele
cae8f92c97 Replace py-bcrypt with bcrypt
bcrypt is more common and better maintained

Signed-off-by: Felix Kaechele <felix@kaechele.ca>
2016-09-17 07:32:33 -07:00
Felix Kaechele
d7a218a212 Ensure correct encoding when hashing and verifying
Depending on the database backend the string might not be UTF-8 encoded.
This makes sure that the hashing function works regardless of that.

Signed-off-by: Felix Kaechele <felix@kaechele.ca>
2016-09-17 07:25:05 -07:00
Felix Kaechele
1712f26470 Change shebang lines to work universally
Using env enables the scripts to run in virtualenv as well as in a
differently named or bare environment.

Signed-off-by: Felix Kaechele <felix@kaechele.ca>
2016-09-17 06:49:23 -07:00
Felix Kaechele
b8e38b4d2f Replace PyQRCode with qrcode
qrcode is more common and better maintained

Signed-off-by: Felix Kaechele <felix@kaechele.ca>
2016-09-17 06:41:22 -07:00
Felix Kaechele
9b8c85c5c1 Replace onetimepass with pyotp
pyotp is more common and better maintained

Signed-off-by: Felix Kaechele <felix@kaechele.ca>
2016-09-17 06:37:20 -07:00
Felix Kaechele
8118ed0a75 Fix noeol in requirements.txt
Signed-off-by: Felix Kaechele <felix@kaechele.ca>
2016-09-17 06:34:06 -07:00
Khanh Ngo
460b4b65fe Adjust field length in History table 2016-09-13 14:07:48 +07:00
Khanh Ngo
194d95af57 Merge pull request #139 from Cultti/master
Fix issue with deleting domain
2016-09-13 10:12:48 +07:00
Timo Salola
18ed4b528f Fix issue with deleting domain 2016-09-12 12:20:42 +00:00
Khanh Ngo
39fab003f2 Merge pull request #132 from pschiffe/master
Log to file only if the file exists
2016-09-05 09:22:12 +07:00
Peter Schiffer
558279e009 Log file doesn't need to exist before logger can log to it 2016-09-01 09:07:33 +02:00
Peter Schiffer
444be2c060 Log to file only if the file exists
If LOG_FILE config option contained invalid file, pdns admin wouldn't start.
Also, it wasn't possible to log only to stdout/stderr correctly, because
setting the log file to /dev/stdout would double the logs messages as the pdns
admin is already logging to the stderr.
2016-08-31 23:11:04 +02:00
Khanh Ngo
59e91ec7b9 Merge pull request #125 from timfeirg/master
models refactoring
2016-08-26 10:48:10 +07:00
CMGS
04e068787a refactor, make model more pythonic 2016-08-25 14:35:48 +08:00
Khanh Ngo
4a8e607ed2 Adjustment to not require PRETTY_IPV6_PTR config key by default. 2016-08-25 10:00:47 +07:00
Khanh Ngo
02bd378391 Merge pull request #118 from jallakim/pretty-ipv6-ptr
Pretty IPv6 PTR. Use the actual IPv6 address when editing PTR.
2016-08-25 09:51:10 +07:00
Khanh Ngo
e014767802 Merge pull request #121 from jallakim/pretty-history
Pretty history details
2016-08-23 10:31:53 +07:00
Khanh Ngo
7f8374553a Merge pull request #124 from timfeirg/master
set user object id after created
2016-08-23 10:30:15 +07:00
CMGS
4a3c4b53cc set user object id after created 2016-08-23 10:52:35 +08:00
Joachim Tingvold
9348afc26e Pretty history details. 2016-08-21 14:46:23 +00:00
Khanh Ngo
8e58999f5a Merge pull request #117 from jallakim/add-record-fix
Fix issues when adding a record, and sort and/or search is involved
2016-08-20 18:11:12 +07:00
Joachim Tingvold
756b2d04b6 Add 'pretty IPv6 PTR' as a feature. 2016-08-19 23:28:59 +00:00
Joachim Tingvold
9ec1ac3e46 Update requirements. 2016-08-19 23:25:53 +00:00
Joachim Tingvold
8908c7d69b Cosmetics. 2016-08-19 23:07:36 +00:00
Joachim Tingvold
671a319e93 Pretty IPv6 PTR. Use the actual IPv6 address when editing PTR.
Rather than dealing with ip6.arpa-dotted-strings from hell, you can
now edit IPv6 PTR-records using the IPv6 address.
2016-08-19 23:04:20 +00:00
Joachim Tingvold
4f5b2e5c50 Set focus to the first field when adding a new row. 2016-08-19 18:13:34 +00:00
Joachim Tingvold
480a00bb87 Fix issues when adding a record, and sort and/or search is involved.
Previously this caused the newly added record to either appear at the
bottom, or not appear at all. Now it will always be added at the top,
and whatever search present is cleared.
2016-08-19 17:56:28 +00:00
ssendev
03e0f50795 Allow to change root domain record via dyndns 2016-08-18 22:05:15 +02:00
Khanh Ngo
4ff755bc20 Merge pull request #111 from elitest/fix-ad-config
Clean up SQL and AD config
2016-08-17 09:41:38 +07:00
Jim Shaver
a8a15ace82 Simply Docker config 2016-08-16 22:04:40 +00:00
Jim Shaver
af61b51c23 clean up SQL config to be inline with the README 2016-08-16 16:54:07 +00:00
Jim Shaver
9cabb2ef16 Add AD config to config templates 2016-08-16 15:21:29 +00:00
Khanh Ngo
d5fd1cc6d6 Merge pull request #107 from elitest/fix-gravatar
Fix NoneType error when logging in with AD
2016-08-16 09:37:00 +07:00
Khanh Ngo
3cf76d94f0 Merge pull request #106 from vdchuyen/master
Fix domain delete action if uwsgi path mount is not /
2016-08-16 09:29:08 +07:00
Jim Shaver
1b1153c7a6 Fix NoneType error when logging in with AD 2016-08-16 01:47:33 +00:00
Chuyen Vo
4a1d2055de Fix domain delete action if uwsgi path mount is not /
For ex: mount = /pdsn-admin=run.py
2016-08-15 15:06:16 +07:00
Khanh Ngo
7ef76484d0 Merge pull request #103 from timfeirg/master
support github oauth2 login
2016-08-14 09:28:15 +07:00
timfeirg
683f633d7d minor code style change 2016-08-13 00:49:53 +08:00
CMGS
186aedcfc7 github oauth login 2016-08-13 00:49:46 +08:00
Khanh Ngo
5eaf422f0d Merge pull request #104 from wzyboy/remove-mysql-dep
Users could use SQLite instead of MySQL
2016-08-12 17:01:02 +07:00
Zhuoyun Wei
635cc8c3b3 Users could use SQLite instead of MySQL 2016-08-12 16:15:38 +08:00
Khanh Ngo
68dc4f4148 Merge pull request #97 from dorion/master
Fix route when the zone name containing slash character.
2016-08-02 20:45:10 +07:00
Tamás Dévai
01dd8fd893 Fix route when the zone name containing slash character. 2016-08-02 10:59:31 +02:00
Khanh Ngo
998e70a642 Merge pull request #95 from jallakim/update-ttl
Use correct TTL in updates
2016-07-29 09:46:49 +07:00
Joachim Tingvold
28796ed286 Fix issue where records could get deleted when different TTL. 2016-07-27 15:01:23 +00:00