Andrew Bartlett
666dba3353
s3-param: Rename loadparm_s3_context -> loadparm_s3_helpers
...
This helps clarify the role of this structure and wrapper function.
The purpose here is to provide helper functions to the lib/param
loadparm_context that point back at the s3 lp_ functions. This allows
a struct loadparm_context to be passed to any point in the code, and
always refer to the correct loadparm system. If this has not been
set, the variables loaded in the lib/param code will be returned.
As requested by Michael Adam.
Andrew Bartlett
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Jun 27 17:11:16 CEST 2012 on sn-devel-104
2012-06-27 17:11:16 +02:00
Volker Lendecke
080c1ca64b
s3: Make --pw-nt-hash useable in smbclient
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Jun 12 12:41:10 CEST 2012 on sn-devel-104
2012-06-12 12:41:10 +02:00
Volker Lendecke
93e950caf8
s3: Add cli_state->pw_nt_hash
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-12 10:48:15 +02:00
Stefan Metzmacher
93e0844471
s3-libsmbclient: change vnum to 0.2.0
...
metze
2012-06-12 10:48:15 +02:00
Volker Lendecke
6c13a46732
s3-libsmbclient: Add OptionUseNTHash
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-12 10:48:15 +02:00
Volker Lendecke
3b63a6794a
S3: Add ntlmssp_set_password_hash
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-12 10:48:15 +02:00
Volker Lendecke
ae821929a0
s3-libsmbclient: Make SMBC_call_auth_fn static
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-12 10:48:15 +02:00
Michael Adam
33ebba9c5a
libsmbclient: fix use of a non-existent word (existant)
2012-06-12 07:21:43 +02:00
Andrew Bartlett
01b726dbe8
s3-libsmb: Fix error messages to correctly mention PLAINTEXT not LM
...
Also make all the message say the same thing.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Jun 6 10:17:55 CEST 2012 on sn-devel-104
2012-06-06 10:17:55 +02:00
Stefan Metzmacher
5a122931ed
s3:libsmb: fix the talloc parent of clistr_pull_talloc() in cli_notify_done()
...
metze
2012-06-05 17:33:49 +02:00
Stefan Metzmacher
7ef4ae42fe
s3:libsmb: change cli_sesssetup_blob_* to use uint8_t instead of char for inbuf
...
metze
2012-06-05 17:33:49 +02:00
Stefan Metzmacher
2b5d4d4267
s3:libsmb: use inhdr instead of inbuf in tree connect related functions
...
metze
2012-06-05 17:33:49 +02:00
Stefan Metzmacher
ae627a5da8
s3:libsmb: use inhdr instead of inbuf in session setup related functions
...
metze
2012-06-05 17:33:49 +02:00
Stefan Metzmacher
a868a51eca
s3:libsmb: remove unused 'inbuf' variable
...
metze
2012-06-05 17:33:49 +02:00
Stefan Metzmacher
324c51c25b
s3:libsmb: don't require a pinbuf in cli_smb_recv() to keep the memory
...
metze
2012-06-05 17:33:49 +02:00
Luk Claes
aea996dba6
s3:libsmb: get rid of cli_smb_req_*,cli_smb_wct_ofs,cli_smb_chain_send
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Jun 3 23:37:02 CEST 2012 on sn-devel-104
2012-06-03 23:37:02 +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
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
Stefan Metzmacher
e697253263
s3:libsmb: use nb_connect_send() directly instead of doing a 0 timer for port 139
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed May 30 20:51:51 CEST 2012 on sn-devel-104
2012-05-30 20:51:51 +02:00
Stefan Metzmacher
9c02667b82
s3:libsmb: use cli_tree_connect() instead of cli_tcon_andx()
...
cli_tree_connect() is more generic and uses what the server supports
metze
2012-05-30 10:24:57 +02:00
Stefan Metzmacher
bce43d75da
s3:libsmb: fallback to SMBtcon for old servers
...
metze
2012-05-30 10:24:57 +02:00
Andrew Bartlett
c691ada709
build: Provide .pc file for libsmbsharemodes
...
This is not the exact same file as the autoconf build, because of
the differnet processing semantics.
Andrew Bartlett
2012-05-30 04:15:11 +02:00
Stefan Metzmacher
697c88d6b1
s3:cli_np_tstream: pass a leading backslash for the pipe name for SMB1
...
metze
2012-05-28 19:51:55 +02:00
Luk Claes
4688107800
s3:libsmb: get rid of cli_ucs2
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon May 28 16:58:03 CEST 2012 on sn-devel-104
2012-05-28 16:58:03 +02:00
Luk Claes
93ed99d6ff
s3:libsmb: get rid of clisigning routines
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:51 +02:00
Luk Claes
f7f73c4dba
s3:libsmb: get rid of cli_has_async_calls
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:50 +02:00
Luk Claes
764b5e5610
s3:libsmb: get rid of cli_negprot
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:49 +02:00
Luk Claes
82895ab22f
s3:libsmb: get rid of cli_state_disconnect
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:49 +02:00
Luk Claes
1ff8c404a6
s3:libsmb: get rid of cli_state_server_time_zone
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:48 +02:00
Luk Claes
278ba9928a
s3:libsmb: get rid of cli_state_security_mode
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:48 +02:00
Luk Claes
5f10bd9fe4
s3:libsmb: get rid of cli_state_server_gss_blob
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:48 +02:00
Luk Claes
2be7e23b99
s3:libsmb: get rid of cli_state_server_challenge
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:47 +02:00
Luk Claes
ab052c7ff0
s3:libsmb: get rid of cli_state_encryption_on
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:47 +02:00
Luk Claes
6c18a66f3e
s3:libsmb: get rid of cli_state_max_requests
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:47 +02:00
Luk Claes
7c69ca09d0
s3:libsmb: get rid of cli_state_server_session_key
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:46 +02:00
Luk Claes
3c9c06ac05
s3:libsmb: get rid of cli_state_capabilities
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:46 +02:00
Luk Claes
d8c0646a5d
s3:libsmb: get rid of cli_state_protocol
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:45 +02:00
Luk Claes
4f6f4ea93c
s3:libsmb: get rid of cli_state_remote_name
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:45 +02:00
Luk Claes
987e81b0ee
s3:libsmb: get rid of cli_state_*_sockaddr
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:44 +02:00
Luk Claes
8e24e7f6b8
s3:libsmb: get rid of cli_sockopt
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:44 +02:00
Luk Claes
f43231c051
s3:libsmb: remove unused (un)set_pending functions
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:44 +02:00
Simo Sorce
34a65739d3
Move source3/libads/dns.c to lib/addns
2012-05-23 17:51:48 +03:00
Simo Sorce
cc3321c9ff
s3-ads-dns: Avoid unnecessary dependencies
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
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
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
Björn Baumbach
5f494c424c
libcli/smb: move smb2cli_ioctl.c from source3 to the toplevel
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May 15 20:17:01 CEST 2012 on sn-devel-104
2012-05-15 20:17:01 +02:00
Björn Baumbach
c16e263d0e
libcli/smb: move smb2cli_query_directory.c from source3 to the toplevel
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-15 18:26:00 +02:00
Björn Baumbach
b2d9c02665
libcli/smb: move smb2cli_query_info.c from source3 to the toplevel
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-15 18:26:00 +02:00
Björn Baumbach
22b76de2ff
libcli/smb: move smb2cli_set_info.c from source3 to the toplevel
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-15 18:26:00 +02:00