1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

3961 Commits

Author SHA1 Message Date
Jeremy Allison
8767a0dab9 Correctly use SPNEGO to negotiate down from krb5 to NTLMSSP.
Previously we didn't implement the 'NEGO' part of SPNEGO :-).
Jeremy.
2008-02-14 18:10:50 -08:00
Jeremy Allison
8cd04b948b Currently we don't SPNEGO negotiate back to NTLMSSP. Note this.
Jeremy.
2008-02-14 18:07:27 -08:00
Jeremy Allison
b41799c351 Ensure invalidate_vuid() deletes any ntlmssp state.
Jeremy.
2008-02-14 18:06:16 -08:00
Stefan Metzmacher
9d6b43ea10 smbd: use make usage of wbcDomainInfo()
metze
2008-02-11 18:14:15 +01:00
Karolin Seeger
2bec0a1fb7 Fix some typos.
Karolin
2008-02-08 10:05:32 +01:00
Jeremy Allison
4f125110cf Make operator precedence very clear.
Jeremy.
2008-02-06 10:31:22 -08:00
Alexander Bokovoy
7da6c67544 Change the file time before we change the file mode.
This doesn't matter for most applications, but for offline files it matters as it allows you to set
files offline from windows clients even with HSM systems that refuse to offline newly created files.
Merge from Tridge's v3-0-ctdb tree.
2008-02-06 09:10:50 +03:00
Alexander Bokovoy
9827d5ff41 Allow actual call to set file offline
Dos mode calculation was masking out FILE_ATTRIBUTE_OFFLINE so that code to set file offline
was never called before. Merge from Tridge's v3-0-ctdb git tree.
2008-02-06 09:09:23 +03:00
Alexander Bokovoy
f59d3786ab Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into dmapi-integration 2008-02-06 08:58:20 +03:00
Jeremy Allison
b3ac8073a2 Fix a couple of "might be used uninitialized" warnings.
Jeremy.
2008-02-05 13:36:17 -08:00
Karolin Seeger
3745e398b1 Fix typo.
Karolin
2008-02-05 16:22:59 +01:00
Volker Lendecke
feddc1447d str_list_free is not needed anymore 2008-02-04 21:05:41 +01:00
Volker Lendecke
e2c9fc4cf5 Always pass a TALLOC_CTX to str_list_make and str_list_copy 2008-02-04 20:57:49 +01:00
Volker Lendecke
26771bdca0 Remove smb_read_error global
YESS :-)
2008-02-02 11:03:23 +01:00
Volker Lendecke
fad8796892 Remove dependency on get_srv_read_error() from main loop 2008-02-02 11:03:23 +01:00
Volker Lendecke
0f7d360a01 Convert receive_message_or_smb to NTSTATUS 2008-02-02 11:03:23 +01:00
Volker Lendecke
af40b71023 Convert read_data() to NTSTATUS 2008-02-02 11:03:23 +01:00
Volker Lendecke
9e2947039e Make get_srv_read_error static to process.c 2008-02-02 11:03:23 +01:00
Volker Lendecke
ba771bd858 Convert receive_smb_raw to NTSTATUS 2008-02-02 11:03:23 +01:00
Volker Lendecke
90554799af read_socket_with_timeout_ntstatus->read_socket_with_timeout 2008-02-02 11:03:22 +01:00
Volker Lendecke
f9c8ac83ff Get rid of read_socket_with_timeout 2008-02-02 11:03:22 +01:00
Volker Lendecke
ddbdd11a49 Convert receive_smb_talloc to NTSTATUS 2008-02-02 11:03:22 +01:00
Volker Lendecke
187707591f Convert receive_smb_raw_talloc to NTSTATUS 2008-02-02 11:03:22 +01:00
Volker Lendecke
9a82350ba9 Convert receive_smb_raw_talloc_partial_read to NTSTATUS 2008-02-02 11:03:22 +01:00
Volker Lendecke
667864d442 Convert read_packet_remainder to return NTSTATUS 2008-02-02 11:03:22 +01:00
Volker Lendecke
fff31f8f35 Convert read_packet_remainder to use read_socket_with_timeout_ntstatus 2008-02-02 11:03:21 +01:00
Volker Lendecke
5750c3a51b Convert read_smb_length to return NTSTATUS 2008-02-02 11:03:21 +01:00
Volker Lendecke
73a79a957a Convert read_smb_length_return_keepalive to return NTSTATUS 2008-02-02 11:03:21 +01:00
Alexander Bokovoy
d46fc35dd4 Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into dmapi-integration 2008-01-31 16:08:57 +03:00
Volker Lendecke
46882ad992 Re-enable async I/O for non-TSM systems
The logic was wrong: A "SMB_VFS_AIO_FORCE()==False" disabled async I/O, whereas
a "SMB_VFS_AIO_FORCE()==True" should enforce it regardless of other settings.

