1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

76413 Commits

Author SHA1 Message Date
Matthias Dieter Wallnöfer
caacdb0cf1 s3:wscript_build - add dependency on "tdb-wrap3" for libnet dssync
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Sep 30 16:40:12 CEST 2011 on sn-devel-104
2011-09-30 16:40:12 +02:00
Andrew Bartlett
deede4616e build: Add dep on tdb-wrap3 to get tdb headers
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
2011-09-30 15:07:26 +02:00
Volker Lendecke
fe1bcdb4b9 s3: Re-add (), fix a gcc hint
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Sep 30 15:06:47 CEST 2011 on sn-devel-104
2011-09-30 15:06:47 +02:00
Volker Lendecke
f5081df369 s3: Remove an unused variable 2011-09-30 10:21:43 +02:00
Volker Lendecke
b7b7ce5aa4 s3: Fix an uninitialized variable warning 2011-09-30 10:21:43 +02:00
Volker Lendecke
0834ecc6f3 s3: Fix a C++ warning 2011-09-30 10:21:43 +02:00
Volker Lendecke
26225754ec s3: Fix a C++ warning 2011-09-30 10:21:42 +02:00
Jeremy Allison
27e2a4ab4a Second part of bug #8494 - Remove "experimental" label on VFS ACL modules.
Fix the docs.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Sep 30 03:50:43 CEST 2011 on sn-devel-104
2011-09-30 03:50:43 +02:00
Bram
d883cc664c Bug 7551: Return error of cli_push when 'put - /some/file' is used
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Sep 29 23:47:02 CEST 2011 on sn-devel-104
2011-09-29 23:47:02 +02:00
Stefan Metzmacher
8daf9df514 s3:smb2cli: fix the num_expected == 0 logic in smb2cli_req_recv()
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Sep 29 22:15:06 CEST 2011 on sn-devel-104
2011-09-29 22:15:06 +02:00
Stefan Metzmacher
24d53ebe44 s4:smb_server/smb2: make sure we sign the final session setup
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Sep 29 18:59:54 CEST 2011 on sn-devel-104
2011-09-29 18:59:54 +02: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
David Disseldorp
dbcd59f46b s3-smb2_server: fix ioctl InputOffset checking
Currently the InputOffset is always check to point to the input data
buffer, regardless of whether input data is present.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-09-29 13:14:21 +02:00
David Disseldorp
18482957da s3-smb2_server: SMB2_OP_IOCTL doesn't require at least 1 dyn byte
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-09-29 13:14:21 +02:00
David Disseldorp
392fd0db38 s4-torture: add smb2 ioctl test suite
Currently only covers FSCTL_GET_SHADOW_COPY_DATA.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-09-29 13:14:21 +02:00
David Disseldorp
bd5e9758f8 s4-torture: remove unchecked read from smb2 create
Add a corresponding test case to smb2.read.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-09-29 13:14:21 +02:00
Stefan Metzmacher
27195b3ac5 socket_wrapper: correctly handle dup()/dup2() ref counting
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Sep 29 13:13:56 CEST 2011 on sn-devel-104
2011-09-29 13:13:56 +02:00
Stefan Metzmacher
a110d05f67 socket_wrapper: pass down the fd explictly from the swrap_*() to the real_*() calls
metze
2011-09-29 10:27:15 +02:00
Stefan Metzmacher
ea00f0e452 s3:smb2_server: SMB2_OP_CANCEL requests don't have to be signed
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Sep 29 02:58:41 CEST 2011 on sn-devel-104
2011-09-29 02:58:41 +02:00
Herb Lewis
485ad76a49 test commit to see it push works for me.
Autobuild-User: Herb Lewis <herb@samba.org>
Autobuild-Date: Thu Sep 29 00:51:16 CEST 2011 on sn-devel-104
2011-09-29 00:51:16 +02:00
Stefan Metzmacher
4732f5b210 s4:torture/smb2/lock: remove samba4 specific checks for NETWORK_NAME_DELETED/USER_SESSION_DELETED
Most Windows versions have a strange order to
verify the session id, tree id and file id.
(They should be checked in that order, but windows
seems to check the file id before the others).

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Sep 28 21:12:07 CEST 2011 on sn-devel-104
2011-09-28 21:12:07 +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
Michael Adam
417c16e4e6 s3:dbwrap_ctdb: improve the check for skipping the __db_sequence_number__ record in traverse
It did not compare the last charcter (usually '\0')

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Sep 28 16:54:59 CEST 2011 on sn-devel-104
2011-09-28 16:54:58 +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
Jelmer Vernooij
3358239a57 smb_unix_ext.h: Protect against multiple inclusion. 2011-09-28 12:05:54 +02:00
Jelmer Vernooij
2660a465c3 Install headers included by smb_common.h. 2011-09-28 11:32:36 +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
Kai Blin
1210b8abe7 dns: Do as BIND and MS DNS and drop quries with qdcount != 1
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Wed Sep 28 03:37:22 CEST 2011 on sn-devel-104
2011-09-28 03:37:22 +02:00
Kai Blin
f98ebcf43f dns: The QCLASS is called IN, not IP 2011-09-28 02:02:36 +02:00
Kai Blin
da0cae010a s3 net: Fix a discard const warning 2011-09-28 02:02:35 +02:00
Kai Blin
df88e66250 errormap: Add unix_to_werror() function
While this function technically is closest to the
map_nt_status_from_unix() function, I think it is better to keep the new
function in line with our usual fooerror_to_barerror() naming scheme.

