summaryrefslogtreecommitdiffstats
path: root/source/libads/dns.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Pass NULL to gencache_get when we are not interested in the timeout ↵Volker Lendecke2008-07-111-1/+2
| | | | | | value" This reverts commit 16062dfc3dcc8f1ca0024a3ae21effb889c7ffc0.
* Pass NULL to gencache_get when we are not interested in the timeout valueVolker Lendecke2008-07-031-2/+1
|
* Return NULL in sitename_fetch() if gencache_init() fails. Not falseGerald W. Carter2008-06-281-1/+1
|
* BUG 5107: Fix handling of large DNS replies on AIX and Solaris.Gerald W. Carter2008-04-301-6/+32
| | | | | | | | On AIX, Solaris, and possibly some older glibc systems (e.g. SLES8) truncated replies never give back a resp_len > buflen which ends up causing DNS resolve failures on large tcp DNS replies. Also add more debug lines about processing the DNS reply.
* Remove some globalsVolker Lendecke2007-12-051-1/+1
|
* Add MAX_DNS_NAME_LENGTH, remove more pstrings.Jeremy Allison2007-11-151-4/+4
| | | | Jeremy.
* Change our DNS code to cope with AAAA records. A6 recordsJeremy Allison2007-10-291-105/+189
| | | | | look like a nightmare to use, so ignore them for now. Jeremy.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-9/+9
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* r24739: With resolve_ads() allow to query for PDCs as well.Günther Deschner2007-10-101-28/+109
| | | | | | Also add dns query functions to find GCs and DCs by GUID. Guenther
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r23654: Remove misleading inline comment.Günther Deschner2007-10-101-4/+2
| | | | Guenther
* r22714: Prevent DNS lookup storms when the DNS servers are unreachable.Gerald Carter2007-10-101-9/+40
| | | | | | | | Helps when transitioning from offline to online mode. Note that this is a quick hack and a better solution would be to start the DNS server's state between processes (similar to the namecache entries).
* r22590: Make TALLOC_ARRAY consistent across all uses.Jeremy Allison2007-10-101-4/+8
| | | | | That should be it.... Jeremy.
* r22589: Make TALLOC_ARRAY consistent across all uses.Jeremy Allison2007-10-101-7/+15
| | | | Jeremy.
* r20880: Fix memory leak in new sitename code. You got *really*Jeremy Allison2007-10-101-1/+1
| | | | | close Guenther, then you forgot to use "key" :-) :-). Jeremy.
* r20874: We need to distinguish client sitenames per realm. We were overwritingGünther Deschner2007-10-101-14/+57
| | | | | | | the stored client sitename with the sitename from each sucessfull CLDAP connection. Guenther
* r20862: When in disconnected mode there is no need to try a fallback to a siteGünther Deschner2007-10-101-0/+18
| | | | | | less DNS query. This speeds up offline detection slightly. Guenther
* r20857: Silence gives assent :-). Checking in the fix forJeremy Allison2007-10-101-6/+4
| | | | | | | | | site support in a network where many DC's are down. I heard via Volker there is still a bug w.r.t the wrong site being chosen with trusted domains but we'll have to layer that fix on top of this. Gd - complain if this doesn't work for you. Jeremy.
* r18466: Attempt to fix the AIX buildVolker Lendecke2007-10-101-0/+2
|
* r18234: DNS failures are too common to log at level zero or 1.Jeremy Allison2007-10-101-3/+3
| | | | Jeremy.
* r18006: Actually a smaller change than it looks. LeverageJeremy Allison2007-10-101-8/+37
| | | | | | | | | the get_dc_list code to get the _kerberos. names for site support. This way we don't depend on one KDC to do ticket refresh. Even though we know it's up when we add it, it may go down when we're trying to refresh. Jeremy.
* r17970: Add missing include-guards around ads.h and ads_cldap.h.Jeremy Allison2007-10-101-9/+0
| | | | | | Remove all reference to "Default-First-Site-Name" and treat it like any other site. Jeremy.
* r17945: Store the server and client sitenames in the ADSJeremy Allison2007-10-101-3/+9
| | | | | | struct so we can see when they match - only create the ugly krb5 hack when they do. Jeremy.
* r17942: Jerry is right - when no site support is enabledJeremy Allison2007-10-101-6/+11
| | | | | | the client sitename is "Default-First-Site-Name". Treat this as a blank site (no site configured). Jeremy.
* r17929: Ok, I think I finally figured out where to putJeremy Allison2007-10-101-1/+20
| | | | | | | the code to redo the CLDAP query to restrict DC DNS lookups to the sitename. Jerry, please check to stop me going insane :-). Jeremy.
* r17928: Implement the basic store for CLDAP sitenameJeremy Allison2007-10-101-5/+94
| | | | | | | | | | | | | | | | support when looking up DC's. On every CLDAP call store the returned client sitename (if present, delete store if not) in gencache with infinate timeout. On AD DNS DC lookup, try looking for sitename DC's first, only try generic if sitename DNS lookup failed. I still haven't figured out yet how to ensure we fetch the sitename with a CLDAP query before doing the generic DC list lookup. This code is difficult to understand. I'll do some experiments and backtraces tomorrow to try and work out where to force a CLDAP site query first. Jeremy.
* r17910: remove incorrect comment (code has already been fixed)Gerald Carter2007-10-101-3/+0
|
* r17795: Finally track down the "ads_connect: Interrupted system call"Gerald Carter2007-10-101-2/+33
| | | | | | | error. Fix our DNS SRV lookup code to deal with multi-homed hosts. We were noly remembering one IP address per host from the Additional records section in the SRV response which could have been an unreachable address.
* r17242: BUG 3957: make sure to zero memory in the SRV hostlist in case there ↵Gerald Carter2007-10-101-1/+1
| | | | is not an A record for each SRV name
* r17239: BUG 3959: patch from William Charles <william@charles.name> to fix a ↵Gerald Carter2007-10-101-7/+1
| | | | segv in the DNS SRV lookups dur to calling rand()
* r17146: Starting to cleanout my local tree someGerald Carter2007-10-101-16/+199
| | | | | * add code to lookup NS records (in prep for later coe that does DNS updates as part of the net ads join)
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-0/+4
| | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
* r15544: make sure to define NS_PACKETSZ for Bind 4 interfaces (fix build on us4)Gerald Carter2007-10-101-1/+6
|
* r15464: fix dns build breakage on IRIX and OpenBSDGerald Carter2007-10-101-5/+10
|
* r15463: compile fix for new DNS code for machine using Bind 4 libs (old IRIX ↵Gerald Carter2007-10-101-0/+8
| | | | host)
* r15462: replace the use of OpenLDAP's ldap_domain2hostlist() forGerald Carter2007-10-101-0/+353
locating AD DC's with out own DNS SRV queries. Testing on Linux and Solaris.