1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

18636 Commits

Author SHA1 Message Date
Volker Lendecke
242927bd5c r21706: get_delete_on_close_flag() is the perfect candidate for tdb_parse_record()
(This used to be commit b73685d207)
2007-10-10 12:18:24 -05:00
Herb Lewis
0ebac7d7cc r21705: add modify rights defines
(This used to be commit 06c777529f)
2007-10-10 12:18:24 -05:00
Herb Lewis
80a216970d r21704: open sockets immediately in process_loop
(This used to be commit 51b96ba79c)
2007-10-10 12:18:23 -05:00
Herb Lewis
a4bffe0559 r21703: fix build when O_SYNC not defined
(This used to be commit 73b7a25ba8)
2007-10-10 12:18:23 -05:00
Jeremy Allison
10ab7a3a78 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.
(This used to be commit b8327b21dd)
2007-10-10 12:18:23 -05:00
Jeremy Allison
9b0f22d065 r21667: posix_unlink should break existing oplocks.
Jeremy.
(This used to be commit 8a90d5dd4f)
2007-10-10 12:18:23 -05:00
Jeremy Allison
b22ffe77e5 r21666: (only in 3.0, not 3.0.25). Fix bad parameter to call.
Jeremy.
(This used to be commit 9b16c57960)
2007-10-10 12:18:23 -05:00
Jeremy Allison
1f56aabf90 r21665: Fix bug #4428 reported by Jason Mader <jason@ncac.gwu.edu>.
Jeremy.
(This used to be commit fe00771df5)
2007-10-10 12:18:23 -05:00
Jeremy Allison
6deb189abb r21664: Fix #4425 - patch from Jason Mader <jason@ncac.gwu.edu>.
Jeremy
(This used to be commit 24a4d4d7ad)
2007-10-10 12:18:22 -05:00
Jeremy Allison
9f8e8e1aac 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.
(This used to be commit 32b040fe05)
2007-10-10 12:18:22 -05:00
Herb Lewis
36f20fca7b r21657: get rid of warning - not everyone understands %F
(This used to be commit 5a7330cfe4)
2007-10-10 12:18:22 -05:00
Jelmer Vernooij
091df71eea r21655: Regenerate after pidl bugfix.
(This used to be commit 7fdbf66976)
2007-10-10 12:18:22 -05:00
Jelmer Vernooij
a47ae92464 r21652: Fix samba3-specific initialization
(This used to be commit 7ce0c5d0cc)
2007-10-10 12:18:22 -05:00
Jelmer Vernooij
09ff57907a 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
(This used to be commit 0db258c600)
2007-10-10 12:18:21 -05:00
James Peach
1702791ba2 r21647: Allow unit on for size parameters.
(This used to be commit 4d5654a8ab)
2007-10-10 12:18:21 -05:00
Jeremy Allison
cba9ad6633 r21646: Patch from SATOH Fumiyasu <fumiyas@osstech.co.jp>
- add minsize parameter. Bug #4409.
Jeremy.
(This used to be commit b9408304db)
2007-10-10 12:18:21 -05:00
Jeremy Allison
059e4cfa03 r21645: Make posix_unlink work - on open files too !
Jeremy.
(This used to be commit 98f4b64574)
2007-10-10 12:18:21 -05:00
Jeremy Allison
ea3e890130 r21644: Allow mkdir on platforms with no O_DIRECTORY.
Add proper debug to all possible setfilepathinfo
functions.
Jeremy.
(This used to be commit 3c47a5ef25)
2007-10-10 12:18:21 -05:00
Jeremy Allison
6b8e85866e r21643: Put the correct bits on the wire for posix_mkdir.
We're not yet deleting open files on unlink. Investigating...
Jeremy.
(This used to be commit 334b34f131)
2007-10-10 12:18:20 -05:00
Volker Lendecke
3bd2394b20 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
(This used to be commit 2186e276a0)
2007-10-10 12:18:20 -05:00
Jeremy Allison
402affb0d7 r21641: Add test code for POSIX pathname calls into smbclient.
Jeremy.
(This used to be commit 9858e5b725)
2007-10-10 12:18:20 -05:00
Jeremy Allison
cc294350f9 r21640: Fix the build for broken platoforms without O_DIRECT or O_DIRECTORY.
Jeremy.
(This used to be commit 6a0f6fde0a)
2007-10-10 12:18:19 -05:00
Jeremy Allison
c75f0c6126 r21639: Add in implementations of POSIX open/mkdir/unlink/rmdir.
Jeremy.
(This used to be commit 6457d66b9a)
2007-10-10 12:18:19 -05:00
Jeremy Allison
81cce13321 r21638: Change POSIX_UNLINK to allow clients to differentiate
between unlink/rmdir calls.
Jeremy.
(This used to be commit f0c8488d38)
2007-10-10 12:18:19 -05:00
Jim McDonough
efd510fa18 r21637: Get "password never expires" account policy working.
0x8000000000000000LL is "infinity" to NT and should
not be converted numerically to time_t.
(This used to be commit f3a8048a62)
2007-10-10 12:18:19 -05:00
Gerald Carter
cfecca614f 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.
(This used to be commit 518052be38)
2007-10-10 12:18:19 -05:00
Gerald Carter
742a853875 r21635: Don't free talloc()'d memory. I wish people would check the callers
when changing how memory is allocated.
(This used to be commit 78bf4042dd)
2007-10-10 12:18:19 -05:00
Gerald Carter
a4db672e26 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.
(This used to be commit 256f36dce3)
2007-10-10 12:18:18 -05:00
Gerald Carter
5f24668961 r21632: Remove ununsed variable
(This used to be commit 82dc19f844)
2007-10-10 12:18:18 -05:00
Gerald Carter
377bb74101 r21626: Fix memory leak on error path noticed by
SATOH Fumiyasu <fumiya@samba.gr.jp>
(This used to be commit d68b2910c8)
2007-10-10 12:18:18 -05:00
Simo Sorce
1983759266 r21623: Fix copy/paste error
(This used to be commit 0de7472428)
2007-10-10 12:18:18 -05:00
Gerald Carter
9b568ecdc4 r21622: Fix bad merge caught by James.
(This used to be commit 05886edb35)
2007-10-10 12:18:18 -05:00
Gerald Carter
b1f4259cd5 r21616: Delay initialization of idmap and nss_info backends until necessary
so they can honor the offline logon state.
(This used to be commit 15b13dfe81)
2007-10-10 12:18:18 -05:00
Gerald Carter
6fb6adba27 r21615: don't wait until the last second to try to renew a Krb5 ticket as it is took late
(This used to be commit 5575845952)
2007-10-10 12:18:17 -05:00
Gerald Carter
5e88cb83b1 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.
(This used to be commit 3644bd9996)
2007-10-10 12:18:17 -05:00
Gerald Carter
aaa3a9a329 r21613: perform variable subsitution on home directories and shells provided by the nss_info backend
(This used to be commit a9028612a3)
2007-10-10 12:18:17 -05:00
Gerald Carter
2c51e492f9 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.
(This used to be commit 7f0ba72e05)
2007-10-10 12:18:17 -05:00
Gerald Carter
85f769dbb4 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.
(This used to be commit 4c53d300fa)
2007-10-10 12:18:17 -05:00
Gerald Carter
1e7ddfccd9 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
(This used to be commit c4621de39b)
2007-10-10 12:18:17 -05:00
Jeremy Allison
8e00e9d7a6 r21609: Fix memory leaks in error code paths (and one in winbindd_group.c).
Patch from Zack Kirsch <zack.kirsch@isilon.com>.
Jeremy.
(This used to be commit df07a662e3)
2007-10-10 12:18:16 -05:00
Jeremy Allison
fae01b4899 r21608: Fix a couple of memleaks in error code paths before
Coverity finds them :-)
Jeremy.
(This used to be commit cbe725f1b0)
2007-10-10 12:18:16 -05:00
Simo Sorce
f153274889 r21607: While committing I saw I had not newline terminated this string ...
(This used to be commit 51d296f251)
2007-10-10 12:18:16 -05:00
Simo Sorce
e9e6af5951 r21606: Implement escaping function for ldap RDN values
Fix escaping of DN components and filters around the code
Add some notes to commandline help messages about how to pass DNs

