1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

78475 Commits

Author SHA1 Message Date
Andrew Bartlett
7d14f89e29 s3-libsmb Do not limit read replies to NBT packet sizes
With the posix extensions, we can read 16MB at a time, so we need to check
the full size of the packet, not the size rounded down to the old NBT
limit.

Andrew Bartlett

Signed-off-by: Jeremy Allison <jra@samba.org>
2012-01-27 13:36:06 -08:00
Simo Sorce
0027cd2409 s3-pdb: Make ADS-type backends updates secrets.tdb.
Make the backends that have ADS capability the only ones that can change the
SID and GUID in secrets.tdb at initialization time.

Signed-off-by: Andreas Schneider <asn@samba.org>

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Fri Jan 27 19:42:17 CET 2012 on sn-devel-104
2012-01-27 19:42:17 +01:00
Simo Sorce
e6c39a292c s3-pdb: Break SECRETS3 dependency on PDB.
This is causing circular depdnendcies that bring libpdb in all code and this is
BAD.

This change 'protects' the sid and guid of the domain by adding a special key
that makes them effectively read only.

Limit this temporarily to the samba 4 build, once it gets some good testing the
samba4 ifdefs can be dropped.

fix pdb dependencies

Signed-off-by: Andreas Schneider <asn@samba.org>
2012-01-27 18:11:10 +01:00
Stefan Metzmacher
c543ce1028 libcli/smb: fix smbXcli_negprot(..., PROTOCOL_NT1, PROTOCOL_SMB2_02)
The SMB1 negprot request already consumed the SMB2 sequence '0'.
This also happens for the SMB 2.02 case.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jan 27 15:27:41 CET 2012 on sn-devel-104
2012-01-27 15:27:40 +01:00
Andreas Schneider
2dd696a5df s3-waf: Create a subsystem for SERVER_MUTEX.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Fri Jan 27 12:55:01 CET 2012 on sn-devel-104
2012-01-27 12:55:01 +01:00
Andreas Schneider
022c560cea s3-waf: Add missing dependency of ntlmssp to wbclient. 2012-01-27 11:20:26 +01:00
Andreas Schneider
7c723c0529 s3-waf: Add missing dependency of pdb_wbc_sam to wbclient. 2012-01-27 11:20:14 +01:00
Amitay Isaacs
5bdadd1501 build: Add missing dependencies on popt
This fixes compilation issues on freebsd where system popt is installed
under /usr/local.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Fri Jan 27 08:33:52 CET 2012 on sn-devel-104
2012-01-27 08:33:52 +01:00
Jeremy Allison
a9e03337c1 Finally remove all malloc()'s from the substitute code. Now totally
talloc() based.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Jan 27 03:43:21 CET 2012 on sn-devel-104
2012-01-27 03:43:21 +01:00
Jeremy Allison
17a77ea9b4 Fix a really slow memory leak (in master at least). Found by Ira Cooper <ira@wakeful.net>.
Bug #8724 - Memory leak in parent smbd on connection.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Jan 27 01:26:28 CET 2012 on sn-devel-104
2012-01-27 01:26:28 +01:00
Stefan Metzmacher
633a28b276 s3:auth/auth_generic: for now call sub_set_smb_name() and lp_load()
This matches the auth_ntlmssp case and the smbd/sesssetup.c code.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jan 26 17:58:17 CET 2012 on sn-devel-104
2012-01-26 17:58:17 +01:00
Stefan Metzmacher
01588585b1 s3:gse: return NT_STATUS_LOGON_FAILURE instead of NT_STATUS_INTERNAL_ERROR
This matches the behavior of ads_verify_ticket().

