Michael Adam
9e9887d323
s4:samdb:rootdse: implement the schemaUpgradeInProgress operation in ldap modify
...
This is preliminary in that it is implemented as a no-op for a start
just to be able to successfully answer the request, which seems to be
sufficient in order to e.g. survive the exchange schema extensions.
Signed-off-by: Matthieu Patou <mat@matws.net>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Apr 18 02:48:28 CEST 2012 on sn-devel-104
2012-04-18 02:48:28 +02:00
Stefan Metzmacher
51e3bbd3e0
s4:libcli/smb2: fix anonymous session setups against windows servers
...
Windows server doesn't set the SMB2_SESSION_FLAG_IS_GUEST nor
SMB2_SESSION_FLAG_IS_NULL flag.
This fix makes sure we don't try to verify a signature on the
final session setup response.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Apr 16 14:44:46 CEST 2012 on sn-devel-104
2012-04-16 14:44:46 +02:00
Stefan Metzmacher
daa5cec1ba
s4:libcli/smb2: remove unused dependency to LIBPACKET
...
metze
2012-04-16 12:54:54 +02:00
Richard Sharpe
2c322ca95a
Fix some of the issues that Jelmer identified in my first patch. This might be
...
changed again, especially when I figure out how to return the file as an
object.
Autobuild-User: Richard Sharpe <sharpe@samba.org>
Autobuild-Date: Mon Apr 2 01:43:44 CEST 2012 on sn-devel-104
2012-04-02 01:43:44 +02:00
Richard Sharpe
36101d3fa4
Add an open and close method to samba.smb.SMB so we can open and close files.
...
Also, fix up some documentation.
Autobuild-User: Richard Sharpe <sharpe@samba.org>
Autobuild-Date: Sun Apr 1 16:29:52 CEST 2012 on sn-devel-104
2012-04-01 16:29:52 +02:00
Richard Sharpe
cb7220d721
Fix the PyDoc comments in samba.smb.SMB and add a security_info argument to both get_acl and set_acl to allow the caller to specify what info is wanted. Defaults to 0 which means all info.
...
Autobuild-User: Richard Sharpe <sharpe@samba.org>
Autobuild-Date: Mon Mar 26 04:05:25 CEST 2012 on sn-devel-104
2012-03-26 04:05:24 +02:00
Jelmer Vernooij
d9975a13fd
LIBCLI_SMB2: Depend on cli_smb_common rather than libsmb.
...
The latter pulls in a fair number of other libraries, including popt and the Samba registry library.
2012-03-25 17:15:42 +02:00
Jelmer Vernooij
48c2f803e8
libsmbclient-raw: Install smb_composite.h.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Mar 15 02:57:59 CET 2012 on sn-devel-104
2012-03-15 02:57:59 +01:00
Gregor Beck
7e9a4c6c11
s4:libcli/smb2: allow smb2_session_setup_spnego to handle reauth
...
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-07 10:57:27 +01:00
Amitay Isaacs
b47959a5c5
s4-libcli: pysmb: Fix typo in secinfo_flags
...
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Wed Mar 7 10:56:09 CET 2012 on sn-devel-104
2012-03-07 10:56:09 +01:00
Michael Adam
f6047afb2d
s4:libcli:smb2: set SMB2_CAP_ALL in the negprot
2012-03-03 17:03:07 +01:00
Michael Adam
1451e5f663
s4:libcli:smb2: store the share capabilites in the smb2_tree object
2012-03-03 17:03:07 +01:00
Michael Adam
ac43937ce4
smbXcli: add the possiblilty to negotiate client capabilites in smb >= 2.2
...
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-03-03 17:03:07 +01:00
Michael Adam
5a5f98dc70
s4:libcli:smb2: allow max protocol 0x0224
2012-03-03 17:03:07 +01:00
Michael Adam
a92b5f33de
s4:libcli:smb2: add support for parsing the durable handle v2 response in smb2_create_recv()
2012-03-03 17:03:07 +01:00
Michael Adam
dfbf55bb36
s4:libcli:smb2: add support durable handle reconnect v2 blob in smb2_create_send
2012-03-03 17:03:07 +01:00
Michael Adam
b1a2ab1fa9
s4:libcli:smb2: add support durable handle request v2 blob in smb2_create_send
2012-03-03 17:03:06 +01:00
Michael Adam
edeed1552d
s4:libcli:smb2: add durable handle v2 data to the smb2_create i/o structure
2012-03-03 17:03:06 +01:00
Michael Adam
28b77605c4
s4:libcli:smb2: add a smb2_connect_ext variant of smb2_connect that takes a previous_session argument
2012-02-28 00:08:54 +01:00
Michael Adam
e9210987c6
s4:libcli:smb2: add a previous session argument to smb2_connect_send()
2012-02-28 00:08:53 +01:00
Michael Adam
69a64e6695
s4:libcli:smb2: add a previous session argument to smb2_session_setup_spnego()
...
So that we can do a session reconnect.
2012-02-28 00:08:53 +01:00
Michael Adam
727f3ee6ac
s3:libsmb:smb2: pass previous session ID to session setup, not previous session
...
We only need the session, and under some circumstances, it might complicate
things for the caller to have to cope with the whole structure (talloc...).
2012-02-28 00:08:52 +01:00
Stefan Metzmacher
b7684f2ac6
s4:libcli/smb2: remove unused 'session_key' from struct smb2_session
...
metze
2012-02-27 12:51:34 +01:00
Stefan Metzmacher
aa4331be9e
libcli/smb/smbXcli: maintain smb2 channel_signing_key separate from the signing_key
...
The signing_key is fix across all channels and is used for session setups
on a channel binding.
Note:
- the last session setup response is signed with the new channel signing key.
- the reauth session setups are signed with the channel signing key.
It's also not needed to remember the main session key.
metze
2012-02-27 12:51:33 +01:00
Michael Adam
fe24ab4e53
s4:smbcli:smb2: add a random GUID to the transport connection in smb2_transport_init()
...
This GUID is used in the smb2 negprot when max protocol is bigger than 0x0202.
According to section 2.2.3 of the MS-SMB2 document, the Client GUID filed in the
SMB2 negotiate request must be filled with a (non-zero) GUID if there are other
dialects than 0x0202 in the dialects field.
http://msdn.microsoft.com/en-us/library/cc246543%28v=prot.13%29.aspx
Apart from corresponding to the docs, this change makes some of our durable-open
tests (e.g reopen2 and open-oplock) _not_ hang when running against windows 8
preview (which might be still buggy).
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Feb 23 03:23:57 CET 2012 on sn-devel-104
2012-02-23 03:23:57 +01:00
Michael Adam
6a93475dd0
s4:libcli:smb2: don't allocate the smb2_tree struct earlier than necessary in smb2_connect()
...
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-02-03 11:10:30 +01:00
Michael Adam
97823b69e9
s4:libcli/torture:smb2: change smb2_tree_connect to take a smb2_session instead of smb2_tree arguement.
...
Only the tree->session is needed. This way it is less confusing.
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-02-03 11:10:30 +01:00
Matthias Dieter Wallnöfer
2bc7b8f4c9
s4:libcli/finddcs_nbt.c - free "req" consistently with "finddcs_cldap.c"
...
It is more obvious to free where the context for the first time appears.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-12-23 10:36:19 +01:00
Stefan Metzmacher
35605fa0a3
s4:libcli/rap: the caller should get talloc children from call->ndr_pull_{param,data}
...
This should fix the flakey 'rap.printing.rap_printq_getinfo' test,
see https://git.samba.org/autobuild.flakey/2011-12-16-0022/samba4.stdout
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Dec 16 13:11:42 CET 2011 on sn-devel-104
2011-12-16 13:11:42 +01:00
Stefan Metzmacher
0e04cc2ea4
s4:libcli/rap: call->ndr_push_{param,data} can be talloc childs of 'call'
...
metze
2011-12-16 11:31:48 +01:00
Stefan Metzmacher
17781b1c86
s4:libcli/rap: use talloc_zero() and initialize everything
...
metze
2011-12-16 11:31:48 +01:00
Stefan Metzmacher
850b374ded
s4:libcli/rap: remove unused members from struct rap_call
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Dec 16 10:53:42 CET 2011 on sn-devel-104
2011-12-16 10:53:42 +01:00
Stefan Metzmacher
d0ff10d40c
s4:libcli/rap: initialize call->rcv_datalen
...
metze
2011-12-16 09:20:08 +01:00
Andrew Bartlett
079d1572c2
s4-resolv: fix dns_ex so as to fail correctly when a name does not exist
...
Without this, netbios name lookups do not work, as we never fall back to them.
This caused segfaults from e38d97e042
to
251209bd6f
and then name lookup failure
or timeouts until this patch.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Dec 14 01:16:37 CET 2011 on sn-devel-104
2011-12-14 01:16:37 +01:00
Stefan Metzmacher
4e57bb0b36
s4:libcli/smb2: mark a request as error if we can't ship it
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Dec 9 15:13:11 CET 2011 on sn-devel-104
2011-12-09 15:13:11 +01:00
Stefan Metzmacher
4486336bd8
s4:libcli/raw: mark a request as error if we can't ship it
...
metze
2011-12-09 13:38:37 +01:00
Matthieu Patou
059523e203
s4-resolver: do not use all the A and AAAA records, those after a NS are not the one we want to use
2011-12-05 18:23:08 +01:00
Stefan Metzmacher
4afbda221c
s4:libcli/raw: implement on top of smbXcli_conn/req
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Nov 30 15:13:36 CET 2011 on sn-devel-104
2011-11-30 15:13:36 +01:00
Stefan Metzmacher
99ef6a4bec
s4:libcli: do the nbss session request within smbcli_sock_connect_*()
...
metze
2011-11-30 13:41:09 +01:00
Stefan Metzmacher
52dd549eb6
s4:libcli/raw: remove unused functions
...
metze
2011-11-30 13:41:08 +01:00
Stefan Metzmacher
b21f344079
s4:libcli: use smbcli_sock_connect() in smbcli_socket_connect()
...
metze
2011-11-30 13:41:08 +01:00
Stefan Metzmacher
4877be53df
s4:libcli: move smbcli_transport_establish() logic into smbcli_socket_connect()
...
metze
2011-11-30 13:41:08 +01:00
Stefan Metzmacher
b51c92a903
s4:libcli: convert smbcli_transport_connect_* to tevent_req
...
metze
2011-11-30 13:41:08 +01:00
Stefan Metzmacher
6b5cfa39f2
s4:libcli/raw: copy smbcli_transport_connect_* to clisocket.c
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Nov 29 17:34:52 CET 2011 on sn-devel-104
2011-11-29 17:34:52 +01:00
Stefan Metzmacher
b3d3395e01
s4:libcli/raw: add transport->ev as copy of transport->socket->event.ctx
...
We'll remove transport->socket soon, but removing transport->ev
will take a bit longer.
metze
2011-11-29 16:00:08 +01:00
Stefan Metzmacher
04fa5b4957
s4:libcli/smb2: make sure only one idle event runs at a time
...
metze
2011-11-29 16:00:08 +01:00
Matthias Dieter Wallnöfer
ad19aa6331
s4:libcli/finddcs_cldap.c - let "finddcs_cldap" work either with the IP address or the domain name
...
This will be useful for a new "samba-tool domain info" command.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-11-26 10:26:52 +01:00
Stefan Metzmacher
4958d7cb44
s4:libcli/smb2: use talloc_zero() in smb2_request_init()
...
metze
2011-11-24 19:02:33 +01:00
Stefan Metzmacher
f132ad32cc
s4:libcli/smb2: fix compiler warning in smb2_push_o16s16_string()
...
metze
2011-11-24 19:02:33 +01:00
Stefan Metzmacher
300343d16c
s4:libcli/smb2: implement on top of smbXcli_conn/req
...
metze
2011-11-24 19:02:33 +01:00
Stefan Metzmacher
88bcdbb16a
s4:finddcs_cldap: debug the correct server address instead of NULL
...
metze
2011-11-10 14:59:10 +01:00
Matthieu Patou
2a8650ed79
s4-resolver: fix bug with DNS servers returning AAAA records when asked for A records
...
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Nov 6 03:18:00 CET 2011 on sn-devel-104
2011-11-06 03:18:00 +01:00
Günther Deschner
6e67073900
waf: convert NDR_NBT into shared library.
...
Guenther
2011-11-03 18:35:09 +01:00
Günther Deschner
e426f37b64
librpc: only let NDR_NBT depend on NDR_NBT_BUF.
...
Guenther
2011-11-03 18:35:08 +01:00
Stefan Metzmacher
f07274978a
s4:libcli/smb2: s/SMB_SIGNING_SUPPORTED/SMB_SIGNING_IF_REQUIRED/
...
metze
2011-11-03 16:55:12 +01:00
Stefan Metzmacher
2d55bfd8de
s4:libcli/raw: s/SMB_SIGNING_SUPPORTED/SMB_SIGNING_IF_REQUIRED/
...
metze
2011-11-03 16:55:12 +01:00
Stefan Metzmacher
01ccd59ce0
s4:libcli/smb2: remove unused SMB_SIGNING_AUTO handling
...
metze
2011-11-03 16:55:11 +01:00
Stefan Metzmacher
4fe0e828af
s4:libcli/raw: remove unused SMB_SIGNING_AUTO handling
...
metze
2011-11-03 16:55:11 +01:00
Stefan Metzmacher
22902ef9b8
s4:libcli/smb2: SMB_SIGNING_DEFAULT matches SMB_SIGNING_SUPPORTED on the client for now
...
metze
2011-11-03 16:55:11 +01:00
Stefan Metzmacher
0789fbf697
s4:libcli/raw: SMB_SIGNING_DEFAULT matches SMB_SIGNING_SUPPORTED on the client for now
...
metze
2011-11-03 16:55:11 +01:00
Stefan Metzmacher
f293438abd
s4:libcli/smb2: let SMB_SIGNING_AUTO behave like SMB_SIGNING_SUPPORTED
...
This matches the smb1 behavior.
metze
2011-11-03 16:55:11 +01:00
Stefan Metzmacher
418908eb21
s4:libcli/raw: only use smb signing if required
...
This matches the source3 code, I want to have the behavior
in common before I put the config options in common.
Later we may change this consitently in all code.
metze
2011-11-03 16:55:11 +01:00
Matthieu Patou
251209bd6f
s4-resolver: make it work back with ipv4 only DNS records
...
It turns out that if there is no AAAA record the dns server (bind and MS
windows at least) do not return the A record when just asked for AAAA.
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Nov 2 11:15:34 CET 2011 on sn-devel-104
2011-11-02 11:15:34 +01:00
Michael Adam
530cd2aac6
s4:libcli: in smb2_create_recv, map SMB2_CREATE_DURABLE_HANDLE_RESPONSE buffer smb2_create.out.durable_open
2011-10-30 18:41:22 +01:00
Michael Adam
d01b248d4f
source4/libcli: add bool durable_open to smb2_create.out.
...
The server gives indication whether the open was durable
we should record this.
2011-10-30 18:41:21 +01:00
Andreas Schneider
7b5fb7d9e8
replace: Add don't include unistd.h directly and add uid_wrapper.
2011-10-27 13:32:02 +02:00
Stefan Metzmacher
0d9bd56afb
libcli/smb: merge NEGOTIATE_SECURITY_* flags to smb_constants.h
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Oct 26 11:27:12 CEST 2011 on sn-devel-104
2011-10-26 11:27:12 +02:00
Stefan Metzmacher
ad3cabb6cb
s4:libcli: rename smb_signing.h to smb_raw_signing.h in the install directory
...
metze
2011-10-25 00:24:07 +02:00
Stefan Metzmacher
f3c25bc6a5
libcli/smb: merge LOCKING_ANDX_* and OPLOCK_* defines to smb_constants.h
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 24 17:46:47 CEST 2011 on sn-devel-104
2011-10-24 17:46:47 +02:00
Stefan Metzmacher
2414169241
s4:libcli/raw: remove unuded CMD_REPLY define
...
metze
2011-10-24 16:10:37 +02:00
Stefan Metzmacher
ec7cc700b2
libcli/smb: move more defines to smb_constants.h
...
metze
2011-10-24 16:10:36 +02:00
Stefan Metzmacher
6fef69562b
libcli/smb: move CAP_* defines to smb_constants.h
...
metze
2011-10-24 16:10:36 +02:00
Stefan Metzmacher
60d9afa806
s4:finddcs_cldap: talloc free old memory before allocating a new netlogon struct
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Oct 22 04:55:54 CEST 2011 on sn-devel-104
2011-10-22 04:55:53 +02:00
Stefan Metzmacher
7e4e4d0909
s4:finddcs_cldap: close the socket when it's not used anymore
...
The amount of possible fd's might be restricted, so close them early.
metze
2011-10-22 03:20:09 +02:00
Stefan Metzmacher
40dc29bca7
s4:finddcs_cldap: finddcs_cldap_recv() returns NTSTATUS
...
We need to convert the errno based error to NTSTATUS
before calling tevent_req_error (via tevent_req_nterror).
metze
2011-10-22 03:11:57 +02:00
Matthieu Patou
950f1218b3
s4-cldap: fix cldap_socket_init to always specify the dest if local is NULL
...
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Oct 22 00:02:00 CEST 2011 on sn-devel-104
2011-10-22 00:01:59 +02:00
Matthieu Patou
e38d97e042
s4-resolv: fix resolution of SRV records pointing to A and AAAA records
2011-10-21 22:29:09 +02:00
Stefan Metzmacher
32938ce60d
libcli/smb: move some common defines to smb_constants.h
...
metze
2011-10-21 08:42:59 +02:00
Stefan Metzmacher
ba08ad5f39
s4:libcli/raw: remove unused smb_len(), _smb_setlen() and _smb2_setlen() macros
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Oct 19 17:15:23 CEST 2011 on sn-devel-104
2011-10-19 17:15:23 +02:00
Stefan Metzmacher
8574d509a9
s4:libcli/smb2: make use of _smb_setlen_tcp()
...
metze
2011-10-19 15:44:29 +02:00
Stefan Metzmacher
8eed525e0b
s4:libcli/raw: make use of _smb_setlen_nbt()
...
metze
2011-10-19 15:44:29 +02:00
David Disseldorp
5e6c477ef8
s3: remove duplicate fsctl fn definitions
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-19 15:44:29 +02:00
David Disseldorp
281fc93c6b
libcli: move ioctl function field defs to smb_constants
...
Currently there are a lot of duplicate ioctl function field definitions
between source3 and source4.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-19 15:44:29 +02:00
Andrew Bartlett
e7d5f0a357
gensec: move event context from gensec_*_init() to gensec_update()
...
This avoids keeping the event context around on a the gensec_security
context structure long term.
In the Samba3 server, the event context we either supply is a NULL
pointer as no server-side modules currently use the event context.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-18 13:13:33 +11:00
Andrew Bartlett
b21b012756
lib/param move source4 param code to the top level
...
This is done so that the lpcfg_ functions are available across the whole
build, either with the struct loadparm_context loaded from an smb.conf directly
or as a wrapper around the source3 param code.
This is not the final, merged loadparm, but simply one step to make
it easier to solve other problems while we make our slow progress
on this difficult problem.
Andrew Bartlett
2011-10-11 13:41:34 +11:00
Stefan Metzmacher
b787b6e1bd
libcli/cldap: don't pass tevent_context to cldap_socket_init()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 10 23:23:07 CEST 2011 on sn-devel-104
2011-10-10 23:23:07 +02:00
Stefan Metzmacher
2cd76b0931
libcli/cldap: pass tevent_context to cldap_netlogon_send()
...
metze
2011-10-10 21:50:26 +02:00
Andrew Tridgell
7244e254cc
s4-ldap: added DSDB_CONTROL_NO_GLOBAL_CATALOG to ldap encoding list
...
also remove all the duplicated comments
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-10-04 15:08:58 +11:00
David Disseldorp
08573c2b92
s4: add SMB2_FSCTL opcodes
...
Also, skip samba4.smb2.ioctl for now. Snapshots are not supported by
default.
Autobuild-User: David Disseldorp <ddiss@samba.org>
Autobuild-Date: Thu Sep 29 14:47:05 CEST 2011 on sn-devel-104
2011-09-29 14:47:05 +02:00
Stefan Metzmacher
1f4bf0fb0f
s4:libcli/smb2: ignore SMB2_OP_CANCEL responses
...
If there're a problem with signing or the session doesn't exists
any more the server responses with a failure, instead of not
sending a response.
For now we ignore the reponse, as there's not much we could do with it
and it's not likely that we generate bad requests, which trigger
that behavior, except for testing.
metze
2011-09-28 17:29:12 +02:00
Stefan Metzmacher
caef1c7d21
s4:libcli/smb2: correctly sign SMB2_OP_CANCEL request if they belong to a session
...
metze
2011-09-28 17:29:11 +02:00
Stefan Metzmacher
28b48f8498
s4:libcli/smb2: don't try to check the signing if we got NT_STATUS_USER_SESSION_DELETED
...
metze
2011-09-28 17:29:11 +02:00
Jelmer Vernooij
f4fa725b95
libcli: Install libcli.h.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Sep 28 14:19:20 CEST 2011 on sn-devel-104
2011-09-28 14:19:20 +02:00
Stefan Metzmacher
14c05cf93a
s4:libcli/resolve: only try broadcast messages to ipv4 addresses
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Sep 28 05:10:53 CEST 2011 on sn-devel-104
2011-09-28 05:10:53 +02:00
Jelmer Vernooij
c74de09d81
libcliraw: Make smb_raw_write_recv public and include it in a public header.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Sep 25 17:12:05 CEST 2011 on sn-devel-104
2011-09-25 17:12:05 +02:00
Matthias Dieter Wallnöfer
50310ad75d
s4:auth - remove unused variables
...
Reviewed-by: Jelmer
2011-09-19 16:31:07 +02:00
Stefan Metzmacher
e6a2affe89
s4:libcli/wrepl: return NT_STATUS_CONNECTION_DISCONNECTED
...
We should return the same in all places.
metze
2011-09-14 18:03:19 +02:00
Andrew Bartlett
21c2e8b378
build: make LIBWBCLIENT_OLD and auth_unix_token libraries
...
This assists with avoiding duplicate symbols.
Andrew Bartlett
2011-09-08 19:33:13 +10:00
Stefan Metzmacher
3102bc9424
s4:libcli/raw: make use of PROTOCOL_SMB2_02
...
metze
2011-09-05 13:25:00 +02:00
Jeremy Allison
ef3bb09db6
RAW_SFILEINFO_RENAME_INFORMATION_SMB2 sends 4 bytes of uninitialized data out on the network.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Aug 27 07:48:30 CEST 2011 on sn-devel-104
2011-08-27 07:48:29 +02:00
Jelmer Vernooij
292fe74971
credentials: Rename library to samba-credentials to avoid name clashes.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Aug 18 22:16:38 CEST 2011 on sn-devel-104
2011-08-18 22:16:38 +02:00
Jelmer Vernooij
9ee1e1f0ac
cli-raw: Add public libsmbclient-raw library.
2011-08-18 14:19:18 +02:00
Jelmer Vernooij
6fefd217ca
libcliraw: Install more header files.
2011-08-18 14:01:12 +02:00
Jelmer Vernooij
f0d15e8ffa
smb_common: Install some more headers.
2011-08-18 13:43:42 +02:00
Jelmer Vernooij
9fc20f4d26
libcliraw: Install request.h and signing.h.
2011-08-18 13:31:03 +02:00
Jelmer Vernooij
6e8f6da31a
smb_composite: Remove unnecessary include of signing header.
2011-08-18 13:08:34 +02:00
Jelmer Vernooij
56f7bebd3a
smb_composite: Integrate prototypes in header file.
2011-08-18 12:59:25 +02:00
Simo Sorce
ab81505e08
s4:libcli: use tevent_ fn names instead of legacy event_ ones
2011-08-13 09:54:15 -04:00
Jelmer Vernooij
f8ec7f6cb1
pytalloc: Use consistent prefix for functions, add ABI file.
2011-08-10 15:36:21 +02:00
Andrew Bartlett
af5f494bd2
build: provide tevent-util as a public library
...
This is needed so that OpenChange can get at _tevent_req_nterr(), which is referenced
by generated PIDL output.
Andrew Bartlett
2011-08-08 13:34:06 +02:00
Andrew Bartlett
35b309fa0c
gensec: clarify memory ownership for gensec_session_info() and gensec_session_key()
...
This is slightly less efficient, because we no longer keep a cache on
the gensec structures, but much clearer in terms of memory ownership.
Both gensec_session_info() and gensec_session_key() now take a mem_ctx
and put the result only on that context.
Some duplication of memory in the callers (who were rightly uncertain
about who was the rightful owner of the returned memory) has been
removed to compensate for the internal copy.
Andrew Bartlett
2011-08-03 18:48:02 +10:00
Andrew Bartlett
16b2118b43
gensec: split GENSEC into mechanism-dependent and runtime functions
...
The startup and runtime functions that have no dependencies are moved
into the top level.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-08-03 18:48:01 +10:00
Amitay Isaacs
f854209996
s4-libcli: Fix the fd leak. Close open file descriptor before return.
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Aug 3 07:49:12 CEST 2011 on sn-devel-104
2011-08-03 07:49:12 +02:00
Amitay Isaacs
65dcf82e64
s4-libcli: get_acl and set_acl require raw_open to set security descriptor
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-03 14:26:04 +10:00
Amitay Isaacs
52d602335b
s4-libcli: Check if short_name is not null, before converting to python string
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-03 14:26:02 +10:00
Amitay Isaacs
38b8d38b30
s4-libcli: Replace smb_composite_connect() with smb_full_connection()
...
Python smb connection now uses smb_full_connection method.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-03 14:26:00 +10:00
Amitay Isaacs
2d90cafa10
s4-libcli: Added python SMB methods for mkdir(), rmdir(), chkpath()
...
Updated docstrings for all methods.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-03 14:25:46 +10:00
Amitay Isaacs
43ff229b9a
s4-libcli: Initialize stack structure variables to zero.
...
Update do_smb_connect function to return NTSTATUS rather than raise
python exception on error. Error checking done in py_smb_new().
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-28 15:20:54 +10:00
Amitay Isaacs
20f8a8ea30
s4-libcli: Added python interface for file I/O using SMB
...
This module will support file system access using SMB.
based on smb_composite - loadfile(), savefile()
based on raw - getacl(), setacl()
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-28 15:20:53 +10:00
Jelmer Vernooij
47a41c8daf
cli_composite: Lowercase name.
2011-07-26 13:31:09 +02:00
Jelmer Vernooij
23cbfef542
cli_smb_common: Lowercase name.
2011-07-26 13:31:08 +02:00
Jelmer Vernooij
08785dd73d
cli_cldap: Lowercase name.
2011-07-26 13:31:08 +02:00
Jelmer Vernooij
7524413751
cli_raw: Make name lowercase.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Jul 23 23:20:51 CEST 2011 on sn-devel-104
2011-07-23 23:20:51 +02:00
Jelmer Vernooij
0397b2ef30
charset: Make name lowercase everywhere.
2011-07-23 22:08:10 +02:00
Stefan Metzmacher
ee76239885
s4:libcli/raw: s/SMBchkpth/SMBcheckpath
...
metze
2011-07-12 16:50:55 +02:00
Stefan Metzmacher
a6b128912b
s4:libcli/raw: remove SMBkeepalive
...
metze
2011-07-12 09:44:05 +02:00
Andrew Bartlett
7891848357
libcli/smb move FILE_TYPE constants in common
...
This allows us to remove another _SAMBA_BUILD_ conditional
Andrew Bartlett
2011-07-06 05:32:59 +02:00
Andrew Bartlett
6543987139
libcli/smb move enum protocol_types to a common header
2011-07-06 05:32:51 +02:00
Volker Lendecke
f0ff6f390a
Use tevent_req_oom
...
This fixes a few Coverity errors
2011-06-20 12:33:24 +02:00
Andrew Bartlett
a1f04e8abc
libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbol
...
The two error tables need to be combined, but for now seperate the names.
(As the common parts of the tree now use the _common function,
errmap_unix.c must be included in the s3 autoconf build).
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Jun 20 08:12:03 CEST 2011 on sn-devel-104
2011-06-20 08:12:03 +02:00
Andrew Bartlett
018f4a5889
libcli/util Bring samba4 unix -> nt_status code in common.
...
Due to library link orders, this is already the function that is being
used. However we still need to sort out the duplicate symbol issues,
probably by renaming things.
Andrew Bartlett
2011-06-20 14:36:06 +10:00
Andrew Bartlett
a63189e9f0
s3-libcli Remove unused error mapping tables
...
The functions which uesed these tables have since moved in common.
Andrew Bartlett
2011-06-20 14:05:32 +10:00
Andrew Bartlett
acc9535400
s4-errors: Import error maps from the source3/ unix -> ntstatus mapping
...
We need to syncronise these mappings, as the duplication of this
symobol in the build means that either may be called based only on
library link orders.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Jun 17 10:22:07 CEST 2011 on sn-devel-104
2011-06-17 10:22:07 +02:00
Andrew Bartlett
4162c7b74a
errors: reorder error codes for easier s3/s4 comparison
2011-06-17 17:09:00 +10:00
Andrew Tridgell
e645675aa4
s4-util: removed the s4 nterr.c
...
this is now in common code
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-06-17 17:09:00 +10:00
Andrew Bartlett
1233ba7bf3
libclu/util: Move get_friendly_nt_error_msg() in common.
...
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-06-17 17:08:59 +10:00
Stefan Metzmacher
8d12649b31
s4:libcli/smb_composite: convert smb2_composite_setpathinfo_send/rev to tevent_req
...
metze
2011-06-15 17:54:44 +02:00
Matthias Dieter Wallnöfer
97af358656
s4:libcli/raw/raw*.c - add unhandled enum values
...
Reviewed-by: Jelmer
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Jun 11 18:46:13 CEST 2011 on sn-devel-104
2011-06-11 18:46:13 +02:00
Andrew Tridgell
285293c8b5
s4-ipv6: fixed a crash in the IPv6 DNS code
2011-06-07 15:48:42 +10:00
Andrew Tridgell
64380ff050
s4-ipv6: fixed DNS handling with new IPv6 code
2011-06-07 12:55:37 +10:00
Andrew Bartlett
907cdb5de7
s4-modules Remove lp_ctx from init functions that no longer need it
...
Now that we don't allow the smb.conf to change the modules dir, many
functions that simply load modules or initialise a subsytem that may
load modules no longer need an lp_ctx.
Andrew Bartlett
2011-06-06 17:37:51 +10:00
Andrew Tridgell
d8e2302330
s4-ipv6: allow for IPv6 in resolver top level calls
2011-06-06 12:26:11 +10:00
Andrew Tridgell
d1c90c465e
s4-ipv6: cope with IPv6 in our async DNS client code
2011-06-06 12:26:11 +10:00
Andrew Tridgell
40dc94a53f
s4-ipv6: update callers to load_interface_list()
2011-06-06 12:26:10 +10:00
Rusty Russell
0204ae6229
lib/util/time.c: timeval_current_ofs_usec
...
Several places want "microseconds from current time", and several were
simply handing "usecs" values which could be over a million.
Using a helper to do this is safer and more readable.
I didn't replace any obviously correct callers (ie. constants).
I also renamed wait_nsec in source3/lib/util_sock.c; it's actually
microseconds not nanoseconds (introduced with this code in Volker's
19b783cc
Async wrapper for open_socket_out_send/recv).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-01 10:38:47 +02:00
Andrew Bartlett
c004a932c4
libcli/util Remove ntstatus_check_dos_mapping
...
This has been set to true since the global loadparm was removed in
2008, and removes an #ifdef SAMBA_BUILD == 4
Andrew Bartlett
2011-05-31 15:10:20 +10:00
Andrew Bartlett
159fad92d9
s4-libcli Merge error map order with source3 errmap_unix.c
...
This makes it easier to see what the actual differences here are.
Andrew Bartlett
2011-05-31 02:57:19 +02:00
Andrew Bartlett
2fc342c20a
waf-build: Add more libraries to avoid duplicate symbols
...
The new source of duplicates is calling libnetapi from inside smbtorture.
Andrew Bartlett
2011-05-18 16:12:07 +02:00
Günther Deschner
b1948659ad
s4-libcli/rap: add smbcli_rap_netremotetod().
...
Guenther
2011-05-16 11:43:26 +02:00
Luke Howard
c31f95f66d
do an explicit A record search for SRV entries
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-05-13 18:50:23 +02:00