summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/wins.c
Commit message (Collapse)AuthorAgeFilesLines
* wins: fix null pointer crash in nss_wins module.Günther Deschner2008-05-071-0/+3
| | | | Guenther
* Coverity fixesMarc VanHeyningen2008-03-171-2/+8
|
* Fix a memleakVolker Lendecke2008-03-061-0/+1
| | | | Fixes Coverity ID 557
* Fix caller of node_status_query() to use sockaddr_storage().Michael Adam2008-02-271-3/+5
| | | | | | Caller is hidden inside an #ifdef . Michael
* 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.
* Remove more static data from lib/util_sock.c andJeremy Allison2007-11-031-1/+1
| | | | | callers. Jeremy.
* This is a large patch (sorry). Migrate from struct in_addrJeremy Allison2007-10-241-3/+13
| | | | | | | | | | | | | 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.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-2/+2
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* Add start of IPv6 implementation. Currently most of this is avoidingJeremy Allison2007-10-101-1/+4
| | | | | | | | | | 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.
* r25022: Fix coverity #395. Resource leak on error.Jeremy Allison2007-10-101-6/+13
| | | | Jeremy.
* r24737: Remove older TODO: Convert internal_resolve_name() and friends to ↵Günther Deschner2007-10-101-1/+1
| | | | | | 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.
* r20269: merge -r20264:20267 from SAMBA_3_0_24Herb Lewis2007-10-101-0/+5
| | | | more no previous prototype warnings
* r17102: Fix segfault in libnss_wins [bugzilla #3937].Günther Deschner2007-10-101-0/+1
| | | | Guenther
* r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500Derrell Lipman2007-10-101-1/+1
| | | | | | | | | | | | lp_load() could not be called multiple times to modify parameter settings based on reading from multiple configuration settings. Each time, it initialized all of the settings back to their defaults before reading the specified configuration file. This patch adds a parameter to lp_load() specifying whether the settings should be initialized. It does, however, still force the settings to be initialized the first time, even if the request was to not initialize them. (Not doing so could wreak havoc due to uninitialized values.)
* r8572: Remove crufty #define NO_SYSLOG as it's not used at all anymore.Tim Potter2007-10-101-2/+0
|
* r7882: Looks like a large patch - but what it actually does is make SambaJeremy Allison2007-10-101-3/+3
| | | | | | 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 Allison2007-10-101-1/+1
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r1583: Patch by Fabien Chevalier <fabien.chevalier@supelec.fr>Andrew Bartlett2007-10-101-1/+1
| | | | | | | | We may not have any interfaces up at all, so initialise the return variable. Fixes Debian bug #252591 Andrew Bartlett
* r376: BUG 1288: resolve any machine netbios name (0x00) and not just servers ↵Gerald Carter2007-10-101-2/+2
| | | | (0x20)
* r248: Add support for printing out the MAC address on nmblookup.Richard Sharpe2007-10-101-1/+1
|
* Use StrCaseCmp, not strcasecmp. Should fix winbind build on IRIXJelmer Vernooij2004-01-081-2/+2
|
* fixed bad formal parameter type in get_static(); patch Andy PolyakovGerald Carter2003-12-111-1/+1
|
* Fix for bug #299.Tim Potter2003-09-081-30/+80
| | | | | | | | There was some confusion over dynamically allocated lists of pointers (i.e you have to make space for the list of pointers and what they are pointing too) in the memory buffer passed in from libc. Valgrind is much happer now and as a bonus there is no segfault.
* Move a function to avoid a warning.Tim Potter2003-07-231-24/+24
|
* large change:Gerald Carter2003-06-251-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *) consolidates the dc location routines again (dns and netbios) get_dc_list() or get_sorted_dc_list() is the authoritative means of locating DC's again. (also inludes a flag to get_dc_list() to define if this should be a DNS only lookup or not) (however, if you set "name resolve order = hosts wins" you could still get DNS queries for domain name IFF ldap_domain2hostlist() fails. The answer? Fix your DNS setup) *) enabled DOMAIN<0x1c> lookups to be funneled through resolve_hosts resulting in a call to ldap_domain2hostlist() if lp_security() == SEC_ADS *) enables name cache for winbind ADS backend *) enable the negative connection cache for winbind ADS backend *) removes some old dead code *) consolidates some duplicate code *) moves the internal_name_resolve() to use an IP/port pair to deal with SRV RR dns replies. The namecache code also supports the IP:port syntax now as well. *) removes 'ads server' and moves the functionality back into 'password server' (which can support "hostname:port" syntax now but works fine with defaults depending on the value of lp_security())
* Fix some compiler warnings.Tim Potter2003-06-161-2/+0
|
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-25/+26
|
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* merge IRIX winbind support from Samba 2.2 branchHerb Lewis2001-12-221-35/+116
|
* allow IRIX to build nsswitch/libnss_wins.soHerb Lewis2001-12-121-12/+82
|
* Got medieval on another pointless extern. Removed extern struct ipzeroTim Potter2001-11-261-2/+2
| | | | | | | and replaced with two functions: void zero_ip(struct in_adder *ip); BOOL is_zero_ip(struct in_addr ip);
* Removed TimeInit() call from every client program (except for one placeTim Potter2001-11-231-1/+0
| | | | | in smbd/process.c where the timezone is reinitialised. Was replaced with check for a static is_initialised boolean.
* Store some path names in global variables initialized to configureMartin Pool2001-11-191-1/+1
| | | | default, rather than in preprocessor macros.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-2/+0
|
* move to SAFE_FREE()Simo Sorce2001-09-171-2/+1
|
* The big character set handling changeover!Andrew Tridgell2001-07-041-1/+0
| | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation.
* Zero-fill struct hostent.Jeremy Allison2001-05-151-0/+2
| | | | Jeremy.
* Fixed glibc crash problems with libnss_wins.soJeremy Allison2001-05-151-4/+44
| | | | Jeremy.
* Converted to call lib/wins_srv.c:wins_srv_ip() instead of lp_wins_server()Christopher R. Hertel2000-10-111-4/+4
| | | | | | | | | | | | | | | | | | | | when looking up the WINS server address. Please *don't* use lp_wins_server() any more! The wins_srv_ip() function has the following features: - If the WINS server was entered as a DNS name then the translation to an IP address will already have taken place. We used to do this every time a call to the WINS server was made. Ick. - The return value of wins_srv_ip() is a struct in_addr. Ready to go. - When WINS failover is fully implemented, you'll be able to enter a colon- separated list of WINS servers via the WINS SERVER parameter. Using lp_wins_server() directly will fail if this syntax is used. Chris -)-----
* Fixes to allow wins.c to compile to allow building of libnss_wins.so.John Terpstra2000-10-091-2/+11
|
* Instead of handing back a string (which might be a DNS name or an IPChristopher R. Hertel2000-07-191-4/+2
| | | | | | | | | | | | | | | | | | string), the wins_srv module now hands back a struct in_addr when it's called. It caches the IP address once it has been looked up. The IP is cleared (and must be looked up again) if the 'wins server' parameter is reread, or if the node is marked 'dead'. A dead node will not be re-tried for 10 minutes (per a #define in wins_srv.c). As it was, the code was reading the WINS server name or IP directly from lp_wins_server. That's okay, except that if the value was expressed as a name, then a DNS lookup would be done every time the client wanted to talk to the server. I still need to work out the implications of failover regarding the 'unicast subnet' list. Chris -)-----
* First cut toward adding WINS server failover.Christopher R. Hertel2000-07-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | *Note: failover doesn't actually work yet!* It's just that the code I'm adding provides all of the pieces necessary. I do have one big question. Something that I'll have to ask Jeremy, I'm thinkin'. In nmbd/nmbd_subnetdb.c the IP of the WINS server is used to set up the Unicast subnet. ...so what happens if the WINS server changes? My guess is either: a) nothing. b) I'd have to change the unicast subnet entry whenever the WINS server changes. Urq. BTW, the lp_wins_server() function no longer returns the WINS server name or IP. It returns the list of WINS servers entered in smb.conf. To get the currently 'live' WINS server, use the wins_srv() function. Fun, eh? Chris -)-----
* remove scope parameter here tooAndrew Tridgell2000-01-071-3/+3
|
* added basic nsswitch support - this allows you to use a "wins" entryAndrew Tridgell1999-12-171-0/+129
in a /etc/nsswitch.conf hosts line. Only tested on RH6.1, but should work on a broad range of Linux distributions. It could probably be made to work with Solaris pretty easily. It does not build by default. Build it with "make nsswitch"