Richard Sharpe
5c1f8adc33
Convert all uint32/16/8 to _t in source3/libsmb.
...
Signed-off-by: Richard Sharpe <rsharpe@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2015-05-13 19:11:23 +02:00
Volker Lendecke
9432e20327
namequery: namequery: suppress bogus warning "resolve_name: unknown name switch type"
...
Based on a patch by Uri Simchoni <urisimchoni@gmail.com>
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2015-05-13 19:11:23 +02:00
Volker Lendecke
9750eb7bab
libsmb: Make "ip_service_compare" static
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Feb 27 06:20:58 CET 2015 on sn-devel-104
2015-02-27 06:20:58 +01:00
Andreas Schneider
a5e3a198d0
libsmb: Do not lookup invalid netbios names.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2015-02-23 22:32:48 +01:00
Andreas Schneider
48929ca9eb
s3-libsmb: Remove obsolete support for dns_host_file.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2014-12-18 06:47:40 +01:00
Andreas Schneider
7f00fcf558
addns: Remove support for dns_host_file.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2014-12-18 06:47:40 +01:00
Garming Sam
8b8ebb4798
param: rename lp function and variable from 'passwordserver' to 'password_server'
...
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2014-02-07 16:19:10 -08:00
Andreas Schneider
1461d873a4
s3-libsmb: Fix a memory leak in get_pdc_ip().
...
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
2013-12-06 01:14:09 +01:00
Jeremy Allison
32037e0533
Add a talloc context to sitename_fetch().
...
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
2013-09-05 09:17:27 -07:00
Jeremy Allison
6b915bfd0f
Add a talloc context to saf_fetch().
...
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
2013-09-05 09:17:13 -07:00
Volker Lendecke
8a7246ac2c
lib: Add a "mem_ctx" arg to gencache_get (unused so far)
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-09-05 09:16:23 -07:00
Stefan Metzmacher
d0bca41f48
s3:libsmb: s/struct event_context/struct tevent_context
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
2013-02-19 23:47:54 +01:00
Stefan Metzmacher
c8dda78e35
s3:libsmb: make use of samba_tevent_context_init()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
2013-02-19 23:47:46 +01:00
Andrew Bartlett
dc00df2add
lib/param: Rename "socket address" to "nbt client socket address" to clarify role
...
This parameter is only used in our NBT client code and in nmbd as a
fallback when we fail to select a better interface from "interfaces"
to use directly.
Andrew Bartlett
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Jul 27 12:16:25 CEST 2012 on sn-devel-104
2012-07-27 12:16:25 +02:00
Andrew Bartlett
cf9bd1d9ed
s3-param: Make lp_name_resolve_order() return a list
...
This allows this parameter, one of the few with differing declarations
between the loadparm systems, to be brought into common.
Andrew Bartlett
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
2012-07-19 08:02:32 +02:00
Ira Cooper
fc7e1113c3
Fix bad bugfix for bug #8910 - resolve_ads() code can return zero addresses and miss valid DC IP addresses
...
Original code incorrectly used a while() instead of a for() loop.
We need to iterate over the entire array here.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed May 30 23:29:03 CEST 2012 on sn-devel-104
2012-05-30 23:29:02 +02:00
Simo Sorce
34a65739d3
Move source3/libads/dns.c to lib/addns
2012-05-23 17:51:48 +03:00
Simo Sorce
a7e94fce3f
s3-ads-dns: Break dependency on lp_parm
...
In preparation of making this code common to s3 and s4
2012-05-23 17:51:48 +03:00
Jeremy Allison
c531aac27c
Added torture test for bug #8910 . Test remove_duplicate_addrs2().
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue May 22 01:31:17 CEST 2012 on sn-devel-104
2012-05-22 01:31:17 +02:00
Jeremy Allison
1270cfb45f
Fix the loop unrolling inside resolve_ads(). If we don't get
...
an IP list don't use interpret_string_addr(), as this only
returns one address, use interpret_string_addr_internal()
instead.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Apr 30 23:21:16 CEST 2012 on sn-devel-104
2012-04-30 23:21:16 +02:00
Jeremy Allison
1197360818
Protect all of the name resolution methods from returning null addrs. Ensure all returns go through remove_duplicate_addrs2().
2012-04-30 09:26:37 -07:00
Jeremy Allison
50766a72f9
Fix convert_ss2service() to filter out zero addresses.
2012-04-30 09:26:37 -07:00
Jeremy Allison
01e884675e
Fix remove_duplicate_addrs2 to do exactly what it says. Previously it could leave zero addresses in the list.
2012-04-30 09:26:37 -07:00
Volker Lendecke
02ba9095e2
s3: Remove pointless parentheses
...
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sun Feb 26 11:10:15 CET 2012 on sn-devel-104
2012-02-26 11:10:15 +01:00
Günther Deschner
185b94eefa
nbt: trim down header dependencies of nbt.idl.
...
Guenther
2011-11-03 18:35:08 +01:00
Volker Lendecke
ad85bd8003
s3: Make saf_join_key() use talloc
2011-09-13 11:00:14 +02:00
Volker Lendecke
0e5a876aa7
s3: Make saf_key() use talloc
2011-09-13 11:00:14 +02:00
Volker Lendecke
f55f4b8ce5
s3: Disentangle resolve_name() a bit
2011-09-13 11:00:13 +02:00
Volker Lendecke
f0ff6f390a
Use tevent_req_oom
...
This fixes a few Coverity errors
2011-06-20 12:33:24 +02:00
Volker Lendecke
59887edd1d
s3: Remove unused name_queries
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jun 19 15:14:38 CEST 2011 on sn-devel-104
2011-06-19 15:14:38 +02:00
Volker Lendecke
809e5ea5ba
s3: Fix some type-punned warnings
2011-06-19 14:03:52 +02:00
Volker Lendecke
f811e894c4
s3: Add name_resolve_bcast_send/recv
2011-06-19 14:03:51 +02:00
Volker Lendecke
bc3261f0c5
s3: Fix a memleak in name_resolve_bcast
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jun 19 12:40:55 CEST 2011 on sn-devel-104
2011-06-19 12:40:55 +02:00
Volker Lendecke
c118bcf755
s3: Use resolve_wins_send/recv in resolve_wins
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jun 12 18:19:41 CEST 2011 on sn-devel-104
2011-06-12 18:19:41 +02:00
Volker Lendecke
0dfcf3ef78
s3: Add resolve_wins_send/recv
2011-06-12 17:07:48 +02:00
Volker Lendecke
12c3c35596
s3: Add query_wins_list_send/recv
2011-06-12 17:07:48 +02:00
Volker Lendecke
f0994c7495
s3: Fix IO_TIMEOUT handling for wins queries
2011-06-12 17:07:47 +02:00
Volker Lendecke
ebf04d79ab
s3: Remove "struct ip_service" from resolve_wins
2011-06-12 17:07:47 +02:00
Andrew Bartlett
d5e6a47f06
s3-talloc Change TALLOC_P() to talloc()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_P isn't standard talloc.
2011-06-09 12:40:08 +02:00
Andrew Bartlett
3d15137653
s3-talloc Change TALLOC_ARRAY() to talloc_array()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_ARRAY isn't standard talloc.
2011-06-09 12:40:08 +02:00
Andrew Bartlett
73b377432c
s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_REALLOC_ARRAY isn't standard talloc.
Andrew Bartlett
2011-06-09 12:40:08 +02:00
Volker Lendecke
56eab757d0
s3: Remove unused variables
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Jun 7 00:42:51 CEST 2011 on sn-devel-104
2011-06-07 00:42:51 +02:00
Volker Lendecke
2d90a89942
s3: Make name_resolve_bcast do parallel lookups to all interfaces
2011-06-05 14:08:00 +02:00
Volker Lendecke
fbe7b47c34
s3: Add name_queries_send/recv
2011-06-05 14:08:00 +02:00
Volker Lendecke
30be9fe554
s3: Make&use set_socket_addr_v4
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat May 14 18:57:57 CEST 2011 on sn-devel-104
2011-05-14 18:57:57 +02:00
Jeremy Allison
02af307585
More simple const fixes.
2011-05-05 23:56:07 +02:00
Volker Lendecke
7febcb5ffe
s3: Filter out duplicates in name_query()
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed May 4 00:03:47 CEST 2011 on sn-devel-104
2011-05-04 00:03:47 +02:00
Volker Lendecke
8da8c36b53
s3: Tune broadcast namequeries for unique names
...
If we get a unique name via a broadcast query, there's no point in waiting the
full timeout. A unique name is just what its name says: unique. No point in
waiting longer.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue May 3 00:57:24 CEST 2011 on sn-devel-104
2011-05-03 00:57:24 +02:00
Volker Lendecke
d87427973c
s3: Make name_resolve_bcast return sockaddr_storage
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Apr 30 20:40:46 CEST 2011 on sn-devel-104
2011-04-30 20:40:46 +02:00
Günther Deschner
50883cfeb4
s3-tevent: only include ../lib/util/tevent wrappers where needed.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
2011-04-29 14:00:30 +02:00