summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/namequery.c
Commit message (Collapse)AuthorAgeFilesLines
...
* s3: Move setting the name_query timeoutVolker Lendecke2011-04-251-9/+9
| | | | An async caller might want a different timeout behaviour
* s3-messages: make ndr_messaging.h part of messages.h.Günther Deschner2011-03-301-1/+0
| | | | Guenther
* s3-libsmb: put namequery headers to nmblib.hGünther Deschner2011-03-301-0/+1
| | | | | | | We might find a better name for it and merge other namequery related things as well here... Guenther
* s3: Make is_zero_addr take a sockaddr_storageVolker Lendecke2011-02-271-7/+7
| | | | | | | All callers had to cast this anyway Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Feb 27 11:02:53 CET 2011 on sn-devel-104
* s3: move some stuff out of smb.h to better locations.Günther Deschner2011-02-091-0/+3
| | | | Guenther
* netlogon: move netlogon helpers to ../libcli/netlogon.Günther Deschner2011-01-071-1/+1
| | | | Guenther
* s3: Remove some unused codeVolker Lendecke2011-01-071-26/+0
|
* s3: Make name_query use /tmp/.nmbd/unexpectedVolker Lendecke2011-01-071-215/+264
|
* s3: Make node_status_query use /tmp/.nmbd/unexpectedVolker Lendecke2011-01-071-65/+174
|
* s3: Add nb_trans_send/recvVolker Lendecke2011-01-071-0/+197
| | | | | | | This does an async port 137 transaction: It connects to /tmp/.nmbd/unexpected, sends out the query and then waits for a reply on both the socket as well as data from /tmp/.nmbd/unexpected. Every packet is passed through a validator. If that returns true, the packet received is finally accepted.
* s3: Add sock_packet_readVolker Lendecke2011-01-071-0/+215
| | | | Read packets from both a socket and from /tmp/.nmbd/unexpected simultaneously
* s3: Fix two uninitialized variablesVolker Lendecke2010-12-301-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Dec 30 12:52:47 CET 2010 on sn-devel-104
* s3: Make name_query return NTSTATUSVolker Lendecke2010-12-281-20/+26
| | | | | | | Also use talloc for the result Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Dec 28 18:21:05 CET 2010 on sn-devel-104
* s3: Make node_status_query return NTSTATUSVolker Lendecke2010-12-281-20/+31
| | | | | | | Also make the result talloc'ed Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Dec 28 13:46:59 CET 2010 on sn-devel-104
* s3: Remove an ancient typedefVolker Lendecke2010-12-281-6/+6
|
* s3: Fix some typosVolker Lendecke2010-12-281-2/+3
|
* s3:libsmb/namequery.c: don't leak 'pserver'Stefan Metzmacher2010-12-221-2/+2
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Dec 22 09:54:31 CET 2010 on sn-devel-104
* Fix the unexpected.tdb database problem. Change nmbd to store theJeremy Allison2010-11-141-5/+30
| | | | | | | | | | | | | | | | | | | | | transaction id of packets it was requested to send via a client, and only store replies that match these ids. On the client side change clients to always attempt to ask nmbd first for name_query and node_status calls, and then fall back to doing socket calls if we can't talk to nmbd (either nmbd is not running, or we're not root and cannot open the messaging tdb's). Fix readers of unexpected.tdb to delete packets they've successfully read. This should fix a long standing problem of unexpected.tdb growing out of control in noisy NetBIOS envioronments with lots of bradcasts, yet still allow unprivileged client apps to work mostly as well as they already did (nmblookup for example) in an environment when nmbd isn't running. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sun Nov 14 05:22:45 UTC 2010 on sn-devel-104
* s3: fix order of arguments in nsec_time_diff callBjörn Jacke2010-09-171-2/+2
|
* s3: use nsec_time_diff instead of TspecDiffBjörn Jacke2010-09-161-2/+2
|
* s3: use monotonic clock for time deltas in namequery functionsBjörn Jacke2010-08-311-12/+12
|
* s3-libads: move ads_dns out of main includes.Günther Deschner2010-07-011-0/+1
| | | | Guenther
* s3: only use netlogon/nbt header when needed.Günther Deschner2010-05-311-0/+1
| | | | Guenther
* s3 move the sitename cache in its own fileSimo Sorce2010-02-231-0/+1
|
* s3-libsmb: use TYPESAFE_QSORT() in namequery codeAndrew Tridgell2010-02-141-14/+12
| | | | | This one was a bit trickier. I'd appreciate it if someone else can look over this.
* s3:nmbd: also listen explicit on the subnet broadcast addressesStefan Metzmacher2010-02-081-2/+4
| | | | | | | | | And send replies always via the unicast address of the subnet. This behavior is off by default (as before) and can be enabled with "nmbd:bind explicit broadcast = yes". metze
* libcli/nbt Move more of lmhosts lookup into common codeAndrew Bartlett2009-11-041-45/+15
| | | | | | This aims to eventually share this with Samba4. Andrew Bartlett
* libcli:nbt make the lmhosts parsing code and dependicies commonAndrew Bartlett2009-09-151-128/+0
| | | | | | This starts the process to have Samba4 use lmhosts. Andrew Bartlett
* Added prefer_ipv4 bool parameter to resolve_name().Jeremy Allison2009-07-281-5/+58
| | | | | | | | | | W2K3 DC's can have IPv6 addresses but won't serve krb5/ldap or cldap on those addresses. Make sure when we're asking for DC's we prefer IPv4. If you have an IPv6-only network this prioritizing code will be a no-op. And if you have a mixed network then you need to prioritize IPv4 due to W2K3 DC's. Jeremy.
* Remove gencache_init/shutdownVolker Lendecke2009-07-151-12/+0
| | | | | gencache_get/set/del/iterate call gencache_init() internally anyway. And we've been very lazy calling gencache_shutdown, so this seems not really required.
* [FIX Bug 6235] domain enumeration breaks if master browser has space in nameDerrell Lipman2009-04-271-1/+2
| | | | | | | | | | | Jeremy: please review to ensure this doesn't appear to break anything The function name_status_find() is documented as used for finding a server's name given its IP address. It was, however, looking for the first matching name which could be a group name at times. This fix ensures that group names are skipped when scanning for a matching name. Derrell
* Interesting C compiler you have there... :-)Volker Lendecke2009-02-191-1/+1
|
* Fix coverity CID-602. Possible use of uninitialized var.Jeremy Allison2009-02-181-1/+1
| | | | Jeremy.
* Probably fixes a crash during name resolution when log level >= 10Ted Percival2009-02-031-1/+1
| | | | | and libc segfaults if printf is passed NULL for a "%s" arg (eg. Solaris).
* s3:libsmb/namequery.c: add saf_join_store() functionStefan Metzmacher2008-12-131-3/+65
| | | | | | | | | | | | saf_join_store() should be called after a successful domain join, the affinity to the dc used at join time has a larger ttl, to avoid problems with delayed replication. metze Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 80e74a27c55c01221091e3eec930c2ac4433c22c)
* s3: libsmb/namequery: fallback to returning all dcs, when none is available ↵Stefan Metzmacher2008-12-131-0/+9
| | | | | | | | | | | | | | in the requested site It could happen that all dcs in a site are unavailable (some sites have only one dc) and then we need to fallback to get all dcs. metze Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit c127367b1dd622eeceb1f47de0a047c297dda222)
* s3: Change sockaddr util function names for consistencyTim Prouty2008-12-031-5/+5
| | | | Also eliminates name conflicts with OneFS system libraries
* Use sockaddr_storage only where we rely on the size, use sockaddrJelmer Vernooij2008-10-231-18/+18
| | | | | otherwise (to clarify we can also pass in structs smaller than sockaddr_storage, such as sockaddr_in).
* 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. (This used to be commit 114ca8577568cdb5a81d8734f1d1d096f1b36c36)
* Pass NULL to gencache_get when we are not interested in the timeout valueVolker Lendecke2008-07-031-2/+1
| | | | (This used to be commit 16062dfc3dcc8f1ca0024a3ae21effb889c7ffc0)
* More correct fix (hopefully :-) for any memory leaks.Jeremy Allison2008-06-051-1/+17
| | | | | | Jerry promised to check :-). Vl also please review. Jeremy. (This used to be commit 8abc6e742147486a62b4a3f9845e34062845d8ea)
* build: fix the build.Günther Deschner2008-04-221-2/+2
| | | | | Guenther (This used to be commit 09a0001063d5bdd9bdc7abfbf1467beb062de049)
* Make use of ZERO_STRUCT instead of memset in namequery.cVolker Lendecke2008-04-141-1/+1
| | | | (This used to be commit 4f1d49615e1407b9c3ad5eeb50a248b8fee50e23)
* Fix Coverity ID 555Volker Lendecke2008-03-151-0/+1
| | | | (This used to be commit 44122f06d02492a7a0a37413d6f975c3b1e3c283)
* Make resolve_ads() static.Günther Deschner2008-01-161-5/+5
| | | | | Guenther (This used to be commit 57dc747136e880a25c03bdc4a1431fc41afd93a1)
* Fix CID 470. resolve_order can't be NULL here so simplify code.Jeremy Allison2008-01-121-10/+3
| | | | | Jeremy. (This used to be commit 2e75f3ecdf9890b9d7d4bd03f3fa15ef74816d5d)
* 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. (This used to be commit 5c7f7629a97ef0929e00e52f1fae4386c984000b)
* Ensure we have a non-null flags. Pointed out by Andreas Schneider ↵Jeremy Allison2007-12-101-0/+7
| | | | | | | <anschneider@suse.de>. Jeremy. (This used to be commit cafde6c37259de587d3775a2d229abd253d2376d)
* Fix errors from next_token conversion. Spotted byJeremy Allison2007-12-101-9/+5
| | | | | | Andreas Schneider <anschneider@suse.de>. Jeremy. (This used to be commit b40efc2fe63a3420b62fbf1ea8936112c5a24bdc)
* 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. (This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)