summaryrefslogtreecommitdiffstats
path: root/source/libsmb/namequery.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
|
* More correct fix (hopefully :-) for any memory leaks.Jeremy Allison2008-06-051-1/+17
| | | | | Jerry promised to check :-). Vl also please review. Jeremy.
* build: fix the build.Günther Deschner2008-04-221-2/+2
| | | | Guenther
* Make use of ZERO_STRUCT instead of memset in namequery.cVolker Lendecke2008-04-141-1/+1
|
* Fix Coverity ID 555Volker Lendecke2008-03-151-0/+1
|
* Make resolve_ads() static.Günther Deschner2008-01-161-5/+5
| | | | Guenther
* Fix CID 470. resolve_order can't be NULL here so simplify code.Jeremy Allison2008-01-121-10/+3
| | | | Jeremy.
* Allow cliconnect to loop through multiple ip addressesJeremy Allison2007-12-121-0/+81
| | | | | | | for a server. We should have been doing this for a while, but it's more critical with IPv6. Original patch fixed up by James. Jeremy.
* Ensure we have a non-null flags. Pointed out by Andreas Schneider ↵Jeremy Allison2007-12-101-0/+7
| | | | | | <anschneider@suse.de>. Jeremy.
* Fix errors from next_token conversion. Spotted byJeremy Allison2007-12-101-9/+5
| | | | | Andreas Schneider <anschneider@suse.de>. Jeremy.
* Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison2007-12-101-1/+1
| | | | | | them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy.
* Specifically ask for IP4 addresses if we don't have IP6 support.James Peach2007-12-091-0/+5
|
* Remove next_token - all uses must now be next_token_talloc.Jeremy Allison2007-12-071-13/+17
| | | | | No more temptations to use static length strings. Jeremy.
* Remove some globalsVolker Lendecke2007-12-051-1/+1
|
* Remove pstrings from namequery.c.Jeremy Allison2007-11-271-24/+47
| | | | Jeremy.
* Remove pstring from nmbd.Jeremy Allison2007-11-191-12/+34
| | | | Jeremy.
* Change our DNS code to cope with AAAA records. A6 recordsJeremy Allison2007-10-291-6/+3
| | | | | look like a nightmare to use, so ignore them for now. Jeremy.
* Change all occurrences of zero_addr(&ss,AF_INET) toJeremy Allison2007-10-271-4/+4
| | | | | | | | zero_addr(&ss). All current uses were always of the AF_INET form, so simplify the call. If in the future we need to zero an addr to AF_INET6 this can be done separately. Jeremy.
* Move the horrible hack for link local addresses out of namequery.cJeremy Allison2007-10-261-26/+0
| | | | | | and into util_sock.c. is_ipaddress() now copes with link:local:v6%ifname addresses, as does interpret_string_addr(). Jeremy
* Fix resolve name to resolve IPv6 addresses of link-local%ifaddrJeremy Allison2007-10-251-0/+26
| | | | Jeremy.
* This is a large patch (sorry). Migrate from struct in_addrJeremy Allison2007-10-241-448/+678
| | | | | | | | | | | | | to struct sockaddr_storage in most places that matter (ie. not the nmbd and NetBIOS lookups). This passes make test on an IPv4 box, but I'll have to do more work/testing on IPv6 enabled boxes. This should now give us a framework for testing and finishing the IPv6 migration. It's at the state where someone with a working IPv6 setup should (theorecically) be able to type : smbclient //ipv6-address/share and have it work. Jeremy.
* Fix a crash in resolve_hosts() caused by an out-of-bounds array reference.Gerald (Jerry) Carter2007-10-191-1/+2
|
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-26/+26
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* Move to protocol independent code in most of lib/util_sock.cJeremy Allison2007-10-151-10/+50
| | | | | | | | | We don't use gethostbyname any more except in one case where we're looking for host aliases (I don't know how to do that with getaddrinfo yet). New function should be getaddrinfo(). Next step will be fixing lib/access.c, and then changing libsmb/namequery.c to cope with IPv6 address returns. Jeremy.
* Add start of IPv6 implementation. Currently most of this is avoidingJeremy Allison2007-10-101-11/+24
| | | | | | | | | | IPv6 in winbindd, but moves most of the socket functions that were wrongly in lib/util.c into lib/util_sock.c and provides generic IPv4/6 independent versions of most things. Still lots of work to do, but now I can see how I'll fix the access check code. Nasty part that remains is the name resolution code which is used to returning arrays of in_addr structs. Jeremy.
* r25407: Revert Longhorn join patch as it is not correct for the 3.2 tree.Gerald Carter2007-10-101-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).
* r25400: Windows 2008 (Longhorn) Interop fixes for AD specific auth2 flags,Gerald Carter2007-10-101-0/+29
| | | | and client fixes. Patch from Todd Stetcher <todd.stetcher@isilon.com>.
* r24739: With resolve_ads() allow to query for PDCs as well.Günther Deschner2007-10-101-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-10-101-96/+134
| | | | | | NTSTATUS. 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.
* r23710: Remove some code duplication, we do have a random number generatorVolker Lendecke2007-10-101-7/+3
|
* r22417: Refactor the various daemon run-mode options to make the semanticsJames Peach2007-10-101-1/+1
| | | | of the various flags explicit.
* r20874: We need to distinguish client sitenames per realm. We were overwritingGünther Deschner2007-10-101-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-10-101-5/+1
| | | | | | for a PDC. Guenther
* r20857: Silence gives assent :-). Checking in the fix forJeremy Allison2007-10-101-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-10-101-0/+2
|
* r20603: Slightly simplify logicVolker Lendecke2007-10-101-7/+7
|
* r19754: * When using a krb5 session setup, we don't fill in the server_nameGerald Carter2007-10-101-8/+7
| | | | | | | 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()
* r19652: Trying to track down which caller tries to store a 0 length domain nameGünther Deschner2007-10-101-1/+6
| | | | | | in the affinity cache (which happens all the time here). Guenther
* r19243: Fix debug statement.Günther Deschner2007-10-101-1/+1
| | | | Guenther
* r18199: Allow winbindd to delete a saf_ entry if it knowsJeremy Allison2007-10-101-0/+24
| | | | | it can't talk to it. Jeremy.
* r18007: Ensure we don't namecache KDC entries with port 88Jeremy Allison2007-10-101-0/+2
| | | | | as a generic DC (that should be the LDAP port). Jeremy.
* r18006: Actually a smaller change than it looks. LeverageJeremy Allison2007-10-101-7/+58
| | | | | | | | | 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.
* r17928: Implement the basic store for CLDAP sitenameJeremy Allison2007-10-101-3/+3
| | | | | | | | | | | | | | | | 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.
* r17900: Fix from Michael Adam <ma@sernet.de> - make internal_resolve_nameJeremy Allison2007-10-101-62/+62
| | | | | do what it's supposed to. Jeremy.
* r17881: Another microstep towards better error reporting: Make ↵Volker Lendecke2007-10-101-12/+26
| | | | | | | | | | | | | | | | get_sorted_dc_list return NTSTATUS. If we want to differentiate different name resolution problems we might want to introduce yet another error class for Samba-internal errors. Things like no route to host to the WINS server, a DNS server explicitly said host not found etc might be worth passing up. Because we can not stash everything into the existing NT_STATUS codes, what about a Samba-specific error class like NT_STATUS_DOS and NT_STATUS_LDAP? Volker
* r17795: Finally track down the "ads_connect: Interrupted system call"Gerald Carter2007-10-101-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 Carter2007-10-101-3/+9
| | | | use the generic IP list sort in get_sorted_dc_list().