Alexander, please check!
2008-01-30 11:12:10 +01:00
Alexander Bokovoy
8afb7133e9 Fix BOOL introduced by last commit 2008-01-29 18:01:23 +03:00
Alexander Bokovoy
5efb57d904 Merge DMAPI fixes from Tridge
Support cases when existing DMAPI session is stale. In this case we are creating another one.
The code differs from 3-0_ctdb branch in that we fail when it is not possible to create more
sessions and pretend that file is offline. This allows to escape endless loop in vfs_tsmsm.c.
2008-01-29 17:43:49 +03:00
Alexander Bokovoy
58dce4cdf2 Merge branch 'ctdb-merge' into dmapi-integration 2008-01-29 16:19:21 +03:00
Volker Lendecke
147033b9df Remove an unused external reference 2008-01-27 00:35:14 +01:00
Volker Lendecke
aba8c17599 Fix uninitialized variables
Thanks to Corinna Vinschen
2008-01-26 21:29:18 +01:00
Jeremy Allison
c5edf74569 Fix the same bug with user -> user_obj.
Jeremy.
2008-01-24 18:22:43 -08:00
Jeremy Allison
4d302254fd Fix a really subtle old, old bug :-). When canonicalizing the
NT ACL into a POSIX one, if the group being set is the primary group
of the file, map it into a SMB_ACL_GROUP_OBJ, not a SMB_ACL_GROUP.
Otherwise we get an extra bogus group entry in the POSIX ACL.
Jeremy.
2008-01-24 18:13:22 -08:00
Jeremy Allison
3df2f7ca78 Correctly set flags in ACE's inherited from parent. Still one bug
left to find then I'll back-port to 3.0.28.
Jeremy.
2008-01-24 17:50:07 -08:00
Jeremy Allison
58cfa4b1bd Make explicit in debug we're ignoring flags from the parent SD.
Jeremy
2008-01-24 16:13:53 -08:00
Jeremy Allison
b628269b32 Add debug messages to trace this if needed.
Jeremy.
2008-01-24 13:27:00 -08:00
Jeremy Allison
e898789e0d The checks for OI and CI were just wrong.... Fix them. Thanks to
Jim for testing this.
Jeremy.
2008-01-24 13:06:11 -08:00
Jeremy Allison
f5e50f42e7 First part of fix for bug #4929 - worked out by jmcd.
Cope with protected ACL set correctly.
Jeremy.
2008-01-24 12:59:08 -08:00
Alexander Bokovoy
42d06d41bf Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into ctdb-merge 2008-01-24 14:06:22 +03:00
Volker Lendecke
7101026061 read_socket_with_timeout has timeout=0 handling 2008-01-23 17:09:10 +01:00
Volker Lendecke
fd34ce4370 strtok -> strtok_r 2008-01-23 15:08:04 +01:00
Volker Lendecke
f12ac1eced Remove two unused variables 2008-01-23 10:33:36 +01:00
Corinna Vinschen
a33d079758 Get Samba version or capability information from Windows
On Jan 22 13:31, Volker Lendecke wrote:
> On Tue, Jan 22, 2008 at 11:33:17AM +0100, Corinna Vinschen wrote:
> > Right.  I changed samba_gitcommitdate from time_t to NTTIME and shortened
> > samba_version_string to 28 bytes.  New patch below.
>
> Ok, pushed with some modifications. You might want to review
> that.

Reviewed and tested.  Looks good, thank you!

Below you'll find a tiny patch to add the git commit date.  It seems
I simply missed its existence in version.h :(  Tested on Windows XP.

Thanks,
Corinna

	* source/smbd/trans2.c (samba_extended_info_version): Fill out
	samba_gitcommitdate member with GIT commit timestamp.
2008-01-22 16:45:25 +01:00
Volker Lendecke
1f0eaaa591 Move samba_extended_info_version to smbd/trans2.c
This is right now only used there, and in version.c it gave linker errors
because some binaries (e.g. smbmnt) don't link in time.o
2008-01-22 13:00:22 +01:00
Corinna Vinschen
28aa1c199d Get Samba version or capability information from Windows
On Jan 21 16:18, Danilo Almeida wrote:
> Corina wrote:
>
> > +	time_t samba_gitcommitdate;
>
> And:
>
> > +   SIVAL(pdata,28,extended_info.samba_gitcommitdate);
> > +   memcpy(pdata+32,extended_info.samba_version_string,32);
>
> Note that you are dropping bits on a system w/64-bit time_t, and that this has the 2038 problem.

Right.  I changed samba_gitcommitdate from time_t to NTTIME and shortened
samba_version_string to 28 bytes.  New patch below.

Thanks,
Corinna
2008-01-22 12:39:47 +01:00
Volker Lendecke
e9bb3d5067 Hide streams from the EA API 2008-01-22 12:29:02 +01:00