summaryrefslogtreecommitdiffstats
path: root/source4/dns_server
Commit message (Collapse)AuthorAgeFilesLines
...
* s4-dns: Use talloc_asprintf_append_buffer in create_response_rrVolker Lendecke2012-05-301-2/+2
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* s4-dns: Add some NULL checks to create_response_rrVolker Lendecke2012-05-301-0/+15
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* dlz_bind9: Make the talloc destructor static and return 0.Amitay Isaacs2012-05-241-1/+2
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Thu May 24 03:32:50 CEST 2012 on sn-devel-104
* dlz_bind9: Fix the named crash on reloading namedAmitay Isaacs2012-05-241-1/+17
| | | | | | | | | | When reloading zones, named first creates new zone instance and then shuts down the old instance. Since ldb layer, keeps the same LDB open, talloc_free() on samdb handle, causes talloc "access after use" error. This patch keeps only single context (dlz_bind9_data) and uses reference counting to decide when to actually free the context. Since samdb handle is reused, use talloc_unlink() instead of talloc_free() on samdb handle.
* libcli/dns: make 'clidns' private library out of DNS code in WAF buildAlexander Bokovoy2012-05-231-1/+1
| | | | | | | | | | | | | | | | After consolidating DNS resolver code to lib/addns, there is one piece that still needs to be moved into a common DNS resolver library: DNS_HOSTS_FILE subsystem. Unfortunately, direct move would require lib/addns to depend on libcli/util/{ntstatus.h,werror.h} (provided by errors subsystem). In addition, moving libcli/dns/* code to lib/addns/ would make conflicting the dns_tkey_record struct. The conflict comes from source4/dns_server/ and is due to use of IDL to define the struct. lib/addns/ library also provides its own definition so we either need to keep them in sync (rewrite code in lib/addns/ a bit) or depend on generated IDL headers. Thus, making a private library and subsystem clidns is an intermediate step that allows to buy some time fore refactoring.
* Introduce system MIT krb5 build with --with-system-mitkrb5 option.Alexander Bokovoy2012-05-231-2/+5
| | | | | | | | | | | | | | | | | System MIT krb5 build also enabled by specifying --without-ad-dc When --with-system-mitkrb5 (or --withou-ad-dc) option is passed to top level configure in WAF build we are trying to detect and use system-wide MIT krb5 libraries. As result, Samba 4 DC functionality will be disabled due to the fact that it is currently impossible to implement embedded KDC server with MIT krb5. Thus, --with-system-mitkrb5/--without-ad-dc build will only produce * Samba 4 client libraries and their Python bindings * Samba 3 server (smbd, nmbd, winbindd from source3/) * Samba 3 client libraries In addition, Samba 4 DC server-specific tests will not be compiled into smbtorture. This in particular affects spoolss_win, spoolss_notify, and remote_pac rpc tests.
* s4 dns: unify error handling when bailing outKai Blin2012-05-081-12/+11
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Tue May 8 15:48:25 CEST 2012 on sn-devel-104
* s4-dns: Build BIND DLZ modules with correct private libraryAmitay Isaacs2012-05-071-2/+2
| | | | | | | This fixes rpath for samdb-common private library after make install. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Mon May 7 07:40:29 CEST 2012 on sn-devel-104
* dns server: move very verbose debug to higher level 2 -> 8Matthieu Patou2012-04-291-4/+4
|
* dlz_bind9: Also produce and install binary plugin for bind 9.9Andrew Bartlett2012-04-221-1/+1
| | | | | | | | | Thanks to Alexander Bokovoy <ab@samba.org> for the fix! Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sun Apr 22 10:51:57 CEST 2012 on sn-devel-104
* dlz_bind9: Build shared libraries for both BIND versions 9.8 and 9.9Amitay Isaacs2012-04-163-0/+28
| | | | | This adds #define BIND_VERSION_9_8 and keeps the current version as 9.9, so shared libraries can be built for both BIND versions.
* dlz_bind9: changes to make dlz_bind9 work with BIND 9.9.0Amitay Isaacs2012-04-162-22/+53
| | | | | | | The main changes are: DLZ_DLOPEN_VERSION changed from 1 to 2 isc_boolean_t changed from bool to int dlz_lookup() now takes 2 additional arguments
* 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: Only do recursive queries when allowed/desiredKai Blin2012-03-271-7/+26
| | | | | | | | If recursive queries are switched off in smb.conf or the client doesn't ask for recursion, don't recurse. Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Tue Mar 27 17:39:26 CEST 2012 on sn-devel-104
* s4 dns: Check smb.conf if we should allow recursionKai Blin2012-03-271-2/+3
|
* s4 dns: Allow changing the dns operation flags in handlersKai Blin2012-03-274-5/+23
|
* s4 dns: Only forward for zones we don't ownKai Blin2012-03-273-2/+33
|
* s4 dns: Forward questions we can't answer to another serverKai Blin2012-03-272-7/+80
| | | | | This makes use of libdns and currently hardcodes the forward server, but it works. :)
* 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: Support TXT queriesKai Blin2012-03-111-0/+11
|
* s4 dns: Add support for PTR queries.Kai Blin2012-03-091-1/+5
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Fri Mar 9 12:27:38 CET 2012 on sn-devel-104
* dlz_bind9: Log Samba DEBUG() messages to the bind9 logsAndrew Bartlett2012-03-081-2/+29
|
* s4 dns: Fix TCP handling in the DNS serverKai Blin2012-03-061-13/+13
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Tue Mar 6 21:17:19 CET 2012 on sn-devel-104
* dlz_bind9: Match PTR records as DNS names and not just stringsAmitay Isaacs2012-03-011-1/+1
| | | | | | | This fixes the dynamic update of PTR records. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Thu Mar 1 15:58:05 CET 2012 on sn-devel-104
* s4-dns: Fix handling of TXT DNS RecordAmitay Isaacs2012-03-022-3/+21
|
* dlz_bind9: Fix handling of TXT records with multiple quoted stringsAmitay Isaacs2012-03-021-4/+33
|
* dlz_bind9: This fixes the problem with adding/deleting rdatasetAmitay Isaacs2012-03-021-11/+16
| | | | | | | | | Fix commit 169db333033b72b6f9ac1e7b23f0f2c151218c1f. This change allowed for LDB records without dnsRecord attribute to exist to prevent large number of deleted records. This change fixes the handling of missing dnsRecord attribute and correctly deleting dnsRecord attribute.
* dlz_bind9: Fix the log message levelAmitay Isaacs2012-02-211-5/+5
|
* dlz_bind9: Do not remove LDB record in subrdataset and delrdatasetAmitay Isaacs2012-02-211-13/+8
| | | | | | | | | | | This fixes the problem of large number of deleted records in DNS partitions due to frequent dynamic dns updates from windows clients. The typical pattern for dynamic update get converted into subrdataset() followed by addrdataset(). If there are no dnsRecord attributes left as a result of sub/delrdataset(), leave the LDB entry for dns name as is. The subsequent addrdataset() would add the dnsRecord attribute without re-creating the same entry.
* dlz_bind9: for authenticated user, set the AUTHENTICATED USERS sid in tokenAmitay Isaacs2012-01-251-0/+5
|
* dlz_bind9: create session info from PAC using auth contextAmitay Isaacs2012-01-041-7/+59
| | | | | | | | This fixes the creation of session info from PAC, after changes in gensec code. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Jan 4 01:59:09 CET 2012 on sn-devel-104
* s4 dns: Allow updates based on smb.conf settingKai Blin2011-12-172-2/+29
| | | | | 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-173-0/+383
|
* s4 dns: Implement RFC-compatible update prescanKai Blin2011-12-171-3/+37
|
* s4 dns: Update prerequisite checking conforming to RFCKai Blin2011-12-173-42/+234
|
* s4 dns: Move record lookup to dns_utils.cKai Blin2011-12-173-36/+58
|
* s4 dns: Implement dns record comparison functionKai Blin2011-12-172-0/+57
|
* s4 dns: Implement dns name equality checkKai Blin2011-12-172-0/+10
|
* s4 dns: Fix some typos in comments and a whitespaceKai Blin2011-12-171-3/+3
|
* 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-092-6/+6
|
* s4-dns Use match-by-key in GSSAPI server if principal is not specifiedAndrew Bartlett2011-12-071-22/+5
| | | | | | | | | This allows dlz_bind9 to match on exactly the same key as bind9 itself Andrew Bartlett Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Dec 7 02:20:10 CET 2011 on sn-devel-104
* dlz_bind9: Add command line options for URL and debugAmitay Isaacs2011-12-072-9/+28
| | | | | | | | To specify debug level, use -d <level> in named.conf. To specify sam db, use -H <path/to/sam.ldb> in named.conf. The default log level is set to 0. The log level specified in smb.conf is not used. To set log level, use -d option.
* dlz_bind9: Set debugging output to stderrAmitay Isaacs2011-12-071-0/+3
|
* dlz_bind9: Use client supplied credentials for DNS record updateAmitay Isaacs2011-12-071-0/+79
| | | | This creates the DNS records with correct owner and group settings.
* dlz_bind9: For creating a child entry, use only SEC_ADS_CREATE_CHILDAmitay Isaacs2011-12-071-1/+1
| | | | | The member servers in AD do not have access to modify the parent, but do have access to create child DNS records.