summaryrefslogtreecommitdiff
path: root/source4/dns_server/dns_update.c
Commit message (Collapse)AuthorAgeFilesLines
* s4:dns_server: avoid debug noise on successful updatesStefan Metzmacher2018-01-101-1/+1
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12423 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source4/dns_server/Günther Deschner2016-09-281-1/+1
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* CVE-2016-0771: s4:dns_server: fix idl for dns_txt_recordStefan Metzmacher2016-03-101-25/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | From RFC 1035: 3.3.14. TXT RDATA format +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ / TXT-DATA / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ where: TXT-DATA One or more <character-string>s. TXT RRs are used to hold descriptive text. The semantics of the text depends on the domain where it is found. Each record contains an array of strings instead of just one string. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11128 BUG: https://bugzilla.samba.org/show_bug.cgi?id=11686 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:dns_server: add some const to ↵Stefan Metzmacher2014-11-181-3/+3
| | | | | | | dns_server_process_update/dns_update_allowed arguments Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* dns: Fix a compile warning by casting explicitlyKai Blin2014-10-301-4/+4
| | | | | Signed-off-by: Kai Blin <kai@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:dns_server: handle tombstones in handle_one_update()Stefan Metzmacher2014-08-261-16/+25
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=10749 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:dns_server: use .wType = DNS_TYPE_TOMBSTONE instead of ZERO_STRUCT()Stefan Metzmacher2014-08-261-5/+15
| | | | | | | | | | The result is the same, but it is clearer. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10749 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:dns_server: split out dns_common_replace()Stefan Metzmacher2014-08-261-2/+0
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=10749 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:dns_server: map LDB_ERR_NO_SUCH_OBJECT to WERR_DNS_ERROR_NAME_DOES_NOT_EXISTStefan Metzmacher2014-08-261-5/+16
| | | | | | | | | | | | | | | | This is the correct fix for commit 8b24c43b382740106474e26dec59e1419ba77306 and Bug: https://bugzilla.samba.org/show_bug.cgi?id=9559 With this change we have a consistent behavior between internal server and the bind dlz module. We keep a dangling LDAP object without dnsRecord attribute arround forever. This will be fixed in the following commits. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10749 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* dns: Use new DNS debugclass in DNS serverKai Blin2013-05-161-0/+3
| | | | | Signed-off-by: Kai Blin <kai@samba.org> Reviewed-By: Amitay Isaacs <amitay@gmail.com>
* s4:dns_server: remove wrong and unused dsdb_check_access_on_dn() checkStefan Metzmacher2012-09-121-16/+0
| | | | metze
* dns_server: Attempt to SET and UNSET the sessionInfo to match the incoming userAndrew Bartlett2012-09-121-2/+24
| | | | | | | | | | | | This avoids re-opening the DB as the correct user, but applies all the right ACLs and resulting owner. This needs a bit more testing... Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Kai Blin <kai@samba.org>
* s4 dns: Improve logging of delegated dns updatesKai Blin2012-09-121-1/+1
|
* s4 dns: Make debug output less noisyKai Blin2012-09-071-12/+12
| | | | | Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Fri Sep 7 00:31:56 CEST 2012 on sn-devel-104
* s4 dns: Check if signing user is allowed to update recordsKai Blin2012-09-061-16/+56
| | | | This should fix bug #9142
* s4 dns: Allow configuring signed updatesKai Blin2012-09-051-1/+6
| | | | | Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Wed Sep 5 20:42:46 CEST 2012 on sn-devel-104
* s4 dns: Revert erroneous push from wrong branchKai Blin2012-09-051-6/+1
| | | | | | | I've pushed the wrong branch for this, sorry about that. Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Wed Sep 5 14:10:54 CEST 2012 on sn-devel-104
* s4 dns: Allow configuring signed updatesKai Blin2012-09-051-1/+6
| | | | | Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Wed Sep 5 10:45:22 CEST 2012 on sn-devel-104
* lib/param: move enum dns_update_settings to lib/paramChristian Ambach2012-08-061-1/+1
|
* s4-dns: Fix some typosVolker Lendecke2012-05-301-1/+1
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* s4-dns: Remove some break; statementsVolker Lendecke2012-05-301-8/+0
| | | | | | | We fall through implicitly, and that pattern is used elsewhere in Samba as well. Signed-off-by: Kai Blin <kai@samba.org>
* s4 dns: Allow updating PTR records.Kai Blin2012-03-301-0/+4
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Fri Mar 30 19:26:52 CEST 2012 on sn-devel-104
* s4 dns: Allow changing the dns operation flags in handlersKai Blin2012-03-271-0/+1
|
* s4 dns: Test deleting records and fix a small buKai Blin2012-03-111-0/+4
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Sun Mar 11 02:27:45 CET 2012 on sn-devel-104
* s4 dns: Be less chatty during testsKai Blin2012-03-111-4/+6
|
* s4 dns: Support TXT updates, add testsKai Blin2012-03-111-8/+29
|
* s4-dns: Fix handling of TXT DNS RecordAmitay Isaacs2012-03-021-2/+9
|
* s4 dns: Allow updates based on smb.conf settingKai Blin2011-12-171-2/+4
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Sat Dec 17 04:19:40 CET 2011 on sn-devel-104
* s4 dns: Add some debug outputKai Blin2011-12-171-0/+3
|
* s4 dns: Actually handle the update requestKai Blin2011-12-171-0/+303
|
* s4 dns: Implement RFC-compatible update prescanKai Blin2011-12-171-3/+37
|
* s4 dns: Update prerequisite checking conforming to RFCKai Blin2011-12-171-40/+232
|
* s4 dns: Update requests with QCLASS != IN or ALL trigger NOTIMPLEMENTED errorsKai Blin2011-12-091-0/+5
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Fri Dec 9 03:32:28 CET 2011 on sn-devel-104
* s4 dns: More explicitly use the first question of an update packet onlyKai Blin2011-12-091-1/+1
|
* s4 dns: Get rid of const qualifier for prereqs, we do need to allocate thoseKai Blin2011-12-091-3/+3
|
* s4:dns_server/dns_update.c - remove unreachable statementsMatthias Dieter Wallnöfer2010-11-291-2/+0
|
* s4 dns: Implement update record prescan logicKai Blin2010-10-231-0/+37
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Sat Oct 23 10:58:18 UTC 2010 on sn-devel-104
* s4 dns: Add stub checking if updates are allowedKai Blin2010-10-231-1/+9
|
* s4 dns: Add a prerequisites check for updatesKai Blin2010-10-231-2/+67
|
* s4 dns: Switch to WERRORKai Blin2010-10-231-12/+13
|
* s4 dns: Split up the code into multiple files for easier developmentKai Blin2010-10-231-0/+74