revert jra's "concistency" commit to nsswitch/winbindd_ads.c, as it was
incorrect.
The 2 functions use DNs in different ways.

- lookup_usergroups_member() uses the DN in a search filter,
and must use the filter escaping function to escape it
Escaping filters that include escaped DNs ("\," becomes "\5c,") is the
correct way to do it (tested against W2k3).

- lookup_usergroups_memberof() instead uses the DN ultimately as a base dn.
Both functions do NOT need any DN escaping function as DNs can't be reliably
escaped when in a string form, intead each single RDN value must be escaped
separately.

DNs coming from other ldap calls (like ads_get_dn()), do not need escaping as
they come already escaped on the wire and passed as is by the ldap libraries

DN filtering has been tested.
For example now it is possible to do something like:
'net ads add user joe#5' as now the '#' character is correctly escaped when
building the DN, previously such a call failed with Invalid DN Syntax.

Simo.
(This used to be commit 5b4838f62a)
2007-10-10 12:18:16 -05:00
Jeremy Allison
578a817e47 r21605: Fix small typo noticed by Raúl Sánchez Siles <rss@barracuda.es>.
Jeremy.
(This used to be commit 5ed61d5af6)
2007-10-10 12:18:16 -05:00
Jeremy Allison
fd5cf34e26 r21604: I got this wrong also in libsmb :-(.
Jeremy.
(This used to be commit 4a04555e23)
2007-10-10 12:18:15 -05:00
Jeremy Allison
62a6f8940d r21603: Horrible backwards compatibility hack as an old server bug
allowed a CIFS client bug to remain unnoticed :-(.
I suck.
Jeremy.
(This used to be commit 29761173ee)
2007-10-10 12:18:15 -05:00
Volker Lendecke
84d2ceb1df r21581: Add an error code I just got
(This used to be commit 5ef0286b56)
2007-10-10 12:18:15 -05:00
Jeremy Allison
1aa730ef96 r21577: Remove unneeded #define (part of earlier patch that was
removed).
Jeremy.
(This used to be commit 645b0438dd)
2007-10-10 12:18:15 -05:00
Jeremy Allison
3e12cf85ac r21576: Patch based on work from Todd Stecher <todd.stecher@isilon.com>
to allow client to fragment large SPNEGO blobs (large krb5
tickets). Tested against W2K3R2. Should fix bug #4400.
Jeremy.
(This used to be commit b81c5c6adc)
2007-10-10 12:18:14 -05:00
Jeremy Allison
8c5846acf2 r21569: Fix bug reported by Martin Zielinski <mz@seh.de>
where return value was incorrectly initialized.
Jeremy.
(This used to be commit 8d45f1f3b5)
2007-10-10 12:18:14 -05:00