1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-19 10:03:58 +03:00

2584 Commits

Author SHA1 Message Date
Jeremy Allison
d728056203 r5002: Ensure we can't remove a level II oplock without having the
shared memory area locked. This need to be in 3.0.11. Pointed
out by Nadav Danieli <nadavd@exanet.com>.
Jeremy.
(This used to be commit 47ed16aefbdcb6257101c6b78c93eeb7cf048185)
2007-10-10 10:55:11 -05:00
Günther Deschner
b4afdc08d5 r4925: Migrate Account Policies to passdb (esp. replicating ldapsam).
Does automated migration from account_policy.tdb v1 and v2 and offers a
pdbedit-Migration interface. Jerry, please feel free to revert that if
you have other plans.

Guenther
(This used to be commit 75af83dfcd8ef365b4b1180453060ae5176389f5)
2007-10-10 10:55:08 -05:00
Günther Deschner
1ed62fde09 r4847: Hand over a acb_mask to pdb_setsampwent in load_sampwd_entries().
This allows the ldap-backend to search much more effeciently. Machines
will be searched in the ldap_machine_suffix and users in the
ldap_users_suffix. (Note that we already use the ldap_group_suffix in
ldapsam_setsamgrent for quite some time).

Using the specific ldap-bases becomes notably important in large
domains: On my testmachine "net rpc trustdom list" has to search through
40k accounts just to list 3 interdomain-trust-accounts, similiar effects
show up the non-user query_dispinfo-calls, etc.

Also renamed all_machines to only_machines in load_sampwd_entries()
since that reflects better what is really meant.

Guenther
(This used to be commit 6394257cc721ca739bda0e320375f04506913533)
2007-10-10 10:53:59 -05:00
Jeremy Allison
d33c5aa71f r4830: Fix for problem noticed by Guy Harris <gharris@apple.com>, return
correct DOS/NT error code on transact named pipe on closed pipe
handle.
Jeremy.
(This used to be commit 599c281464fa96725c3ee6dd3c5ee03ea81314ea)
2007-10-10 10:53:57 -05:00
Gerald Carter
c3ba8b9a53 r4736: small set of merges from rtunk to minimize the diffs
(This used to be commit 4b351f2fcc365a7b7f8c22b5139c299aa54c9458)
2007-10-10 10:53:52 -05:00
Alexander Bokovoy
94b88f8f26 r4704: Fix encoding while receiving of a message which was actually sent using STR_ASCII. Patch from Grigory Batalov <bga@altlinux.org>
(This used to be commit dddd5726462c13374788713ad5ddcbdf9ee7b439)
2007-10-10 10:53:51 -05:00
Gerald Carter
d097ea4905 r4539: patch from Rob -- adding real printcap name cache function to speed up printcap reloads
(This used to be commit 1cad5250932b963c2eb9b775221b13db386d601b)
2007-10-10 10:53:46 -05:00
Andrew Bartlett
5d08f59463 r4337: Produce a slightly different error message is lanman authentication is
disabled, rather than simply unavailable.

