summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2002-10-21add a 'mangle prefix' option to allow people to tune the number ofAndrew Tridgell1-16/+41
characters used in the prefix for 8.3 names in the hash2 algorithm. The longer the prefix the more readable the 8.3 names will be, but the weaker the hash. this was added because of someone complaining that the new hashing algorithm was unreadable but the old one was broken :) (This used to be commit 3ca3cc838e5b957c7244b21947daddc4ee4c3099)
2002-10-17Added new error codes. Fix up connection code to retry in the same wayJeremy Allison1-1/+1
that app-head does. Jeremy. (This used to be commit b521abd86b10573ca8f9116907c81e6deb55f049)
2002-10-15Change default of max_xmit to match W2K. Ensure NT negprot uses it.Jeremy Allison1-1/+1
Jeremy. (This used to be commit e5fbfbcc9dc995b23eb0b46c6f59b03cfe9c02b5)
2002-10-15fixed a crash bug on 64 bit systems. Thanks to Anton Blanchard forAndrew Tridgell1-4/+2
finding this. (This used to be commit 4ba8608020123a52432e5afaa914e290e4ce8cbf)
2002-10-12Nice *big* patch from metze.Andrew Bartlett2-3/+3
The actual design change is relitivly small however: It all goes back to jerry's 'BOOL store', added to many of the elements in a SAM_ACCOUNT. This ensured that smb.conf defaults did not get 'fixed' into ldap. This was a great win for admins, and this patch follows in the same way. This patch extends the concept - we don't store values back into LDAP unless they have been changed. So if we read a value, but don't update it, or we read a value, find it's not there and use a default, we will not update ldap with that value. This reduced clutter in our LDAP DB, and makes it easier to change defaults later on. Metze's particular problem was that when we 'write back' an unchanged value, we would clear any muliple values in that feild. Now he can still have his mulitivalued 'uid' feild, without Samba changing it for *every* other operation. This also applies to many other attributes, and helps to eliminate a nasty race condition. (Time between get and set) This patch is big, and needs more testing, but metze has tested usrmgr, and I've fixed some pdbedit bugs, and tested domain joins, so it isn't compleatly flawed ;-). The same system will be introduced into the SAM code shortly, but this fixes bugs that people were coming across in production uses of Samba 3.0/HEAD, hence it's inclusion here. Andrew Bartlett (This used to be commit 7f237bde212eb188df84a5d8adb598a93fba8155)
2002-10-11Turns out with Win9x, we could occasionally return from unix_convert() givenJeremy Allison1-0/+12
a mangled name without a valid stat struct if the file existed. This would then cause open_file_shared1() to erroneously think the file open was new, thus not check for oplock break, thus causing a spurious EAGAIN reply to the open on a file we already had kernel oplocked.... (phew - that was fun to track down :-). Jeremy. (This used to be commit e23210e4732163e7f005b320235c20c814b41972)
2002-10-08Fix based on Jim McDonough's code for ACL inheritance problem.Jeremy Allison1-9/+60
Jeremy. (This used to be commit a6b3acfc7b98066de6f4b0b6044772a4d56795cd)
2002-10-07Fix from Andreas Gruenbacher <agruen@suse.de> to prevent ACL set on read-onlyJeremy Allison1-0/+5
share. Jeremy. (This used to be commit 80d30dbfec03d1d1e82c9e177ff66aa44b4ea993)
2002-10-05Push Steve Langasek's fix ...Richard Sharpe1-1/+1
(This used to be commit 0325b938f5b3d1c592da666b43c7b20dcc7ba5eb)
2002-10-04merge of new client side support the Win2k LSARPC UUID in rpcbindGerald Carter1-1/+1
from APP_HEAD (This used to be commit 38c9e4299845fd77cc8629945ce2d259489f7437)
2002-10-03Added ASCII art to make this clearer.Jeremy Allison1-1/+73
Jeremy. (This used to be commit 96e9ff905426f4754685a140674934cf2f6cb11c)
2002-10-03Write cache bugfix from Rasmus Borup Hansen, system adm. Email: ↵Jeremy Allison1-0/+13
rbh@math.ku.dk Jeremy. (This used to be commit 971b82beb7b99a3ae692ca147cce9ce4b5bce39c)
2002-09-25Metze claims that without this his win2k server gets horribly confused lookingAndrew Bartlett1-2/+2
for all sorts of AD things in lp_realm(). We need to get some non-Win2k NTLMSSP and chase this up a bit, but this will do for now. (Hmm, this might affect NTLMv2 as well) Andrew Bartlett (This used to be commit 0e6babc306f60e88fc28705a8d4ad112bafe92cb)
2002-09-25Kill of Get_Pwnam_Modify and smb_getpwnam(). The latter assumes some thingsAndrew Bartlett1-2/+2
that just don't apply any more - now that we always keep username and domain seperate. Also, the policy it was trying to permit is now implemented by the auth code. Andrew Bartlett (This used to be commit 760c0740cad948665db4a1d462fbbd99332713ef)
2002-09-25Move to common user token debugging, and ensure we always print both theAndrew Bartlett1-11/+2
NT_TOKEN and the unix credentials - as we incresingly use the NT stuff we want to make it easy to check they don't get out of wack. Andrew Bartlett (This used to be commit a3882a19254811ace2f9545580c14ce3bd588095)
2002-09-25Merge of "profile acls" code.Jeremy Allison1-2/+28
Jeremy. (This used to be commit cfd1bf250b417f3ba3ad21ff681ab282311bb7eb)
2002-09-20"@" is valid in NetBIOS domain names.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 5c4857d8e00162fc43a0f2e3a335b441bad743bd)
2002-09-20change ADS negprot to match more closely the options used by w2k. ThisAndrew Tridgell1-5/+3
affects the principal used and the order of SPNEGO OIDs (This used to be commit e8ff1c0819e02a1fc7234ad0a07d5415936dfbd2)
2002-09-19Use sendfile in readbraw.Jeremy Allison1-11/+56
Jeremy. (This used to be commit a77966645a976d6ae08581c2e92465c48a8e961d)
2002-09-18Added "use sendfile" per share option.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 28466ff42c3328e49d46f7cddfc4bb2fe462d871)
2002-09-18We had a race condition when changing a machine acount password as weJeremy Allison1-0/+9
were no longer locking the secrets entry. I saw this on a live system. Jeremy. (This used to be commit 660dafcbb2d1029831212a32d995891626a0344c)
2002-09-17Actually use sendfile if selected.Jeremy Allison3-5/+7
Jeremy. (This used to be commit 5881f0a22633ed9fb73e6cd788d0751c4db6cd32)
2002-09-17disable stat cache when case sensitiveAndrew Tridgell1-1/+1
(This used to be commit 3401c3616b3dcb99053f89d88f8e351c986c9096)
2002-09-17Attempt to make broken Linux sendfile work.... Still in progress.Jeremy Allison1-1/+1
Jeremy. (This used to be commit f956a4d29d0d88cd92fac0f0c9f636fc152afe0a)
2002-09-14Added fix for broken Linux (no sendfile64). When offset + count > 2GBJeremy Allison1-0/+7
then return ENOSYS and let the upper layer handle it. Jeremy (This used to be commit 872dfd87cda585c33c3823b06580cb301567a9b9)
2002-09-12Fixed up FreeBSD sendfile code - only Solaris left then I can add theJeremy Allison1-1/+1
configure tests... Jeremy. (This used to be commit 9dad88e1d4d09f61da87dab2633c6e989a9dd77f)
2002-09-12First cut at portable sendfile code. Only used in readX at the momentJeremy Allison2-16/+99
and doesn't actually call sendfile. Needs to be vectored through the VFS and tested on all supported platforms (Solaris/HPUX/FreeBSD/Linux). Linux doesn't actually work (2.4.19 kernel) at the moment because it doesn't have a 64-bit clean sendfile. Jeremy. (This used to be commit fd772ca7b16cd86e0d50c7ed8d537c202976a6d2)
2002-09-11Formatting tidyups before I look at implementing the sendfile in READX.Jeremy Allison1-194/+185
Jeremy. (This used to be commit 640f061ab2c0fa772c0b181a5492aaf94b21fd3e)
2002-09-11Ensure we've failed a lock with a lock denied message before automaticallyJeremy Allison1-3/+3
pushing it onto the blocking queue. Jeremy. (This used to be commit 237e36124cedf0485deaff81f34688fa862c3317)
2002-09-11Fix missing braces around push lock call.Jeremy Allison1-2/+3
Jeremy. (This used to be commit c93b40f43d5f5027f26c9b6bb906011a9075db2d)
2002-09-10Added final Steve French patch for "required" attributes with oldJeremy Allison2-5/+24
dir listings. Added regression test in smbtorture (in HEAD) also. Jeremy. (This used to be commit 3c9d24d7c3bad2beb641880a97f0eda5cd3e4ec7)
2002-09-09Merged Steve French's fix for OS/2 EA return error being removed.Jeremy Allison1-1/+3
Jeremy. (This used to be commit af2168c0344d49041b1fe78cd5219ac50308deb3)
2002-09-09Patch from Steve French to fix difference in responses toJeremy Allison1-1/+5
smbclient //server/share ls / on Samba and Windows 2000. Jeremy. (This used to be commit b3fe55838d23001f634f6a75f08330718353d3ad)
2002-09-06This is the 'easy' parts of the trusted domains patch n+3 patch fromAndrew Bartlett1-13/+11
Rafal Szczesniak <mimir@diament.ists.pwr.wroc.pl> It includes a conversion of make_user_info*() to NTSTATUS and some minor changes to other files. It also picks up on a nasty segfault that can occour in some security=domain cases. Andrew Bartlett (This used to be commit d1e1fc3e4bf72717b3593685f0ea5750d676952a)
2002-09-06patch from metze: add a 'vfs' debug classAndrew Bartlett2-0/+8
(This used to be commit 601b56e04fddd9ddfb9be5b0a625d6d279df7f4c)
2002-09-06Revert accidental commit - I'll need to do a fair bit more testing before IAndrew Bartlett1-3/+0
commit changes to NTLMSSP flags. (This used to be commit d200770796d871b3994a06fab45624068fdc5682)
2002-09-06Patch from "Stefan (metze) Metzmacher" <metze@metzemix.de>Andrew Bartlett1-0/+3
to extend the ADS_STATUS system to include NTSTATUS, and to provide a better general infrustructure for his sam_ads work. I've also added some extra failure mode DEBUG()s to parts of the code. NOTE: The ADS_ERR_OK() macro is rather sensitive to braketing issues - without the final set of brakets, the test is essentially inverted - causing some intersting 'error = success' messages... Andrew Bartlett (This used to be commit 5b9a7ab901bc311f3ad08462a8a68d133c34a8b4)
2002-09-06Oops...Andrew Bartlett1-1/+1
(This used to be commit 9a6f932da1c85a331a8427f055b5fa798dbda89b)
2002-09-06One less user of Get_Pwnam_modify()...Andrew Bartlett1-2/+4
Andrew Bartlett (This used to be commit 06b8a6fef466e006724bc49165fe936cf8fcfbfa)
2002-09-05We shouldn't add printing flag here.Jeremy Allison1-1/+1
Jeremy. (This used to be commit f00102ba77d752bdf714fa83ac7fdc679e8d7f17)
2002-09-05Send any queued up print notify messages in exit_server() so theyTim Potter1-0/+2
don't get lost if the client exits before timeout_processing() has a chance to run. (This used to be commit d7dde74aae64e9e142b80b7e3ba1bd69cec149b0)
2002-09-04Merge of (apparently working :-) new printing notify code.Jeremy Allison2-16/+65
Jeremy. (This used to be commit 8595c6ce4d74539089b600b3b0ff858a04b793ff)
2002-09-04Add bcast_msg_flags to connection struct. Allows sender to filter whenJeremy Allison4-9/+10
sending broadcast messages. Also initial cut-down of printing notify messages (not yet finished). Jeremy. (This used to be commit aca333719695b278843c59e1c6eb07d6655fd59c)
2002-09-03Ensure we open UNIX fifo's non-blocking like we used to do.Jeremy Allison1-0/+11
Jeremy. (This used to be commit 53f411df10f1e152d8d596cd24a2f66af9eb6e51)
2002-08-31Convert M_DEBUG(0 to M_DEBUG(10 for non-error cases ...Richard Sharpe1-8/+8
(This used to be commit d5c10e7dc76216db793319f9beb99dd12441e76b)
2002-08-31Add a bit of 'const' and move a lot of our 'repeditive' DEBUG() statements toAndrew Bartlett1-2/+0
'DEBUGADD', so we don't repeat headers. (Makes them much easier to read). (Based on patch by kai) Andrew Bartlett (This used to be commit 9deada345c5f89f338530c4de62835cc1eeb3d0e)
2002-08-30Fix bug with stat mode open being done on read-only open withJeremy Allison1-8/+10
truncate. Jeremy. (This used to be commit 18b9cbd857177a911ef95c9322bdf0709161cd84)
2002-08-30Correctly fail opens with mismatching SYSTEM or HIDDEN attributes if weJeremy Allison1-0/+36
are mapping system or hidden. Jeremy. (This used to be commit bd1e3df9ffa0717f26696a222e5ec6a0198b3352)
2002-08-28Return correct FILE_SUPERSEDED response - IFSTEST strikes again...Jeremy Allison1-2/+8
Jeremy. (This used to be commit df3e467eb7cce059782870bfec222293577c4f69)
2002-08-28fix file_is_special test, was wrong.Simo Sorce1-2/+10
(This used to be commit 850d6573aedea6499b2f2fe9d1426083aebd9fd1)