Volker Lendecke
9b79181f15
Remove unused function parent_dirname
2008-12-31 19:33:25 +01:00
Volker Lendecke
add3d572d0
Remove unused function get_numlist()
2008-12-31 19:33:24 +01:00
Volker Lendecke
ce2ff557bd
Fix an ancient uninitialized variable read
...
The callers of open_file_ntcreate expect *psbuf to be filled correctly
2008-12-31 10:51:44 +01:00
Tim Prouty
cb5db966e3
s3 build: Revert previous patch to fix the build
...
888524623d
broke the build. I'm
reverting it for the short term, while I work on a better fix.
2008-12-30 18:51:16 -08:00
Tim Prouty
0cb430c22e
s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 and s4
2008-12-30 16:19:42 -08:00
Tim Prouty
888524623d
s3 build: Remove redundant #defines that are in idl generated headers
...
This fixes a series of samba3 build warnings in the merged build:
'error: "X" redefined', where X is one of the redundant #defines
2008-12-30 16:19:29 -08:00
Stefan Metzmacher
465176b7e2
s3:cluster: register the client connection via CTDB_CONTROL_TCP_ADD
...
This means we correctly pass IPv6 addresses too.
(CTDB_CONTROL_TCP_CLIENT was IPv4 only)
metze
2008-12-30 16:18:08 +01:00
Stefan Metzmacher
671469ae7e
s3:passdb: add SAMU_BUFFER_V4 with no changes
...
The upgrade is required because of the followin TDBSAM_VERSION
upgrade.
metze
2008-12-29 21:10:49 +01:00
Stefan Metzmacher
0544734309
s3:passdb: make marshalling struct samu from and to a buffer more generic
...
This marshalling isn't specific to tdbsam and it's
ugly to have the related functions in two different files.
metze
2008-12-29 21:10:49 +01:00
Volker Lendecke
82a152fcf9
Add write_data_iov
2008-12-29 13:24:27 +01:00
Volker Lendecke
6251b97e02
Add sys_writev
2008-12-29 13:24:27 +01:00
Stefan Metzmacher
a255f9ce71
s3:dbwrap: fix dbwrap_store_uint32() to match dbwrap_store_int32()
...
All callers expect 0 an success and -1 on error.
metze
2008-12-29 09:05:15 +01:00
Volker Lendecke
9f31468bd3
Add async cli_write_andx and cli_pull
2008-12-19 23:16:25 +01:00
Volker Lendecke
fa5f11279b
Add the cli_wct_ofs routine to calculate the offset for write&x
2008-12-19 18:12:44 +01:00
Volker Lendecke
ae0c6cff25
Remove the direct inbuf reference from construct_reply_common()
2008-12-19 18:08:47 +01:00
Volker Lendecke
1f04d07db0
Convert cli_request->outbuf to uint8_t
2008-12-19 17:47:30 +01:00
Volker Lendecke
398ef0fb85
For large smbwrite&x, we need more than 64k bcc
2008-12-19 16:13:27 +01:00
Volker Lendecke
4abdd3981e
Pass "bytes_alignment" up through cli_request_send
...
This parameter makes smb_spice_chain add padding before the bytes field
2008-12-19 14:53:29 +01:00
Volker Lendecke
f87da49830
Make cli_negprot async
2008-12-19 10:50:52 +01:00
Volker Lendecke
bb8ca0fdbf
Make cli_negprot return NTSTATUS instead of bool
2008-12-19 10:28:30 +01:00
Volker Lendecke
96a3d7be31
cli_negprot_send -> cli_negprot_sendsync
2008-12-19 10:28:20 +01:00
Günther Deschner
43d0a4813b
s3-ntsvcs: remove last traces of hand-marshalled NTSVCS.
...
Guenther
2008-12-17 23:52:42 +01:00
Günther Deschner
934b90c17c
s3-ntsvcs: remove old _PNP_GetDeviceList.
...
Guenther
2008-12-17 23:52:41 +01:00
Karolin Seeger
b6e7caebe4
s3/smb.h: Remove unused LDAP_SSL_ON.
...
LDAP_SSL_ON is not defined at all.
Ldaps can be used by specifying an ldaps URL using the "passdb backend"
parameter.
Karolin
2008-12-17 16:31:06 +01:00
SATOH Fumiyasu
4c3aea3f62
commit b520befe6f51644d20434add9864d7a2fa30aa2e
...
Author: SATOH Fumiyasu <fumiyas@osstech.co.jp>
Date: Wed Dec 17 00:42:25 2008 +0900
libsmbclient: Fix SIGBUS on non-x86 CPUs
We must align the struct smbc_dirent in the struct
SMBC_internal_data because the struct smbc_dirent
has numeric values that require alignment.
Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
2008-12-16 12:20:40 -05:00
Jelmer Vernooij
2be233ebe3
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2008-12-15 23:19:49 +01:00
Michael Adam
91c543f0b5
s3:loadparm: rename lp_local_ptr() to lp_local_ptr_by_snum()
...
Michael
2008-12-15 14:16:06 +01:00
Jelmer Vernooij
573441ff9b
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2008-12-14 17:17:55 +01:00
Volker Lendecke
daeb3a190d
Remove the global "cmdline_auth_info" from source3/lib/util.c
...
This involves changing all our clients, that's why it's so large.
2008-12-14 14:00:43 +01:00
Volker Lendecke
31f157a04b
Move 128 bytes from the data to the text segment
2008-12-14 13:13:37 +01:00
Stefan Metzmacher
895c40d03a
s3:libsmb/namequery.c: add saf_join_store() function
...
saf_join_store() should be called after a successful
domain join, the affinity to the dc used at join time
has a larger ttl, to avoid problems with delayed replication.
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 80e74a27c5
)
2008-12-13 11:42:35 +01:00
Stefan Metzmacher
588f5aae66
s3: correctly detect if the current dc is the closest one
...
ads->config.tried_closest_dc was never set.
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit dfe5b00db3
)
2008-12-13 11:42:22 +01:00
Günther Deschner
fb6803119c
s3: remove duplicate prototypes in proto.h.
...
Guenther
2008-12-13 00:26:13 +01:00
Jelmer Vernooij
cd25b6245f
Move dom_sid to the Samba 3 IDL file, remove the old definition.
2008-12-12 20:20:01 +01:00
Volker Lendecke
1c6a87604f
Fix the build
...
Crap, too many trees and no instant, infinitely fast rebuild
Signed-off-by: Michael Adam <obnox@samba.org>
2008-12-11 00:00:50 +01:00
Volker Lendecke
7ad9676864
Revert "Fix the build"
...
This reverts commit c044b09572
.
2008-12-10 23:13:34 +01:00
Volker Lendecke
c044b09572
Fix the build
...
Crap, too many trees and no instant, infinitely fast rebuild
2008-12-10 19:02:11 +01:00
Volker Lendecke
21b9dec990
Pass the get_real_filename operation through the VFS
...
This is done to help file systems that can tell us about the real upper/lower
case combination given a case-insensitive file name. The sample I will soon
push is the gpfs module (recent gpfs has a get_real_filename function), others
might have a similar function to help alleviate the 1million files in a single
directory problem.
Jeremy, please comment!
Thanks,
Volker
2008-12-10 18:05:26 +01:00
Günther Deschner
b431406357
s3-netlogon: fix netlogon server build.
...
Guenther
2008-12-10 11:58:28 +01:00
Tim Prouty
7b9f6dda13
s3: [3/3]: Fix a delete on close divergence from windows and the associated torture test
...
This third patch cleans up by removing all of the code that is made
obsolete by the first patch. It should cause no functional changes.
2008-12-09 18:06:49 -08:00
Tim Prouty
2053f77b3c
s3: Refactor calculating path from relative_fid into a separate function
2008-12-09 14:51:48 -08:00
Tim Prouty
6153f622af
s3: Refactor getting sec_info from a security_descriptor into separate function
2008-12-09 14:51:48 -08:00
Tim Prouty
d5d9d3dc0e
s3: Make a few open utility functions non-static
...
This allows vfs modules that implement SMB_VFS_CREATE_FILE to access
some of the useful utility functions.
2008-12-09 14:51:47 -08:00
Todd Stecher
9985898e94
s3: Add support for access based share enumeration
2008-12-08 22:23:16 -08:00
Volker Lendecke
7fbb64d726
Simplify async programming a bit with helper routines
...
Introduce async_req_is_error() and async_req_simple_recv()
2008-12-08 22:09:33 +01:00
Volker Lendecke
f9aa69ae35
Streamline the async_sock API a bit
2008-12-08 22:09:33 +01:00
Volker Lendecke
ed25c6c287
Add a "bytes_padding" parameter to smb_splice_chain
...
For example open&x and write&x needs the bytes to be aligned relative to the
SMB header. In particular for write&x we should not have to move stuff around.
2008-12-08 22:09:33 +01:00
Volker Lendecke
f0bb53dd0f
Factor out smb_splice_chain(), to be used by chain_reply() in smbd
2008-12-08 22:09:33 +01:00
Jeremy Allison
3b6e5e6cc8
Fix lp_socket_address() prototype.
...
Jeremy.
2008-12-05 14:04:51 -08:00
Günther Deschner
b883bcd4ff
s3: store user session key in cli_rpc_pipe_open_noauth().
...
Guenther
2008-12-05 14:27:03 +01:00