Andrew Bartlett
(This used to be commit 1c70583a19c9f741a41d08c0b994fccb66eeb0bf)
2007-10-10 10:53:45 -05:00
Jeremy Allison
3312191867 r4330: Fix for bug found by Rob Foehl <rwf@loonybin.net>. Remember to
add in the bcc length for readX on named pipes.
Jeremy.
(This used to be commit 1168395e6a543c51f684280b00fb8c9b8bbc6ec0)
2007-10-10 10:53:44 -05:00
Jeremy Allison
ad94eabdc6 r4301: One more *alloc -> SMB_MALLOC (not compiled by default).
Jeremy.
(This used to be commit 235a0c1698db48583a6860a3a9fca9f261544365)
2007-10-10 10:53:43 -05:00
Jeremy Allison
52d377b75f r4295: Don't include header len in data write debug.
Jeremy.
(This used to be commit 473babfecac87a7e1068246bddc171a464be59e5)
2007-10-10 10:53:42 -05:00
Jeremy Allison
50f3d8f249 r4293: Fix inspired by debug trace from Rob Foehl <rwf@loonybin.net> - catch sendfile
errors correctly and return the correct values we want the caller to return (-1
meaning none in correct cases).
Jeremy.
(This used to be commit 139c1c3488237d710ceda394c028b8dc9007bff1)
2007-10-10 10:53:42 -05:00
Jeremy Allison
9e3453459c r4212: Ensure we only look at the bottom bit of large_readx.
Set the 14 word version of write if size > 0xffff as
well as 64-bit offset.
Jeremy.
(This used to be commit 94779ccb39560bf5eecab77d70f1fa04bfcf1456)
2007-10-10 10:53:37 -05:00
Jeremy Allison
32f9ee7c20 r4190: When changing length calculations, get them right......
Jeremy.
(This used to be commit 63cfa904ad186bb9d793584d319bd4a7107cc8b9)
2007-10-10 10:53:37 -05:00
Jeremy Allison
5b713a206b r4186: Fix client & server to allow 127k READX calls.
Jeremy.
(This used to be commit 831cb21a874601e4536c2cf76c5351e1d0defcb5)
2007-10-10 10:53:36 -05:00
Jeremy Allison
9345663328 r4143: Make strict locking an enum. Auto means use oplock optimization.
Jeremy.
(This used to be commit 0dd4adeae2042d0ea64398a78b3f48eb0150c133)
2007-10-10 10:53:36 -05:00
Jeremy Allison
695188cc26 r4108: As check_self is *always* False in every invokation, remove the
logic for it. We still pass Samba4 RAW-LOCK test.
Jeremy.
(This used to be commit 596f23051363f8cc8896119b3eca0663a61a38c3)
2007-10-10 10:53:34 -05:00
Jeremy Allison
acf9d61421 r4088: Get medieval on our ass about malloc.... :-). Take control of all our allocation
functions so we can funnel through some well known functions. Should help greatly with
malloc checking.
HEAD patch to follow.
Jeremy.
(This used to be commit 620f2e608f70ba92f032720c031283d295c5c06a)
2007-10-10 10:53:32 -05:00
Gerald Carter
3bd3be97dc r4083: consolidate printer searches to use find_service rather than for loops
(This used to be commit 12440744ba36445186042c8c254785766cce5385)
2007-10-10 10:53:31 -05:00
Gerald Carter
57c468bbf1 r4043: BUG 2091: don't remove statically defined printers in remove_stale_printers()
(This used to be commit c24a3c49ce20797c0f9172e503e34770d00842ec)
2007-10-10 10:53:31 -05:00
Gerald Carter
5f67f01258 r4019: better error logging in register_message_flags() from Rob
(This used to be commit 5fc0f838e7ec8b29d7987caafe9ffbb8724a3176)
2007-10-10 10:53:28 -05:00
Gerald Carter
2fffc40b1d r4018: * move claim_connection from the netbios session request
reply code to the negprot reply code to cope with
  client connections on port 445.  Fixes the spurious
  "register_message_flags: tdb fetch failed" errors.

* don't run the backgroup LPQ daemon when we are running
  in interactive mode.