Signed-off-by: Kai Blin <kai@samba.org>
2011-09-28 02:02:35 +02:00
Stefan Metzmacher
e8ed54d6c9 s3:libsmb: remove unused TALLOC_FREE(subreq) calls in
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Sep 28 02:01:09 CEST 2011 on sn-devel-104
2011-09-28 02:01:08 +02:00
Stefan Metzmacher
889886c212 s3:libsmb: call TALLOC_FREE(subreq) directly after cli_sesssetup_blob_recv()
cli_sesssetup_blob_recv() talloc moves stuff that's needed on
the given memory context.

metze
2011-09-28 00:24:43 +02:00
Andrew Bartlett
eb245091e5 s3-messaging Do not ever send a kill to -1
This from a report by Olaf Flebbe <o.flebbe@science-computing.de>

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Sep 28 00:23:44 CEST 2011 on sn-devel-104
2011-09-28 00:23:44 +02:00
Andrew Bartlett
288265c049 s3-messaging Ensure that the message is of the correct legnth
By using ndr_pull_struct_blob_all we are more robust against wrongly formatted messages.

Andrew Bartlett
2011-09-27 22:43:06 +02:00
Andrew Bartlett
dce23151e0 s4-ldap_server: Fix segfault on startup failure of ldap server 2011-09-27 22:43:06 +02:00
Andrew Bartlett
b5cc6a0ad2 s3-pdb_samba4: Remove unused attribute from domain search 2011-09-27 22:43:06 +02:00
Jeremy Allison
fa2236c066 These modules are no longer experimental but production-ready (especially
the acl_xattr code). Remove the "experimental" tag.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Sep 27 21:00:12 CEST 2011 on sn-devel-104
2011-09-27 21:00:12 +02:00
Richard Sharpe
dab8472731 Free the memory talloc'd
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Sep 27 18:51:47 CEST 2011 on sn-devel-104
2011-09-27 18:51:47 +02:00
Andreas Schneider
b93eae2064 s3-samr: Remove fstring in samr.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Mon Sep 26 19:56:04 CEST 2011 on sn-devel-104
2011-09-26 19:56:04 +02:00
Simo Sorce
f7419172f0 s3-passdb: Cleanup use of fstring and move to talloc.
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-09-26 18:25:26 +02:00
Simo Sorce
0ff0b37f43 s3-group-mapping: Remove unused functions.
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-09-26 18:25:26 +02:00
Volker Lendecke
94b0f8f7fe s3: Slightly simplify print_kdc_line()
No code change except for an early "return talloc_asprintf(..)" making an else
branch obsolete.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Sep 26 18:24:25 CEST 2011 on sn-devel-104
2011-09-26 18:24:25 +02:00
Volker Lendecke
9411b8e49d s3: Slightly simplify print_kdc_line()
No code change except for an early "return talloc_asprintf(..)" making an else
branch obsolete.
2011-09-26 16:48:43 +02:00
Volker Lendecke
01eb3136b6 s3: Slightly simplify print_kdc_line()
No code change except for an early "return talloc_asprintf(..)" making an else
branch obsolete.
2011-09-26 16:48:43 +02:00
Volker Lendecke
b35d80aa38 s3: Remove the smbd_server_conn ref from create_junction
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Sep 26 16:33:30 CEST 2011 on sn-devel-104
2011-09-26 16:33:29 +02:00
Volker Lendecke
d2958fd064 s3: Remove the smbd_server_conn ref from setup_dfs_referral 2011-09-26 14:59:12 +02:00
Volker Lendecke
fba833d055 s3: Remove the smbd_server_conn ref from get_referred_path 2011-09-26 14:59:12 +02:00