Günther Deschner
2ccf75d9a9
s3: remove unused regval_build_multi_sz().
...
Guenther
2009-09-30 00:33:54 +02:00
Günther Deschner
76bb380839
s3-rpc_parse: remove unused UNISTR2 struct and init function.
...
Guenther
2009-09-30 00:33:47 +02:00
Günther Deschner
f8016cfee9
s3-util: add pull_reg_sz() and pull_reg_multi_sz() convenience functions.
...
Guenther
2009-09-30 00:30:47 +02:00
Günther Deschner
a50cc61ee6
s3-registry: add regval_ctr_addvalue_sz.
...
Guenther
2009-09-30 00:29:56 +02:00
Günther Deschner
fcee9d2c97
s3-util: add push_reg_sz() and push_reg_multi_sz() convenience functions.
...
Guenther
2009-09-30 00:29:24 +02:00
Volker Lendecke
76d95b9a2d
s3:gencache: Add a "was_expired" argument to gencache_get_data_blob
...
This is set to true if the routine returns failure due to an existing but
expired entry.
2009-09-23 18:50:33 +02:00
Andrew Bartlett
59bea84362
libcli:nbt move prototypes of lmhosts functions to libnbt.h
2009-09-19 14:34:16 -07:00
Jeremy Allison
16836f9e9e
We now pass the Microsoft SMB2 fileio test with EA's and streams...
...
Jeremy.
2009-09-17 09:29:07 -07:00
Günther Deschner
503d035814
spnego: share spnego_parse.
...
Guenther
2009-09-17 01:12:20 +02:00
Günther Deschner
44e44310d1
s3-netlogon: support validation level 6 in netr_SamLogon calls.
...
Guenther
2009-09-16 18:00:03 +02:00
Günther Deschner
37bc806453
s3-dcerpc: remove more obsolete or duplicate headers.
...
Guenther
2009-09-16 08:55:51 +02:00
Günther Deschner
97d7a524ab
s3-schannel: remove unused schannel_decode/schannel_encode.
...
Guenther
2009-09-16 01:55:13 +02:00
Günther Deschner
799f8d7e13
schannel: fully share schannel sign/seal between s3 and 4.
...
Guenther
2009-09-16 01:55:06 +02:00
Günther Deschner
d3af0346c8
s3-dcerpc: use dcerpc_AuthLevel and remove duplicate set of flags.
...
Guenther
2009-09-15 17:49:34 +02:00
Andrew Bartlett
668470c992
libcli:nbt make the lmhosts parsing code and dependicies common
...
This starts the process to have Samba4 use lmhosts.
Andrew Bartlett
2009-09-15 07:42:54 -07:00
Günther Deschner
2f9adf04e4
s3-rpc_client: add rpccli_lsa_lookup_sids3 wrapper.
...
Guenther
2009-09-14 06:49:58 +02:00
Günther Deschner
ff968712ba
s3-rpc_client: add rpccli_lsa_lookup_names4 wrapper.
...
Guenther
2009-09-14 06:49:58 +02:00
Günther Deschner
bea8e5fa60
s3-rpc_client: add dcerpc_transport_t to cli_rpc_pipe_open_schannel().
...
Guenther
2009-09-11 09:59:04 +02:00
Günther Deschner
032e01e7c1
s3-rpc_client: add dcerpc_transport_t to cli_rpc_pipe_open_spnego_ntlmssp and cli_rpc_pipe_open_ntlmssp.
...
Guenther
2009-09-11 09:59:04 +02:00
Günther Deschner
87f61a144b
s3-rpc_client: add cli_rpc_pipe_open_noauth_transport.
...
Guenther
2009-09-11 09:59:03 +02:00
Günther Deschner
c4f6fb0b2d
s3-schannel: remove last schannel hand-marshalling function.
...
Guenther
2009-09-11 03:00:43 +02:00
Günther Deschner
d258fb4d0d
s3-schannel: use NL_AUTH_SIGNATURE for schannel sign & seal (client & server).
...
Guenther
2009-09-11 03:00:35 +02:00
Günther Deschner
a155f3f9a9
s3-schannel: remove unused code.
...
Guenther
2009-09-11 02:57:35 +02:00
Günther Deschner
3c70480f3b
s3-util: add get/set_cmdline_auth_info_domain to user_auth_info struct.
...
Guenther
2009-09-11 00:36:59 +02:00
Günther Deschner
a48f884f70
s3: remove unused RPC_AUTH_SCHANNEL_NEG struct and parsing functions.
...
Guenther
2009-09-08 17:07:03 +02:00
Jeremy Allison
43c766a14a
Fix bug 6673 - smbpasswd does not work with "unix password sync = yes".
...
Revert change from 3.3 -> 3.4 with read_socket_with_timeout changed
from sys_read() to sys_recv(). read_socket_with_timeout() is called
with non-fd's (with a pty in chgpasswd.c and with a disk file in
lib/dbwrap_file.c via read_data()). recv works for the disk file,
but not the pty. Change the name of read_socket_with_timeout() to
read_fd_with_timeout() to make this clear (and add comments).
Jeremy.
2009-09-06 21:38:50 -07:00
Aravind Srinivasan
e046b382f2
s3: Add a new VFS op called SMB_VFS_TRANSLATE_NAME
...
This vop is designed to work in tandem with SMB_VFS_READDIR to allow
vfs modules to make modifications to arbitrary filenames before
they're consumed by callers. Subsequently the core directory
enumeration code in smbd is now changed to free the memory that may be
allocated in a module. This vop enables the new version of catia in
the following patch.
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-08-28 16:38:57 -07:00
Stefan Metzmacher
5234d10c8e
s3:smbd: add is_fake_file_path() that takes only the raw path as string
...
metze
2009-08-27 16:45:40 +02:00
Günther Deschner
360868b6e8
s3-schannel: remove remaining code that was using "struct dcinfo".
...
Guenther
2009-08-27 15:55:20 +02:00
Günther Deschner
a3c6e02748
s3-credentials: remove unused code.
...
Guenther
2009-08-27 15:55:20 +02:00
Günther Deschner
a09b627ecc
s3-schannel: add simple wrappers to fetch and store schannel auth info.
...
Guenther
2009-08-27 15:55:19 +02:00
Günther Deschner
7c972d83d2
s3-schannel: make open_schannel_session_store() public.
...
Guenther
2009-08-27 15:55:19 +02:00
Steven Danneman
6c55518d47
s3/smbd: open the share_info.tdb on startup instead of tconx
...
This is a small performance optimization. Instead of opening the tdb
on every smb connection in the forked child process, we now open it in
the parent and share the fd.
This also reduces the total fd usage in the system.
2009-08-26 16:34:10 -07:00
Volker Lendecke
b824b1b7bf
Add a parameter to disable the automatic creation of krb5.conf files
...
This is necessary because MIT 1.5 can't deal with certain types (Tree Root) of
transitive AD trusts. The workaround is to add a [capaths] directive to
/etc/krb5.conf, which we don't automatically put into the krb5.conf winbind
creates.
The alternative would have been something like a "krb5 conf include", but I
think if someone has to mess with /etc/krb5.conf at this level, it should be
easy to add the site-local KDCs as well.
Next alternative is to correctly figure out the [capaths] parameter for all
trusted domains, but for that I don't have the time right now. Sorry :-)
2009-08-26 15:28:06 +02:00
Volker Lendecke
1df18922c6
Add some const to dsgetdcname
2009-08-25 17:38:31 +02:00
Jeremy Allison
c69f92d16d
Second attempt at fix for bug 6529 - Offline files conflict with Vista and Office 2003.
...
Confirmation from reporter that this fixes the issue in master on ext3/ext4.
Back-ports to follow.
Jeremy.
2009-08-24 20:57:37 -07:00
Jeremy Allison
87d30a1968
Second part of fix for 6529 - Offline files conflict with Vista and Office 2003.
...
ext4 may be able to store ns timestamps, but the only API to *set* timestamps
takes usec, not nsec. Round to usec on set requests.
Jeremy.
2009-08-24 12:30:05 -07:00
Jeremy Allison
1af0aa92b3
Fix bug 6529 - Offline files conflict with Vista and Office 2003
...
On filesystems that can't store less than one second timestamps,
round the incoming timestamp set requests so the client can't discover
that a time set request has been truncated by the filesystem.
Needs backporting to 3.4, 3.3, 3.2 and (even) 3.0.
Jeremy
2009-08-21 21:44:21 -07:00
Jeremy Allison
d6270df748
Add "store create time" parameter (docs to follow)
...
that stores the create time in the user.DosTimestamps EA.
Jeremy.
2009-08-12 13:00:54 -07:00
Jeremy Allison
c9dca82ed7
Refactor the use of create_time and change time to go
...
through functions. Will aid in making us pass RAW-SETFILEINFO.
Jeremy.
2009-08-10 15:07:53 -07:00
Stefan Metzmacher
59c3f5e3ca
s3:smbd: move dptr globals into struct smbd_server_connection
...
metze
2009-08-07 14:18:17 +02:00
Stefan Metzmacher
c50a03e4e2
s3:smbd: remove dirptr and dirpath from connection_struct
...
They're both only used in the context of a function,
so we can make them stack variables.
metze
2009-08-07 14:18:17 +02:00
Stefan Metzmacher
70afd419a6
s3:smbd: conn_free_internal() can be static now
...
metze
2009-08-07 14:18:15 +02:00
Stefan Metzmacher
c54e6b19e3
s3:smbd: add a smbd_server_connection pointer to connection_struct
...
This can be NULL for faked connection structs used in the rpc server
or printing code.
metze
2009-08-07 14:18:14 +02:00
Jeremy Allison
890dfe003c
Remove a const warning.
...
Jeremy.
2009-08-06 15:47:05 -07:00
Michael Adam
ae58ff981d
s3:dbwrap: add dbwrap_trans_change_int32_atomic()
...
A transaction wrapper for dbwrap_change_int32_atomic().
Michael
2009-07-29 16:26:29 +02:00
Michael Adam
a86e163c1b
s3:dbwrap: change dbwrap_change_int32_atomic() to take int32_t, not int32
...
Michael
2009-07-29 16:26:27 +02:00
Michael Adam
0579438039
s3:dbwrap: add dbwrap_trans_change_uint32_atomic()
...
A transaction wrapper for dbwrap_change_uint32_atomic().
Michael
2009-07-29 16:26:25 +02:00
Michael Adam
aa4e5a32a7
s3:dbwrap: change dbwrap_change_int32_atomic() to return NTSTATUS not int32.
...
Michael
2009-07-29 16:26:21 +02:00
Michael Adam
ded0ce8345
s3:dbwrap: change dbwrap_change_uint32_atomic() to return NTSTATUS not uint32_t.
...
Michael
2009-07-29 16:26:21 +02:00