(This used to be commit 88747a7da351261185222e78e9c8d470ff53a246)
2007-10-10 10:53:27 -05:00
Jeremy Allison
01533404b1 r4016: Fix for bug found by Steve French client code (cifsfs) on
POSIX ACL set. You need to *get* a permset_t pointer from the entry before
any of the permset code will accept it as a valid value
Jeremy.
(This used to be commit 7e78059948612fa9f5d179a1e3f5f59e7ad5e456)
2007-10-10 10:53:27 -05:00
Jeremy Allison
46f546571b r4007: Fix bug #2088 - ensure inherit permissions is only applied on a new file,
not an existing one.
Jeremy.
(This used to be commit fbbdb72cf1adfe567112556626f26b031747f440)
2007-10-10 10:53:27 -05:00
Andrew Tridgell
c3a798cb7a r3954: bring Samba3 into line with the Samba4 password change code
(This used to be commit 04a6573f894800b9d939d9b4be48790437352804)
2007-10-10 10:53:26 -05:00
Jeremy Allison
f3cb4f31a2 r3951: Fix for bugid #2081 reported by John Janosik <jpjanosi@us.ibm.com> - ensure
SE_DESC_DACL_PROTECTED is set if "map acl inherit = no".
Jeremy.
(This used to be commit 934c41b474c8959310389378bfa7d3332bd5ec79)
2007-10-10 10:53:26 -05:00
Jeremy Allison
482f14871d r3946: Fix for bugid #2085 reported by Jason Mader <jason@ncac.gwu.edu>. Use consistent
enum type for Protocol extern.
Jeremy.
(This used to be commit 65dfae7ea45d4c9452b2a08efa09b01d870142f3)
2007-10-10 10:53:26 -05:00
Jeremy Allison
314ec086f3 r3944: Fix the problem we get on Linux where sendfile fails, but we've already sent the
header using send(). As our implementation of sendfile can't return EINTR (it
restarts in that case) use an errno of EINTR to signal the linux sendfile fail
after header case. When that happens send the rest of the data and then turn
off sendfile. Sendfile should be safe to enable on all systems now (even though
it may not help in all performance cases).
Jeremy.
(This used to be commit 78236382f7ffe08d7924907be49493779521837f)
2007-10-10 10:53:26 -05:00
Jeremy Allison
97bb32d61f r3936: Ensure LARGE_READX response must fit within reply buffer.
Jeremy.
(This used to be commit 5541001cf98aa9afb8f98ebeb91561348d3f5d74)
2007-10-10 10:53:25 -05:00
Jeremy Allison
44b5067e32 r3934: Correctly check for the top length bit in LARGE_READX.
Jeremy.
(This used to be commit f9effa2af90245c0fe090d730c86a2a60d8570dc)
2007-10-10 10:53:25 -05:00
Jeremy Allison
9038a56f82 r3895: Fix for bug #2045. May also fix other timestamp bugs with Excel
(Volker please test). Setting a last write timestamp from Windows
overrides any subsequent write timestamp changes and must be immediately
seen by and findfirst/findnexts. This is a racy solution, but should
work most of the time. This may also fix #1061, not sure.
Jeremy.
(This used to be commit 47bab92c0b062f3fefbb4fd4a09852e1c829a7f9)
2007-10-10 10:53:24 -05:00
Jeremy Allison
5a83636948 r3889: Only set mtime from pending_modtime if it's not already zero...
Jeremy.
(This used to be commit 984c3506351ba97f74813d678424858508c4197a)
2007-10-10 10:53:23 -05:00
Jeremy Allison
a68172ce7c r3877: Final (I hope :-) fix for #2050 from Lars Müller for select maxfd's.
Jeremy.
(This used to be commit 65fc39fc388244923d1e36076b5a4116aa434be5)
2007-10-10 10:53:23 -05:00
Jeremy Allison
2f167e909e r3859: Ensure if num_acls is set to 0xFFFF this field is ignored.
Use def_acl everywhere instead of dir_acl.
Jeremy.
(This used to be commit d28611c960f87830aa8449725951984aa155b089)
2007-10-10 10:53:21 -05:00
Volker Lendecke
ea9f97886b r3853: Fix an uninitialized variable warning. Jeremy, there are some of these in
charcnv.c.

Volker
(This used to be commit 650d52648dbf67f71d7619ffb8bf32d93a15ae9c)
2007-10-10 10:53:21 -05:00
Volker Lendecke
54024f5826 r3848: Fix for bug 2057. Only partially applied the patch, the second part seems not
necessary.

I'm using gcc 3.4.1, this does not detect the possibly uninitialized
variable. Does anybody know how to get 3.4.1 to warn me?

Volker
(This used to be commit 8b6f8f93a0f30be0184e6044a499c1ef8f7b247e)
2007-10-10 10:53:20 -05:00
Volker Lendecke
0c639097cf r3824: Fix crash in api_RNetShareEnum. ServicePtrs[] may contain invalid
entries. Happened after rev3708 removed non-existing cups printers.