Note that ads_verify_ticket() calls krb5_to_nt_status(), but
as a server it's likely to always returns NT_STATUS_UNSUCCESSFUL.
ads_verify_ticket() maps NT_STATUS_UNSUCCESSFUL to NT_STATUS_LOGON_FAILURE.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jan 26 10:48:36 CET 2012 on sn-devel-104
2012-01-26 10:48:36 +01:00
Andrew Bartlett
b7becc0b19 s4-rpc_server: Fix search for existing trust to actually look for the dns name
Found by a eagle-eyed user.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Jan 26 08:39:47 CET 2012 on sn-devel-104
2012-01-26 08:39:47 +01:00
Andrew Bartlett
e203b28777 s3-build: Remove FIXME, bigballofmud is no more 2012-01-26 07:06:06 +01:00
Jeremy Allison
12609c1192 Update man page to fix typo vfs_aio_fork -> vfs_aio_pthread, add
aio read size, aio write size examples.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Jan 26 03:51:01 CET 2012 on sn-devel-104
2012-01-26 03:51:01 +01:00
Jeremy Allison
1ca4df58c7 Use sys_pread/sys_pwrite to cope correctly with 64-bit sizes. As in the default VFS case fall back from pread -> read and pwrite -> write on an ESPIPE error in the worker thread.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Jan 26 02:11:28 CET 2012 on sn-devel-104
2012-01-26 02:11:28 +01:00
Jeremy Allison
d8c699190d Add man page for vfs_aio_pthread module. 2012-01-25 15:36:03 -08:00
Volker Lendecke
851b2c1774 s3: Fix a panic in aio_pthread
Found by Nir Drang <nir@fabrix.tv>

Thanks!

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Jan 25 18:22:37 CET 2012 on sn-devel-104
2012-01-25 18:22:37 +01:00
Andreas Schneider
67126ed08c s3-waf: Reduce dependencies of winbindd.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Jan 25 13:31:19 CET 2012 on sn-devel-104
2012-01-25 13:31:19 +01:00
Andreas Schneider
c85e60bd6a s3-waf: Reduce dependencies of smbd_base. 2012-01-25 11:58:30 +01:00
Andreas Schneider
6d06a310f3 s3-waf: Fix cups dependency in PRINTING. 2012-01-25 11:58:30 +01:00
Andreas Schneider
0dcc51ef80 s3-waf: Add missing dependency to LIBNET. 2012-01-25 11:58:30 +01:00
Andreas Schneider
a5b4a47b7c s3-waf: Add missing dependency to RPC_WINREG. 2012-01-25 11:58:30 +01:00
Andreas Schneider
c4b05ec6e7 s3-waf: Reduce libsmbclient dependencies. 2012-01-25 11:58:29 +01:00
Andreas Schneider
1a4e4f0871 s3-waf: Reduce libnetapi dependencies. 2012-01-25 11:58:29 +01:00
Andreas Schneider
63c7118ae0 s3-waf: Link vlp only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
2fa6c5e038 s3-waf: Link split_tokens only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
5b8a22ec95 s3-waf: Link dbwrap_torture only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
9f917c08e5 s3-waf: Link dbwrap_tool only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
de1836f586 s3-waf: Link test_lp_load only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
b295da29b1 s3-waf: Link rpc_open_tcp only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
27630134ac s3-waf: Link ntlm_auth only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
1ffc082100 s3-waf: Link versiontest only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
dc4924b0a0 s3-waf: Link smbfilter only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
e0da5c955f s3-waf: Link locktest2 only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
273401733a s3-waf: Link vfstest only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
9eaeb6ceed s3-waf: Link pdbtest only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
8438fba08a s3-waf: Link locktest only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
bbb91314a2 s3-waf: Link sharesec only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
89c514ab37 s3-waf: Link eventlogadm only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
ab51d6660e s3-waf: Link smbcquotas only against needed subsystems. 2012-01-25 11:58:29 +01:00
Andreas Schneider
07cc5abb01 s3-waf: Link smbcacls only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
61c53ebbc1 s3-waf: Link msgtest only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
7d10eb7430 s3-waf: Link maketest only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
1fb2ef78c4 s3-waf: Link smbconftort only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
74d24fa08f s3-waf: Link nmblookup only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
e9b64f0ac0 s3-waf: Link nmblookup only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
1fa80f0f29 s3-waf: Link smbget only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
6f6fb03180 s3-waf: Link pdbedit only against needed subsystems. 2012-01-25 11:58:28 +01:00
Andreas Schneider
dd1b548152 s3-waf: Link smbpasswd only against needed subsystems. 2012-01-25 11:58:28 +01:00