Andrew Bartlett
a329c72f07
vfs: Remove -D_LARGEFILE64_SOURCE from vfs examples Makefile
2012-04-05 02:39:08 +02:00
Andrew Bartlett
96108eed10
build: #ifdef LARGE_SMB_OFF_T as off_t is now always 64 bits
2012-04-05 02:39:08 +02:00
Andrew Bartlett
214a668ff3
Remove off64_t declarations
2012-04-05 02:39:08 +02:00
Andrew Bartlett
694d81a7b5
build: Fix configure test that was declaring an off64_t
2012-04-05 02:39:08 +02:00
Andrew Bartlett
473b974a06
build: do not use HAVE_EXPLICIT_LARGEFILE_SUPPORT and *64() fucntions any more
2012-04-05 02:39:08 +02:00
Andrew Bartlett
b4e58111b9
build: Remove configure tests for *64 functions and types
...
We now use the standard types only.
Andrew Bartlett
2012-04-05 02:39:08 +02:00
Andrew Bartlett
d5c7de8650
build: Require 64-bit files support and do not define HAVE_EXPLICIT_LARGEFILE_SUPPORT
2012-04-05 02:39:08 +02:00
Andrew Bartlett
c03398ec0f
build: Add getconf LFS_CFLAGS support to waf build
2012-04-05 02:39:08 +02:00
Andrew Bartlett
db1f277979
build: use only standard _FILE_OFFSET_BITS=64 macro for large files
...
(We also already use any other macro as set by getconf LFS_CFLAGS, and
the standard AC_SYS_LARGEFILE macro in libreplace).
This is instead of using the transitional *64 posix largefile API
Andrew Bartlett
2012-04-05 02:39:08 +02:00
Andrew Bartlett
813d31183d
lib/replace: Add getconf LFS_CFLAGS support to autoconf build
2012-04-05 02:39:08 +02:00
Jeremy Allison
704ea4729b
Third part of fix for bug #8837 - smbd crashes when deleting directory and veto files are enabled.
...
Use correct check to see if veto files has been enabled. Even if not
set lp_veto_files() returns a valid string address (to a '\0' character).
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Apr 5 01:36:04 CEST 2012 on sn-devel-104
2012-04-05 01:36:04 +02:00
Jeremy Allison
c10ed730d4
Second part of bugfix for bug #8837 - smbd crashes when deleting directory and veto files are enabled.
...
Store the 'struct security_token' as well as the 'struct security_unix_token'
inside the locking db when setting a delete on close.
2012-04-04 14:58:42 -07:00
Jeremy Allison
f042de2f34
First part of fix for bug 8837 - smbd crashes when deleting directory and veto files are enabled.
...
Add some const to the sec_ctx code.
2012-04-04 14:58:42 -07:00
Andreas Schneider
d0fbe16a6b
systemd: Add samba service file.
...
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Apr 4 18:04:09 CEST 2012 on sn-devel-104
2012-04-04 18:04:09 +02:00
Stefan Metzmacher
0971a4ee6c
s4:librpc/rpc: also parse ncacn_packet pdus with LIBNDR_FLAG_OBJECT_PRESENT
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Apr 3 23:06:31 CEST 2012 on sn-devel-104
2012-04-03 23:06:30 +02:00
Stefan Metzmacher
05ceb53dda
s4:librpc/rpc: don't mix up paylod ndr flags with the dcerpc layer
...
If the transfer syntax is NDR64, it's only for the payload not
for the dcerpc pdus.
metze
2012-04-03 20:02:10 +02:00
Andrew Bartlett
fba028afbd
build: Remove checks for krb5_decode_ap_req, free_AP_REQ and KRB5_TICKET_HAS_KEYINFO
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Apr 3 19:19:33 CEST 2012 on sn-devel-104
2012-04-03 19:19:33 +02:00
Andrew Bartlett
bc3e52d9d0
build: Remove unused check for HAVE_KRB5_TKT_ENC_PART2
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
e5684b3c6f
s3-krb5 Remove unused get_kvno_from_ap_req()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
e01dc1c7bf
s3-krb5 Remove unused get_enctype_from_ap_req
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
0e2d659c94
s3-krb5: Remove unused smb_krb5_get_keyinfo_from_ap_req()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
c89f3bf564
s3-krb5: Remove unused get_key_from_keytab
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
8c40253cc1
s3-krb5: remove unused unwrap_pac()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
296f7705f6
s3-krb5: remove unused get_auth_data_from_tkt
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
fc8c533aba
s3-krb5: Remove unused get_authtime_from_tkt
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
b1c4f1ddfc
s3-krb5: Remove unused krb5_rd_req_return_keyblock_from_keytab
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
cf30feef16
s3-krb5: Remove unused get_principal_from_tkt
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
e715460898
s3-libads: Remove ads_verify_ticket() as it is now unused
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
410ca7311a
s3-libads: Rework kerberos_return_pac() to use GENSEC for the server-side
...
This removes the last user of ads_verify_ticket(), and means that we
only have one code path to verify an incoming krb5 (GSSAPI) ticket.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
4e3e323080
s3-libsmb: Remove unused spnego_parse_krb5_wrap()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
c7d29e8cda
build: Reduce deps of ntlm_auth
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
1c7c432874
s3-ntlm_auth: use manage_gensec_request for squid-2.5-ntlmssp
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
f3b005e759
s3-auth: Order GENSEC mechs by priority, krb5 before NTLMSSP
...
Otherwise, really simple clients (such as the current ntlm_auth gss-spnego client)
will not select krb5.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
893387d25f
s3-ntlm_auth: add ntlm_auth_generate_session_info_pac()
...
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:32 +02:00
Andrew Bartlett
4ccac90793
s3-ntlm_auth Use GENSEC for gss-spnego server
...
This imports the gensec handling code from the source4 ntlm_auth, which
will eventually be used for all the NTLMSSP and SPNEGO clients and servers
but which is only used for gss-spnego for now.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03 17:47:31 +02:00
Stefan Metzmacher
e425948323
s4:ldap_server: fix typo in DEBUG() message
...
metze
2012-04-03 17:47:31 +02:00
Jelmer Vernooij
5d10b499bf
wafsamba: Avoid NameError when printing error about missing system deps.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Apr 3 17:46:42 CEST 2012 on sn-devel-104
2012-04-03 17:46:42 +02:00
Volker Lendecke
22a6497526
s3: Enhance the dbwrap needed x attempts msg
...
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Tue Apr 3 15:17:11 CEST 2012 on sn-devel-104
2012-04-03 15:17:11 +02:00
Andrew Bartlett
b66b5f9e3f
lib/util: charset modules do not exist any more
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Apr 3 08:07:42 CEST 2012 on sn-devel-104
2012-04-03 08:07:41 +02:00
Andrew Bartlett
7cda954fbb
file_server: Move vfs objects initialisation into file_server.c smb.conf wrapper
2012-04-03 14:35:02 +10:00
Andrew Bartlett
da50ff7f84
s3-vfs: initial work on posix:eadb module
...
This is a module that, like vfs_xattr_tdb, stores extended attributes
in a DB on disk. This uses the format needed to support the
posix:eadb smb.conf option.
Andrew Bartlett
2012-04-03 14:35:02 +10:00
Andrew Bartlett
7b4d511bc6
s4-ntvfs: Rename xattr_tdb.c to posix_eadb.c and make more generally useful
...
This is now a small library, to be called from ntvfs, python and
vfs_posix_eadb. The rename makes it clear that this has a different
DB format to that used by vfs_xattr_tdb, and matches the posix:eadb
smb.conf parameter used to configure it.
Andrew Bartlett
2012-04-03 14:35:02 +10:00
Andrew Bartlett
8ef60901ce
s3-vfs: Use new smb_load_module for better diagnostics
2012-04-03 14:25:12 +10:00
Andrew Bartlett
c363815809
s3-smbd: Inline init_modules() into only caller
2012-04-03 14:25:12 +10:00
Andrew Bartlett
4d53e7c2ba
lib/util: Add smb_load_module that returns DEBUG(0) errors on failure
...
These errors are very important when trying to work out why a module
does not load, and this rework allows them to be shown when loading
vfs modules.
Andrew Bartlett
2012-04-03 14:25:12 +10:00
Stefan Metzmacher
c7a3b8ae21
s4:smb_server/smb2: add missing 'return;' statements in smb2srv_chain_reply()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Apr 2 23:02:53 CEST 2012 on sn-devel-104
2012-04-02 23:02:52 +02:00
Stefan Metzmacher
d72641ef76
s4:smb_server/smb2: after smbsrv_terminate_connection() we have to return
...
req is a talloc child of the connection...
metze
2012-04-02 21:26:08 +02:00
Stefan Metzmacher
e01d6f4af0
s4:smb_server/smb2: fix memory leak in smb2srv_chain_reply()
...
metze
2012-04-02 21:26:08 +02:00
Stefan Metzmacher
dca4e6eb6e
s4:smb_server/smb2: use helper variable smb2srv_chain_reply()
...
metze
2012-04-02 21:26:08 +02:00
Stefan Metzmacher
6865241fdd
s4:smb_server/smb: remove a request from the list before adding the next one in a chain.
...
metze
2012-04-02 21:26:07 +02:00