Volker
(This used to be commit 60998d9d2f6272e383304da2b1d568a4b65f8787)
2007-10-10 10:53:19 -05:00
Jeremy Allison
00f6baa15a r3823: Fix bug reported by Tom Dickson <tdickson@inostor.com> with
follow symlinks = no reporting an incorrect error when it should
be access denied.
Jeremy.
(This used to be commit 5a103f4abff0503740822c8ed75d9102ee51e8f0)
2007-10-10 10:53:19 -05:00
Jeremy Allison
d12a7fdee2 r3817: Fix from Lars Müller <lmuelle@suse.de> for bug #2050, calculate
max_fd for select correctly.
Jeremy.
(This used to be commit eb0b1f757d814e01980cd9c5fc4918791ce1e54d)
2007-10-10 10:53:19 -05:00
Jeremy Allison
7eaba1f528 r3816: Added fn to remove an ACL from a file. Now need client code to test this.
How do the share mask/modes fit into this code... Need to think about this.
Jeremy.
(This used to be commit 1aa1c2f489f5b92c3696e7b9123061d91babc34e)
2007-10-10 10:53:19 -05:00
Jeremy Allison
672b22ae43 r3814: At least use a proper constant name (aRONLY :-) not a number.
That way we can at least remember why we did this :-).
Jeremy.
(This used to be commit d84f5f8cc10f89d5fbd6cfb694bccfbd1c3d8a3f)
2007-10-10 10:53:18 -05:00
Volker Lendecke
99dd85abe9 r3811: Believe it or not, but this patch seems to be necessary. If someone sets a
folder icon in the start menu and saves the profile on a samba server, after
logging in again this setting is gone. Why is this? The folder for which the
icon is set must have the read only flag set. If it is not set, the
desktop.ini file (the file containing the icon reference) inside that folder
is ignored.

lp_profile_acls is a hack for such a situation, so overload this parameter
with another profile-related hack.

Volker
(This used to be commit b8d888000eb7456c7620e9a783d6f1b3ba4c8985)
2007-10-10 10:53:18 -05:00
Jeremy Allison
6192b3121f r3794: Added set posix acl functionality into the UNIX extensions code.
One part missing - delete file acl (to be added asap). No client
code yet, also needs testing with valgrind.
Jeremy.
(This used to be commit 6101ec2247c182fde6ea3e7e1f64a92b353ec4e8)
2007-10-10 10:53:17 -05:00
Jeremy Allison
1b31f46f22 r3714: Getfacl now seems to work on files and directories. Next do setfacl
and port to Samba4.
Jeremy.
(This used to be commit 4d52bf7c8b3147dd4f0d3081fbf9a1f5ebd246a1)
2007-10-10 10:53:16 -05:00
Jeremy Allison
f995b164b9 r3713: Implementation of get posix acls in UNIX extensions. Passes valgrind.
Need to add printout functions in client and set posix acl in server.
SteveF - take a look at this for the cifsfs client !
Once this is working and tested the next step is to write this up for
the UNIX extensions spec. documents.
Jeremy.
(This used to be commit 1bd3f133442a472b4718b94a636f2fec89a2e0dc)
2007-10-10 10:53:16 -05:00
Gerald Carter
e51451d4ba r3708: BUG 1838: patch from Gavrie Philipson <gavrie@disksites.com> to remove stale printers when reloading after a sighup
(This used to be commit bcb9105c5488a97944d2dfee8681d662e9c9b818)
2007-10-10 10:53:15 -05:00
Volker Lendecke
f9e87b9ba6 r3705: Nobody has commented, so I'll take this as an ack...
abartlet, I'd like to ask you to take a severe look at this!

We have solved the problem to find the global groups a user is in twice: Once
in auth_util.c and another time for the corresponding samr call. The attached
patch unifies these and sends them through the passdb backend (new function
pdb_enum_group_memberships). Thus it gives pdb_ldap.c the chance to further
optimize the corresponding call if the samba and posix accounts are unified by
issuing a specialized ldap query.

The parameter to activate this ldapsam behaviour is

ldapsam:trusted = yes

Volker
(This used to be commit b94838aff1a009f8d8c2c3efd48756a5b8f3f989)
2007-10-10 10:53:15 -05:00
Jeremy Allison
ecd1b0fffd r3693: Correctly detect errno for no acl/ea support.
Jeremy
(This used to be commit 089a76f611187e2ba4c3363b657905d04576109e)
2007-10-10 10:53:14 -05:00
Gerald Carter
a4fab4d51a r3682: fix seg fault in lanman printing code caused by uninitialized variable
(This used to be commit c52e663c4a32b975796383834b2c04796daf8f29)
2007-10-10 10:53:13 -05:00
Jeremy Allison
4a69011a63 r3674: Stefan Esser <s.esser@e-matters.de> pointed out that the max data
value is only valid on the initial trans/trans2/nttrans request,
so if there are secondary requests we can't read it from them. Read
it from the initial request and pass as a parameter for those functions
that need it.
Jeremy.
(This used to be commit e007845e67e0604321fb36b216a98e4fca1c98e1)
2007-10-10 10:53:13 -05:00