1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

21634 Commits

Author SHA1 Message Date
Jeremy Allison
ef32de6b59 r21731: Fix long-standing bug in our chain processing code.
Should fix a bug with WinPE. Probably a candidate
for the Vista patchset.
Jeremy.
2007-10-10 12:18:26 -05:00
Jeremy Allison
84ed7bcbe6 r21726: Fix stupid cut-n-paste typo. Thanks to volker for
being on the ball..... :-).
Jeremy.
2007-10-10 12:18:26 -05:00
Jeremy Allison
4816af5ce9 r21725: Fix for memalign used without test guards. Was
breaking the build on *BSD's. Tested by Herb.
Jeremy.
2007-10-10 12:18:26 -05:00
Jeremy Allison
1b063496f9 r21724: Optimization pointed out by Volker. If we don't
have any outstanding locks or blocking locks then
we don't need to read the lock db. on close.
Jeremy.
2007-10-10 12:18:26 -05:00
Volker Lendecke
f3421ae4cf r21723: Make use of the per-hashchain "freelists" 2007-10-10 12:18:25 -05:00
Volker Lendecke
97af3a019b r21722: Add the dead record functionality presented on samba-technical@samba.org. If
you do a tdb_set_max_dead(tdb, n), then for this tdb a delete operation will
only mark a record as dead and re-use it if a new record is created. The
parameter n allows for at most n dead records per hash chain. If this number
is exceeded, all dead records are put on the central freelist.

Volker
2007-10-10 12:18:25 -05:00
James Peach
32c7281f90 r21717: Support the SMB_QUERY_POSIX_WHOAMI info level on QueryFsInfo. 2007-10-10 12:18:25 -05:00
Jeremy Allison
10430bf75a r21715: Fix torture utime code.
Jeremy.
2007-10-10 12:18:24 -05:00
Jeremy Allison
8f3d530c5a r21714: Change the VFS interface to use struct timespec
for utimes - change the call to ntimes. This preserves
nsec timestamps we get from stat (if the system supports
it) and only maps back down to usec or sec resolution
on time set. Looks bigger than it is as I had to move
lots of internal code from using time_t and struct utimebuf
to struct timespec.
Jeremy.
2007-10-10 12:18:24 -05:00
Volker Lendecke
b73685d207 r21706: get_delete_on_close_flag() is the perfect candidate for tdb_parse_record() 2007-10-10 12:18:24 -05:00
Herb Lewis
06c777529f r21705: add modify rights defines 2007-10-10 12:18:24 -05:00
Herb Lewis
51b96ba79c r21704: open sockets immediately in process_loop 2007-10-10 12:18:23 -05:00
Herb Lewis
73b7a25ba8 r21703: fix build when O_SYNC not defined 2007-10-10 12:18:23 -05:00
Jeremy Allison
b8327b21dd r21672: The cannonical file access pattern should look like this :
srvstr_get_path(inbuf, name, smb_buf(inbuf) + 1, sizeof(name), 0, STR_TERMINATE, &status);
	if (!NT_STATUS_IS_OK(status)) {
		return ERROR_NT(status);
	}

	RESOLVE_DFSPATH(name, conn, inbuf, outbuf);

	status = unix_convert(conn, name, False, NULL, &sbuf);
	if (!NT_STATUS_IS_OK(status)) {
		return ERROR_NT(status);
	}

	status = check_name(conn, name);
	if (!NT_STATUS_IS_OK(status)) {
		return ERROR_NT(status);
	}

Make sure that every access pattern (including the
wildcard generated paths from unlink, rename, and copy)
do the same. Tidy things up a bit....

Jeremy.
2007-10-10 12:18:23 -05:00
Jeremy Allison
8a90d5dd4f r21667: posix_unlink should break existing oplocks.
Jeremy.
2007-10-10 12:18:23 -05:00
Jeremy Allison
9b16c57960 r21666: (only in 3.0, not 3.0.25). Fix bad parameter to call.
Jeremy.
2007-10-10 12:18:23 -05:00
Jeremy Allison
fe00771df5 r21665: Fix bug #4428 reported by Jason Mader <jason@ncac.gwu.edu>.
Jeremy.
2007-10-10 12:18:23 -05:00
Jeremy Allison
24a4d4d7ad r21664: Fix #4425 - patch from Jason Mader <jason@ncac.gwu.edu>.
Jeremy
2007-10-10 12:18:22 -05:00
Jeremy Allison
32b040fe05 r21663: Fix from the Wine guys: Robert Shearman <rob@codeweavers.com>
The background behind this patch is that we're using ntlm_auth with
Wine. Windows allows us to pass in a NULL domain and a username of the
form of "user@domain" and this is converted into an NTLMSSP_AUTH packet
with a NULL domain name and a username of the same form.
Jeremy.
2007-10-10 12:18:22 -05:00
Herb Lewis
5a7330cfe4 r21657: get rid of warning - not everyone understands %F 2007-10-10 12:18:22 -05:00
Jelmer Vernooij
7fdbf66976 r21655: Regenerate after pidl bugfix. 2007-10-10 12:18:22 -05:00
Jelmer Vernooij
7ce0c5d0cc r21652: Fix samba3-specific initialization 2007-10-10 12:18:22 -05:00
Jelmer Vernooij
0db258c600 r21651: Add ndrdump to samba 3. This only works from external source at the
moment. To use, use something like:

./bin/ndrdump -l bin/smbd winreg winreg_EnumValue in <filename>

or to see what functions are available:

