Volker Lendecke
07532f6a59
libsmb: Pass "account_name/flags" through nb_getdc
...
Don't hardcode values that we might want to change later
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2018-04-11 01:06:39 +02:00
Volker Lendecke
d34014c935
libsmb: Pass "account_name/flags" through prep_getdc_request
...
Don't hardcode values that we might want to change later
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2018-04-11 01:06:39 +02:00
Volker Lendecke
295c53405a
libsmb: Introduce a helper variable
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2018-04-11 01:06:39 +02:00
Volker Lendecke
6a60970306
libnmb: Make nb_packet_read_recv return a talloc'ed pkt
...
This saves a few explicit destructors only doing free_packet()
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2018-01-24 00:58:17 +01:00
Volker Lendecke
c404d58830
libsmb: Give unexpected.c its own header
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2018-01-23 01:49:22 +01:00
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
Garming Sam
ca20ddbe91
param: rename lp function and variable from 'piddir' to 'pid_directory'
...
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:11 -08: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
Jeremy Allison
e8dbf2889f
Move everything to use the common pidfile functions.
...
The extra code in source3/lib/pidfile.c is no longer needed.
2012-07-19 16:36:18 -07:00
Jeremy Allison
2922fdaaf0
Move source4/smbd/pidfile into lib/util in preparation for making it in common.
2012-07-19 15:41:52 -07:00
Jeremy Allison
d7e52cc527
Fix metze's complaint about the bugfix for bug #8953 - winbind can hang as nbt_getdc() has no timeout.
...
This code explicitly isn't needed as the tevent code will take
care of this.
2012-05-30 11:59:37 -07:00
Jeremy Allison
d673402992
Fix bug #8953 - winbind can hang as nbt_getdc() has no timeout.
...
Add a timeout_in_seconds parameter to nbt_getdc() to make it fail
after that time with NT_STATUS_IO_TIMEOUT.
2012-05-22 16:25:14 -07:00
Günther Deschner
2ecd50116c
librpc: remove nbt dependency to samr.
...
Guenther
2011-11-03 18:35:08 +01:00
Andrew Bartlett
74eed8f3ed
s3-param Remove special case for global_myname(), rename to lp_netbios_name()
...
There is no reason this can't be a normal constant string in the
loadparm system, now that we have lp_set_cmdline() to handle overrides
correctly.
Andrew Bartlett
2011-06-09 12:40:09 +02:00
Andrew Bartlett
ad0a07c531
s3-talloc Change TALLOC_ZERO_P() to talloc_zero()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_ZERO_P isn't standard talloc.
2011-06-09 12:40:08 +02:00
Günther Deschner
27022587e3
s3-libsmb: move protos to libsmb/proto.h
...
Guenther
2011-05-06 16:37:18 +02:00
Jeremy Allison
e131c94ac1
More const fixes for compiler warnings from the waf build.
2011-05-05 23:56:07 +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
Günther Deschner
ab36d597e7
s3-messages: make ndr_messaging.h part of messages.h.
...
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
b2af281e50
s3-messages: only include messages.h where needed.
...
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
2473c2fb1b
s3-libsmb: put namequery headers to nmblib.h
...
We might find a better name for it and merge other namequery related things as
well here...
Guenther
2011-03-30 01:13:09 +02:00
Volker Lendecke
2672101cc4
s3: Remove some unused code
2011-01-07 13:28:07 +01:00
Volker Lendecke
f9520008df
s3: Add nbt_getdc
...
This is a getdc version that uses /tmp/.nmbd/unexpected
2011-01-07 13:28:06 +01:00
Volker Lendecke
1137cf8e6f
s3: Fix a valgrind error
2011-01-07 13:28:06 +01:00
Volker Lendecke
126b1806b8
s3: Factor out parse_getdc_response
2011-01-07 13:28:06 +01:00
Volker Lendecke
0376d03e6d
s3: Lift my_mailslot from prep_getdc_request
2011-01-07 13:28:05 +01:00
Volker Lendecke
593c004b74
s3: Fix a memleak in receive_getdc_response
...
It's the free_packet() that was missing. On the way, I've changed the
"return false;" to a "goto fail;", which makes the patch a bit larger.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jan 2 14:27:56 CET 2011 on sn-devel-104
2011-01-02 14:27:56 +01:00
Volker Lendecke
9ccef4e62b
s3: Remove unused mem_ctx arg from set_getdc_request
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Jan 1 23:00:24 CET 2011 on sn-devel-104
2011-01-01 23:00:24 +01:00
Volker Lendecke
b2ba2b956e
s3: Factor out prep_getdc_request
2011-01-01 22:14:19 +01:00
Volker Lendecke
e0abc5c15f
s3: cli_send_mailslot -> cli_prep_mailslot
2011-01-01 22:14:19 +01:00
Volker Lendecke
bb6da9f06c
s3: Fix some nonempty blank lines
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Jan 1 16:03:23 CET 2011 on sn-devel-104
2011-01-01 16:03:23 +01:00
Volker Lendecke
659bb646e4
s3: Add some const to receive_getdc_response
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Dec 31 14:48:57 CET 2010 on sn-devel-104
2010-12-31 14:48:57 +01:00
Volker Lendecke
ba15b7af07
s3: Add some const to send_getdc_request
2010-12-31 14:02:04 +01:00
Jeremy Allison
52f2520648
Fix the unexpected.tdb database problem. Change nmbd to store the
...
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
2010-11-14 05:22:45 +00:00
Günther Deschner
c59961dd81
s3-dsgetdcname: cleanup receive_getdc_response a little.
...
Guenther
2010-09-10 13:21:41 +02:00
Günther Deschner
fbb7814f91
s3: only use netlogon/nbt header when needed.
...
Guenther
2010-05-31 11:32:37 +02:00
Andrew Bartlett
cba7f8b827
s3:dom_sid Global replace of DOM_SID with struct dom_sid
...
This matches the structure that new code is being written to,
and removes one more of the old-style named structures, and
the need to know that is is just an alias for struct dom_sid.
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-21 10:39:59 +02:00
Jelmer Vernooij
b8268cf7b0
s3: Remove use of iconv_convenience.
2010-05-18 11:45:31 +02:00
Günther Deschner
c6ebab846d
s3: only include gen_ndr headers where needed.
...
This shrinks include/includes.h.gch by the size of 7 MB and reduces build time
as follows:
ccache build w/o patch
real 4m21.529s
ccache build with patch
real 3m6.402s
pch build w/o patch
real 4m26.318s
pch build with patch
real 3m6.932s
Guenther
2010-05-06 00:22:59 +02:00
Matthias Dieter Wallnöfer
eceffe6909
nbt: samlogon/netlogon structures - unify denominations
2010-04-27 18:45:41 +02:00
Jeremy Allison
9357049171
Make cli_send_mailslot() static. Preparing to do away with unexpected.tdb....
...
Jeremy.
2009-07-20 15:15:08 -07:00
Jelmer Vernooij
e779345bca
Import changes from upstream libndr.
2008-10-13 15:01:28 +02:00
Volker Lendecke
af1c802791
The IRIX compiler does not like embedded unnamed unions
2008-10-02 08:09:25 +02:00
Günther Deschner
f07431f5ba
s3-nbt: use the new generated nbt.
...
Guenther
2008-09-24 03:34:23 +02:00
Günther Deschner
fd3ba988dc
s3-nbt: fix remaining callers of ndr_push/pull_struct_blob.
...
Guenther
2008-09-23 09:49:56 +02:00
Günther Deschner
c49487805b
mailslot: Also pick domain name and pdc name from type 15 cldap reply.
...
Guenther
(This used to be commit 836877c400
)
2008-05-14 09:45:39 +02:00
Günther Deschner
9be17e2187
dsgetdcname: mailslot replies are identical to the cldap ones, use cldap everywhere.
...
Guenther
(This used to be commit fe904ee77a
)
2008-05-09 14:59:19 +02:00
Volker Lendecke
7245a8e3b8
Fix a C++ warning
...
(This used to be commit e7a4027acf
)
2008-05-05 18:28:59 +02:00
Günther Deschner
b77601a4b7
mailslot: allow to give back struct nbt_ntlogon_packet.
...
Guenther
(This used to be commit 2b178dcae6
)
2008-04-24 22:01:52 +02:00
Günther Deschner
012d678211
mailslot: make sure we are looking at the correct reply structure.
...
Guenther
(This used to be commit c6ce07fdf5
)
2008-04-24 22:01:51 +02:00