summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2001-09-05Removed unneeded set of delete on close in fsp->share_mode.Jeremy Allison1-7/+0
Jeremy. (This used to be commit 7816f79075132350c910f75f9b757477a319bbae)
2001-09-05Fix I think for the fcntl spinning problem. Re-prioritize soJeremy Allison2-1/+21
that oplock break messages get priority over incoming client messages. Jeremy. (This used to be commit 1779f6a223dad87c3b8451d09b9808b46495a8b6)
2001-09-05when you update the share mode in the db you must also updateAndrew Tridgell1-0/+7
fsp->share_mode otherwise the check to see if the fsp share mode matches the one in the db will fail when you come to delete it, thus leaving us with a share mode on a file that isn't even open! (This used to be commit 2020738b889d8d508cf787e5c5d380af817b92f9)
2001-09-05fixed formatting to make the code vaguely readable. It's still a dogsAndrew Tridgell1-142/+143
breakfast, but at least you can follow the indents (This used to be commit 9955ea0aaa299c6c946b4e7b7e98017c39b60bc8)
2001-09-05merge profile data changes from 2.2Herb Lewis1-6/+36
(This used to be commit c105859304e93297fa29f346e9cbd1af0c95048b)
2001-09-05added filename to error_packet()Andrew Tridgell1-7/+8
(This used to be commit 2c424788dec2fd6e44c243ea115d66689dfae6c0)
2001-09-04Fixes to ensure invalid vuids cannot stop oplock breaks.Jeremy Allison1-5/+7
This may have bearing on the Solaris fcntl spin bug. Jeremy. (This used to be commit 0f676202529cbfead629d2c228b7d5abc2dff7d6)
2001-09-04Merge of transfer file code from 2.2, fix for readbraw.Jeremy Allison4-350/+286
Jeremy. (This used to be commit c05e79453655abb67fd47a2d3dba88b4c5377e35)
2001-09-04the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but ↵Andrew Tridgell12-158/+143
the client code still needs some work (This used to be commit dcd6e735f709a9231860ceb9682db40ff26c9a66)
2001-09-03tidied up some unused vars in JFs new fnsAndrew Tridgell1-12/+0
(This used to be commit e26502b1f840cd0fafd700c9756b610b38709ce2)
2001-09-01more NTSTATUS changesAndrew Tridgell1-17/+4
(This used to be commit 8a49b2f7df46b2c990a980758fe1f3871e8b578e)
2001-08-30Fix crash bug with indirecting through null pointer on recursive delete.Jeremy Allison1-134/+119
Jeremy. (This used to be commit a6f04d16613a06c1aafa89d7373d1e4b4a5fb45b)
2001-08-30if no ACL elements then use chmod - fixes ability to set read-only bitHerb Lewis1-2/+2
on files that do not have an ACL (This used to be commit 65ea13420c78cf0a8c01f14c08815e4b44ca4abc)
2001-08-30this was a stupid typo,Simo Sorce1-1/+1
thanks to Jochen Dolze (dolze@epcnet.de) for pointing out. (This used to be commit a554d5a99a03e6e8df7e946e5636f5ee80b21969)
2001-08-28Ouch ! I didn't think I would have to do that: add 2 new rap calls !Jean-François Micouleau1-0/+127
It's a quick and ugly hack as a proof of concept: the dell powervault 705 works with a samba PDC. I'll do a correct user enumeration later. J.F. (This used to be commit 9ec6a8735682c7dfe9f8573f063da7625d425d8a)
2001-08-28Added dummy handlers for SAM_SYNC and SAM_REPL messages.Tim Potter1-0/+30
(This used to be commit 08e05f1b3c2d5767e8f8f0343fc0ea90c786eac0)
2001-08-27converted another bunch of stuff to NTSTATUSAndrew Tridgell8-40/+40
(This used to be commit 1d36250e338ae0ff9fbbf86019809205dd97d05e)
2001-08-27started converting NTSTATUS to be a structure on systems with gcc in order ↵Andrew Tridgell5-35/+38
to make it type incompatible with BOOL so we catch errors sooner. This has already found a number of bugs (This used to be commit 1b778bc7d22efff3f90dc450eb12baa1241cf68f)
2001-08-27converted smbd to use NTSTATUS by defaultAndrew Tridgell13-1323/+995
major changes include: - added NSTATUS type - added automatic mapping between dos and nt error codes - changed all ERROR() calls to ERROR_DOS() and many to ERROR_NT() these calls auto-translate to the client error code system - got rid of the cached error code and the writebmpx code We eventually will need to also: - get rid of BOOL, so we don't lose error info - replace all ERROR_DOS() calls with ERROR_NT() calls but that is too much for one night (This used to be commit 83d9896c1ea8be796192b51a4678c2a3b87f7518)
2001-08-24get rid of compiler warningsHerb Lewis5-11/+11
(This used to be commit 0768991d04ea03e774ca8662c9cae5e1951b88e0)
2001-08-24fixed level2 find first for unisys clientsAndrew Tridgell1-0/+1
(This used to be commit cb8b21f71dbacc7ee658bef7011cd147fbe34101)
2001-08-24Fixed incorrect debug.Tim Potter1-4/+1
(This used to be commit cec051cf5fb93d9f45eca3f9cf462f78a7d7040d)
2001-08-24flush on a invalid fsp should give an errorAndrew Tridgell1-16/+16
(This used to be commit ef5f4866fbbfa6be07cdc3e612a8899967d48289)
2001-08-23Fix W2K profiles writing to a Samba PDC. Thanks to Microsoft for their help !Jeremy Allison1-15/+6
Jeremy. (This used to be commit faae7512e059456db2450f878c435fd402839146)
2001-08-23Fix to only send the status32 error for status32 clients, not to otherAndrew Bartlett1-3/+1
nt_smb clients. As spotted by Thursby. (This used to be commit 22de76a920671614144babac9f589419532d8671)
2001-08-23Fix up some unused variables and functions, fix up formattingAndrew Bartlett2-3/+0
(This used to be commit bfce4ba7b6db261d981a60a7e262f2f690355f5c)
2001-08-22A few changes:Andrew Bartlett3-38/+17
drop paramaters: status utmp hostname change session code to always record each vuid current on the server. The sessionid struct is no longer packed, as I couldn't get that to work ;-) change smbstatus to show this info and less of the connections.tdb info (its not actualy that accurate). I'll get swat doing some of this shortly. (This used to be commit b068ad300527c44673bbee0aede7849199c89de7)
2001-08-22The DELL powervault 705 is sending a tcon&x with the service name beingJean-François Micouleau1-5/+15
"share" instead of "\\server\share". Fix that. Still not able to get the user list but that's something else. Jeremy I don't think I broke anything ;-) J.F. (This used to be commit 59018c58e4158e9ccb51c42ca32e490f32ee0def)
2001-08-22force checking of log size after 200 smbd in a row or after 30 sec with noHerb Lewis1-2/+3
smbds. This should fix one case of logs not getting rotated properly. We may need to test this to make sure there is no big performance hit from the extra stat call. (This used to be commit 2501fe7c0436fc00f35271e2dce17fe541e97424)
2001-08-22Missed '\' at eol...Jeremy Allison1-1/+1
Jeremy. (This used to be commit 0dbd1be704209c1a66280148b40f7b7437d47242)
2001-08-22Tidyup fixes for fcntl spin problem.Jeremy Allison1-3/+13
Jeremy. (This used to be commit 27d3dd0e7cb777ef6b21d6966c07045c2940fd37)
2001-08-22Fixed the (incorrect) paranioa fix I put in for the fcntl lock spin.Jeremy Allison3-11/+50
Don't delete a share mode that failed to remove the oplock (doh!), just set the oplock entry to zero.... Jeremy. (This used to be commit fe4aa720181a43f7a636ca029680fab0c836b968)
2001-08-21Add a new option to disable our paranoid server check.Andrew Bartlett1-1/+1
Defaults to ON, ie checking (This used to be commit bd3010263be24425206587abfdb41164089e2157)
2001-08-21This is Jeremy pretending to be Volker, 'cos theVolker Lendecke2-0/+23
link from Seattle is having problems. I've added 3 things here to work on the fcntl spin problem. 1). Check *all* tdb return codes... :-). 2). If we're asking ourselves to break an oplock, and we can't find a fsp pointer that matches the entry, this is a *logic bug* and we should abort and panic so someone with gdb can pick up the pieces. 3). After we've broken an oplock, ensure that the entry itself has been removed, and if not remove it ourselves. This should not be neccessary in a correctly working environmen,t, but will provide an added layer of robustness in error situations. 4). I hate german keyboards :-) :-). Jeremy. (This used to be commit 1c94fa80646f9e31377fbb41332fe4780f550cab)
2001-08-20Add comment to clarify why we call this twice.Andrew Bartlett1-0/+2
(This used to be commit afece03d023b2905c27e147516b61487a7503028)
2001-08-20two fixes for NT clients -> share level Samba serverAndrew Tridgell2-2/+11
(This used to be commit a25911d58c752350b62b205cfb0d6fc5b1c90cef)
2001-08-20a bunch of fixes from the sflight to seattleAndrew Tridgell1-1/+0
in particular: - fixed NT status code for a bunch of ops - fixed handling of protocol levels in ms_fnmatch (This used to be commit 3eba9606f71f90bfd9820af26f8676277ed22390)
2001-08-17OK, so not freeing these was a mistake. I'll try to be less exuberent nextAndrew Bartlett1-0/+2
time :-) (This used to be commit 8c3cf2db95a0fcf48b21274cac93f13abb42d4bf)
2001-08-17Move the claim_connection stuff till a little later in the process.Andrew Bartlett1-16/+14
(You don't have to clean up somthing you haven't done yet...) (This used to be commit ba76564c2a06bf7feefdaf9ef06cbf77c776b6e6)
2001-08-17Move admin user check into a helper function.Andrew Bartlett1-18/+35
Formatting fixes. (This used to be commit 6fd8eb08c12d0446ab639becf8825d26bce8eb8a)
2001-08-17Move read only check into a helper funcion. Ensure conn->service is setAndrew Bartlett1-40/+50
before we use it to find a share's details. (This used to be commit 7dc716f174c38e73b8e6d07130a1bc39f4499ce3)
2001-08-17Restore a debug I think I dropped earlierAndrew Bartlett1-0/+2
(This used to be commit dc635bde2262b248f58d3ce52c2575dae8546571)
2001-08-17smbd/auth_server: Doco, we want to use cli_nt_error here soonAndrew Bartlett4-36/+46
smbd/password.c: We don't use globals here anymore smbd/reply.c: Tidyness, global_myworkgroup must die! smbd/service.c: Move some of the make_connection code into a helper function. (This used to be commit 15c87e404fcaff9e360a40b8b673938c6e611daf)
2001-08-17Style cleanup for the last vuid change.Andrew Bartlett2-6/+9
Style, doco and DEBUG() fixes for auth_smbpasswd.c (In particular for the account control call). Andrew Bartlett (This used to be commit 3d91c119420973d7dd1af416a1e26efa113dc626)
2001-08-17One less getpwnam() call...Andrew Bartlett2-11/+6
Andrew Bartlett (This used to be commit 204da7ba96b0c562bab5e5536728a0378077bdc7)
2001-08-12this is a big global fix for the ptr = Realloc(ptr, size) bug.Simo Sorce1-2/+8
many possible mem leaks, and segfaults fixed. someone should port this fix to 2.2 also. (This used to be commit fa8e55b8b465114ce209344965c1ca0333b84db9)
2001-08-12This patch does a number of things, mostly smaller than they look :-)Andrew Bartlett5-420/+153
In particuar, it moves the domain_client_validate stuff out of auth_domain.c to somwhere where they (I hope) they can be shared with winbind better. (This may need some work) The main purpose of this patch was however to improve some of the internal documentation and to correctly place become_root()/unbecome_root() calls within the code. Finally this patch moves some more of auth.c into other files, auth_unix.c in this case. Andrew Bartlett (This used to be commit ea1c547ac880def29f150de2172c95213509350e)
2001-08-10Use the new client error api.Tim Potter1-1/+1
(This used to be commit 688da3c41dd944f7f69083518d25e9edbc55406f)
2001-08-10More constant conversions.Tim Potter2-4/+4
(This used to be commit 00703d306f14a5977df75cb04ee34ae8628ed40e)
2001-08-10merge from 2.2Gerald Carter2-2/+2
(This used to be commit 6ab0e949d18b97ea7177175a4e6abb5ba076db98)