summaryrefslogtreecommitdiffstats
path: root/source/libsmb/namequery.c
Commit message (Collapse)AuthorAgeFilesLines
* r25407: Revert Longhorn join patch as it is not correct for the 3.2 tree.Gerald Carter2007-09-281-29/+0
| | | | | | The translate_name() used by cli_session_setup_spnego() cann rely Winbindd since it is needed by the join process (and hence before Winbind can be run).
* r25403: grab latest changes form 3.2 tree in preparation for release of ↵Gerald Carter2007-09-281-0/+29
| | | | 3.2.0pre1
* r24739: With resolve_ads() allow to query for PDCs as well.Günther Deschner2007-08-281-6/+20
| | | | | | Also add dns query functions to find GCs and DCs by GUID. Guenther
* r24737: Remove older TODO: Convert internal_resolve_name() and friends to ↵Günther Deschner2007-08-281-96/+134
| | | | | | NTSTATUS. Guenther
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-07-101-2/+1
|
* r23780: Find and fix more GPL2 -> GPL3.Jeremy Allison2007-07-091-1/+1
| | | | Jeremy.
* r23710: Remove some code duplication, we do have a random number generatorVolker Lendecke2007-07-041-7/+3
|
* r23218: merge a const warningGerald Carter2007-05-291-1/+1
|
* r20874: We need to distinguish client sitenames per realm. We were overwritingGünther Deschner2007-01-181-1/+1
| | | | | | | the stored client sitename with the sitename from each sucessfull CLDAP connection. Guenther
* r20861: We only use sitespecific DNS lookups when looking for DCs or KDCs, notGünther Deschner2007-01-171-5/+1
| | | | | | for a PDC. Guenther
* r20857: Silence gives assent :-). Checking in the fix forJeremy Allison2007-01-171-22/+36
| | | | | | | | | 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.
* r20604: Fix two memleaks, Coverity ID 337, merge to 3_0_24Volker Lendecke2007-01-081-7/+9
|
* r19798: reducing some diffs...bringing over ntlm_auth changesGerald Carter2006-11-191-1/+6
|
* r19756: Port server affinity fix from SAMBA_3_0:Gerald Carter2006-11-161-8/+7
| | | | | | | | * When using a krb5 session setup, we don't fill in the server_name string the clis_state struct. So call saf_store() after we have the short domain name in the lsa_query_inof_policy code. * Remove unused server string in saf_delete()
* r19488: British trains are at least good for something...Jeremy Allison2006-10-241-18/+108
| | | | | | | Merge back the winbindd changes from SAMBA_3_0 to a release branch. This compiles, but hasn't been valgrinded or tested. That will come... Jeremy.
* r19243: Fix debug statement.Günther Deschner2006-10-111-1/+1
| | | | Guenther
* r17927: Fix memory leak in resolve_ads(). Parent tallocJeremy Allison2006-08-301-2/+3
| | | | | | | context was created but never destroyed. Jerry, you might want to grab this for 3.0.23c. Wonder why none of the static checkers picked this up. Jeremy.
* r17900: Fix from Michael Adam <ma@sernet.de> - make internal_resolve_nameJeremy Allison2006-08-291-62/+62
| | | | | do what it's supposed to. Jeremy.
* r17795: Finally track down the "ads_connect: Interrupted system call"Gerald Carter2006-08-241-14/+34
| | | | | | | 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.
* r17760: The DNS SRV lookup already sorts by priority and weight so don'tGerald Carter2006-08-231-3/+9
| | | | use the generic IP list sort in get_sorted_dc_list().
* r17129: Added tridge's fix for resolve_ads().Jeremy Allison2006-07-191-11/+9
| | | | | | | | | | Original message : fixed a bug which caused resolve_ads() to spin forever if one of the DCs isn't resolvable in DNS. The fix is to leave that DC out of the returned list of DCs. I think the original code intended that anyway, just didn't quite get it right ('i' wasn't incremented in that code path, so the loop didn't terminate)
* r15837: starting sync up for 3.0.23rc1 (in sync with SAMBA_3_0 r15822)Gerald Carter2006-05-231-51/+49
|
* r13987: Fix Coverity bug # 74. This tool is good...Volker Lendecke2006-03-071-0/+1
| | | | | | Thanks, Volker
* r13915: Fixed a very interesting class of realloc() bugs found by Coverity.Jeremy Allison2006-03-071-14/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | realloc can return NULL in one of two cases - (1) the realloc failed, (2) realloc succeeded but the new size requested was zero, in which case this is identical to a free() call. The error paths dealing with these two cases should be different, but mostly weren't. Secondly the standard idiom for dealing with realloc when you know the new size is non-zero is the following : tmp = realloc(p, size); if (!tmp) { SAFE_FREE(p); return error; } else { p = tmp; } However, there were *many* *many* places in Samba where we were using the old (broken) idiom of : p = realloc(p, size) if (!p) { return error; } which will leak the memory pointed to by p on realloc fail. This commit (hopefully) fixes all these cases by moving to a standard idiom of : p = SMB_REALLOC(p, size) if (!p) { return error; } Where if the realloc returns null due to the realloc failing or size == 0 we *guarentee* that the storage pointed to by p has been freed. This allows me to remove a lot of code that was dealing with the standard (more verbose) method that required a tmp pointer. This is almost always what you want. When a realloc fails you never usually want the old memory, you want to free it and get into your error processing asap. For the 11 remaining cases where we really do need to keep the old pointer I have invented the new macro SMB_REALLOC_KEEP_OLD_ON_ERROR, which can be used as follows : tmp = SMB_REALLOC_KEEP_OLD_ON_ERROR(p, size); if (!tmp) { SAFE_FREE(p); return error; } else { p = tmp; } SMB_REALLOC_KEEP_OLD_ON_ERROR guarentees never to free the pointer p, even on size == 0 or realloc fail. All this is done by a hidden extra argument to Realloc(), BOOL free_old_on_error which is set appropriately by the SMB_REALLOC and SMB_REALLOC_KEEP_OLD_ON_ERROR macros (and their array counterparts). It remains to be seen what this will do to our Coverity bug count :-). Jeremy.
* r13893: Fix for Coverity issue CID #164. The first one that I don'tJeremy Allison2006-03-061-0/+2
| | | | | think is a direct bug, but some code that needs clarification :-). Jeremy.
* r13889: Fix resource leak on error path. Coverity bug CID #73.Jeremy Allison2006-03-061-0/+1
| | | | Jeremy.
* r13322: Fix warning time_t != int.Jeremy Allison2006-02-031-2/+2
| | | | Jeremy.
* r13310: first round of server affinity patches for winbindd & net ads joinGerald Carter2006-02-031-113/+210
|
* r7882: Looks like a large patch - but what it actually does is make SambaJeremy Allison2005-06-241-6/+6
| | | | | | safe for using our headers and linking with C++ modules. Stops us from using C++ reserved keywords in our code. Jeremy
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2004-12-071-11/+10
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r3843: If a connection to a DC is requested, open connections ↵Volker Lendecke2004-11-181-3/+3
| | | | | | | | simultaeneously to all DCs found. The first one to reply wins. Volker
* r3264: fix lmhosts lookup so that we don't say we found something when we ↵Gerald Carter2004-10-261-24/+29
| | | | really didn't
* r3143: Allow for multiple DC's to be named as #1c names in lmhosts.Volker Lendecke2004-10-231-13/+26
| | | | Volker
* r2770: oops; internal_resolve_name() should stay static in 3.0Gerald Carter2004-10-011-1/+1
|
* r2768: BUG 1519: save the hostname used in the open_printer_ex() for later ↵Gerald Carter2004-10-011-1/+1
| | | | reuse when filling in the spolss replies (also gets rid of get_called_name()
* r1326: Modification to get_dc_list to check negative cache. From "Joe ↵Jeremy Allison2004-07-021-188/+203
| | | | | | Meadows" <jameadows@webopolis.com>. Jeremy.
* r248: Add support for printing out the MAC address on nmblookup.Richard Sharpe2004-04-161-4/+11
|
* r2: import HEAD into svn+ssh://svn.samba.org/home/svn/samba/trunkCVS Import User2004-04-041-0/+1406
metze