summaryrefslogtreecommitdiffstats
path: root/lib/addns
Commit message (Collapse)AuthorAgeFilesLines
* libs: s3 and s4: make our dns lookup code signal-safe.Jeremy Allison2014-04-101-5/+24
| | | | | | | | | | | | | | Cope with -1,EINTR returns. Needed as this code can be called from inside smbd. Also fixes a bug in not checking the return from poll() correctly. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Kai Blin <kai@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Apr 10 22:06:08 CEST 2014 on sn-devel-104
* lib/addns: remove compiler warningsStefan Metzmacher2012-11-131-2/+2
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* lib/addns: don't depend on the order in resp->answers[]Stefan Metzmacher2012-11-131-3/+12
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* lib/addns: remove pointless check for resp->num_additionals != 1Stefan Metzmacher2012-11-131-2/+1
| | | | | | | | | | We never use resp->additionals, so there's no reason to check. This fixes dns updates against BIND9 (used in a Samba4 domain). Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* lib-addns: ensure that allocated buffer are pre set to 0Matthieu Patou2012-10-071-12/+12
| | | | | | It avoid bugs when one of the buffer is supposed to contain a string that is not null terminated (ie. label->label) and that we don't force the last byte to 0.
* lib/addns: remove defines we don't need or have for sure via libreplaceBjörn Jacke2012-07-051-84/+0
|
* lib/addns: remove use of uint8 uint16 and uint32 in favour of C99 typesBjörn Jacke2012-07-056-112/+112
|
* build: Remove all references to libuuidAndrew Bartlett2012-05-271-7/+0
| | | | | | | | | We simply do not need this library any more. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sun May 27 11:08:22 CEST 2012 on sn-devel-104
* Eliminate dependency on an external uuid library.Andriy Syrovenko2012-05-274-19/+10
|
* dns_hosts_file: move to a separate subsystemAlexander Bokovoy2012-05-251-1/+1
| | | | | | | | | | | After discussion with Kai move dns_hosts_file to a separate subsystem and merge it into libaddns private library for s3/s4 client use. Also remove dependency in libcli/nbt, the code from libcli/dns subsystems is not used there at all. Autobuild-User: Alexander Bokovoy <ab@samba.org> Autobuild-Date: Fri May 25 22:22:44 CEST 2012 on sn-devel-104
* 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-233-5/+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.
* dns: fix comments and make s4/libcli/resolve dns resolver workingAlexander Bokovoy2012-05-231-3/+3
| | | | | | | | After migrating to use libaddns, reply_to_addrs() needed to change the way answers are iterated through. Originally libroken implementation gave all answers as separate records with last one being explicitly NULL. libaddns unmarshalling code gives all non-NULL answers and should be iterated with explicit reply->num_answers in use.
* s4-resolve: Remove dependency on librokenSimo Sorce2012-05-231-7/+2
| | | | Use available native samba resolver functions
* addns: Make ads_dns_lookup_srv pulicSimo Sorce2012-05-232-1/+6
|
* Move source3/libads/dns.c to lib/addnsSimo Sorce2012-05-233-0/+976
|
* addns: Fix talloc hiereachySimo Sorce2012-05-231-1/+1
| | | | Attach request to local memory context not to potentially long lived connection
* addns: clean up headersSimo Sorce2012-04-261-33/+0
| | | | All this stuff is already included properly in the replace headers on top.
* lib/replace: split out GSSAPI from lib/replace/system/kerberos.h into ↵Alexander Bokovoy2012-04-251-0/+1
| | | | | | | | | | | | | | lib/replace/system/gssapi.h With waf build include directories are defined by dependencies specified to subsystems. Without proper dependency <gssapi/gssapi.h> cannot be found for embedded Heimdal builds when there are no system-wide gssapi/gssapi.h available. Split out GSSAPI header includes in a separate replacement header and use that explicitly where needed. Autobuild-User: Alexander Bokovoy <ab@samba.org> Autobuild-Date: Wed Apr 25 00:18:33 CEST 2012 on sn-devel-104
* addns: Fix the Solaris/Illumos build.Ira Cooper2012-03-072-0/+10
| | | | | | uuid_t is not defined without including sys/uuid.h, configure+waf checks added. Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-libads: Move to using only the HAVE_KRB5 defineAndrew Bartlett2012-02-131-2/+2
| | | | | | HAVE_KRB5 already implies that GSSAPI is present as well. Andrew Bartlett
* s3-lib/addns: Move to system/kerberos.h and HAVE_KRB5Andrew Bartlett2012-02-132-18/+3
|
* Fix uninitialized variable frees on error paths.Jeremy Allison2011-11-231-11/+11
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Nov 23 22:38:13 CET 2011 on sn-devel-104
* Ensure we don't free uninitialized variables.Jeremy Allison2011-11-231-2/+2
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Nov 23 02:27:53 CET 2011 on sn-devel-104
* s3 libaddns: Prevent a crash when dns_create_update failsKai Blin2011-11-221-1/+1
| | | | | | | | | | | | When dns_create_update() fails, it does not initialize *req, and then TALLOC_FREE(req) in the error handling crashes if we're lucky. Instead of going into the generic error handling, treat the failure in dns_create_update() like dns_create_update_request() and just pass on the error. Thanks to Harry Mason for reporting this issue. Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Tue Nov 22 14:29:07 CET 2011 on sn-devel-104
* addns: Remove unused empty header fileKai Blin2011-09-251-30/+0
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Sun Sep 25 09:15:09 CEST 2011 on sn-devel-104
* addns: Allow creating AAAA records during updatesKai Blin2011-09-242-4/+60
|
* lib/addns: Remove unused TALLOC_ macrosAndrew Bartlett2011-09-071-42/+0
|
* s3-talloc Change TALLOC_MEMDUP() to talloc_memdup()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_MEMDUP isn't standard talloc.
* s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett2011-06-094-6/+6
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-094-13/+13
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett2011-06-092-2/+2
| | | | | | | Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
* More const fixes. Remove CONST_DISCARD.Jeremy Allison2011-05-062-3/+3
|
* s3: Eliminate select from libaddnsVolker Lendecke2011-02-281-13/+11
|
* s3: Fix some nonempty blank linesVolker Lendecke2011-02-101-2/+2
|
* lib/addns: move DNS client library to the main directory.Günther Deschner2011-01-0610-0/+2537
Guenther