./bin/ndrdump -l bin/smbd winreg
2007-10-10 12:18:21 -05:00
James Peach
4d5654a8ab r21647: Allow unit on for size parameters. 2007-10-10 12:18:21 -05:00
Jeremy Allison
b9408304db r21646: Patch from SATOH Fumiyasu <fumiyas@osstech.co.jp>
- add minsize parameter. Bug #4409.
Jeremy.
2007-10-10 12:18:21 -05:00
Jeremy Allison
98f4b64574 r21645: Make posix_unlink work - on open files too !
Jeremy.
2007-10-10 12:18:21 -05:00
Jeremy Allison
3c47a5ef25 r21644: Allow mkdir on platforms with no O_DIRECTORY.
Add proper debug to all possible setfilepathinfo
functions.
Jeremy.
2007-10-10 12:18:21 -05:00
Jeremy Allison
334b34f131 r21643: Put the correct bits on the wire for posix_mkdir.
We're not yet deleting open files on unlink. Investigating...
Jeremy.
2007-10-10 12:18:20 -05:00
Volker Lendecke
2186e276a0 r21642: Fix bug 4365. Please note that this was only tested with Vista so far, it
needs testing with other clients as well. I'm afraid I'm visiting a conference
tomorrow and saturday, so I'd be happy to get support in this.

Thanks,

Volker
2007-10-10 12:18:20 -05:00
Jeremy Allison
9858e5b725 r21641: Add test code for POSIX pathname calls into smbclient.
Jeremy.
2007-10-10 12:18:20 -05:00
Jeremy Allison
6a0f6fde0a r21640: Fix the build for broken platoforms without O_DIRECT or O_DIRECTORY.
Jeremy.
2007-10-10 12:18:19 -05:00
Jeremy Allison
6457d66b9a r21639: Add in implementations of POSIX open/mkdir/unlink/rmdir.
Jeremy.
2007-10-10 12:18:19 -05:00
Jeremy Allison
f0c8488d38 r21638: Change POSIX_UNLINK to allow clients to differentiate
between unlink/rmdir calls.
Jeremy.
2007-10-10 12:18:19 -05:00
Jim McDonough
f3a8048a62 r21637: Get "password never expires" account policy working.
0x8000000000000000LL is "infinity" to NT and should
not be converted numerically to time_t.
2007-10-10 12:18:19 -05:00
Gerald Carter
518052be38 r21636: Was almost right before. We have to specify the short domain name to get the
Krb5 config stuff to work in the server affinity settings.
2007-10-10 12:18:19 -05:00
Gerald Carter
78bf4042dd r21635: Don't free talloc()'d memory. I wish people would check the callers
when changing how memory is allocated.
2007-10-10 12:18:19 -05:00
Gerald Carter
256f36dce3 r21633: First real fix from me found during the bug hunt.
ads_cached_connection() does not call get_dc_name()
before ads_connect() and therefore does not setup
the environment to look at krb5.conf.DOMAIN file
before sending the TGT request.  The failure I'm seeing
occurs ni a multi-DC domain where we get back preuath
failed after we just joined the domain.
2007-10-10 12:18:18 -05:00
Gerald Carter
82dc19f844 r21632: Remove ununsed variable 2007-10-10 12:18:18 -05:00
Gerald Carter
d68b2910c8 r21626: Fix memory leak on error path noticed by
SATOH Fumiyasu <fumiya@samba.gr.jp>
2007-10-10 12:18:18 -05:00
Simo Sorce
0de7472428 r21623: Fix copy/paste error 2007-10-10 12:18:18 -05:00
Gerald Carter
05886edb35 r21622: Fix bad merge caught by James. 2007-10-10 12:18:18 -05:00
Gerald Carter
15b13dfe81 r21616: Delay initialization of idmap and nss_info backends until necessary
so they can honor the offline logon state.
2007-10-10 12:18:18 -05:00
Gerald Carter
5575845952 r21615: don't wait until the last second to try to renew a Krb5 ticket as it is took late 2007-10-10 12:18:17 -05:00
Gerald Carter
3644bd9996 r21614: The memset() called on aligned memory was causing crashes
on x86_64 Linux boxes.  Since it is not needed, just use malloc()
on Linux.
2007-10-10 12:18:17 -05:00
Gerald Carter
a9028612a3 r21613: perform variable subsitution on home directories and shells provided by the nss_info backend 2007-10-10 12:18:17 -05:00
Gerald Carter
7f0ba72e05 r21612: Make pam_winbind do the same username fixup on AIX as the WINBINDD
LAM module does to work around a system that does not support
>8 character usernames.  Without the change, pam_winbind tries
to authenticate _#uid in the domain.
2007-10-10 12:18:17 -05:00
Gerald Carter
4c53d300fa r21611: I'm not entirely sure about this patch but it is working.
su - DOM\user was unable to set the process crendentials
without listing the "id" and other attributes in the attrlist[].
More fixes to come, but I didn't want this to get lost.
2007-10-10 12:18:17 -05:00
Gerald Carter
c4621de39b r21610: put libraries preceeding the @SONAMEFLAG@ variable as on AIX this ends up commenting out the remainder of the line and we have missing libraries in the link 2007-10-10 12:18:17 -05:00
Jeremy Allison
df07a662e3 r21609: Fix memory leaks in error code paths (and one in winbindd_group.c).
Patch from Zack Kirsch <zack.kirsch@isilon.com>.
Jeremy.
2007-10-10 12:18:16 -05:00
Jeremy Allison
cbe725f1b0 r21608: Fix a couple of memleaks in error code paths before
Coverity finds them :-)
Jeremy.
2007-10-10 12:18:16 -05:00