summaryrefslogtreecommitdiffstats
path: root/source/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* removed comment line at end of fileLuke Leighton1998-11-021-1/+0
|
* Fixed bug (that I introduced when doing the "delete on close" workJeremy Allison1998-10-291-7/+9
| | | | | | | | that caused NetBench to fail as the wrong error code was being returned from a getatr call. Change was not to set the unix_ERR_class global when you are not returning an error. This is a big of Samba internal folklore that is *important*. Jeremy.
* Quick fixes to fix the broken tree. Needed for my morning compiles.Jeremy Allison1998-10-281-0/+1
| | | | | | Chris - feel free to fix these things differently if these fixes don't work for you. Jeremy.
* Fix from thwartedefforts@wonky.org (slightly modified) toJeremy Allison1998-10-281-1/+1
| | | | | fix username overwriting problem in security=share. Jeremy.
* debug string with no %s parameter. oopsLuke Leighton1998-10-271-1/+2
|
* Fixed a couple of issues with the SMB_QUERY_FILE_ALL_INFO query.Jeremy Allison1998-10-261-2/+5
| | | | | | Ensured offset was being reported correctly for 64 bit file access, ensured delete on close bit was being reported correctly. Jeremy.
* volker was concerned about unique inode numbers and smbsh. This set ofAndrew Tridgell1998-10-241-0/+1
| | | | | | changes uses the unique index number from a SMB_QUERY_FILE_ALL_INFO to try to provide inode numbers. If it is 0 then use the hash of the filename as before.
* Handle the case where multiple smbd have the file open, some of whomJeremy Allison1998-10-232-17/+76
| | | | | | don't have the ALLOW_DELETE_ON_CLOSE share flag enabled. Told you this was fiddly code :-). Jeremy.
* possible bug in change oem password code: replaced E_P16 and E_md4hashLuke Leighton1998-10-231-9/+1
| | | | | with a call to nt_lm_owf_gen. if this still doesn't get the NT hash generated correctly then there may instead be a bug in mod_smbpwd_entry().
* Make the new code conditional on lp_share_modes() just like the code in ↵Jeremy Allison1998-10-231-36/+39
| | | | | | open_file_shared(). Jeremy.
* Fixed debug reporting in the changed code.Jeremy Allison1998-10-231-1/+6
| | | | Jeremy.
* Fixed bug in previous commit where I was overwriting share_mode fromJeremy Allison1998-10-231-3/+4
| | | | | one fsp with that of another. Not good :-). Jeremy.
* Reasonably large change to give us *exactly* correct NT delete on close ↵Jeremy Allison1998-10-235-4/+109
| | | | | | | | | | | | | | semantics. This was trickier than it looks :-). Check out the new DELETE_ON_CLOSE flag in the share modes and the new code that iterates through all open files on the same device and inode in files.c and trans2.c Also changed the code that modifies share mode entries to take generic function pointers rather than doing a specific thing so this sort of change should be easier in the future. Jeremy.
* include/smb.h: Added #defines for lots of things - makes our code a *lot* ↵Jeremy Allison1998-10-236-67/+100
| | | | | | | | | | | | | easier to read. lib/util.c: Fixed Luke's set_first_token() function - should return void. smbd/close.c: Move delete_on_close into file_fd_struct structure. smbd/ipc.c: Changed local_machine back to fstring. smbd/nttrans.c: Use defines for mapping share modes. smbd/open.c: Move delete_on_close into file_fd_struct structure, added code for ALLOW_SHARE_DELETE. smbd/reply.c: Use defines for mapping share modes. smbd/trans2.c: Move delete_on_close into file_fd_struct structure. Jeremy.
* server/srv_samr.c smbd/ipc.c: Changed global_myworkgroup back to fstringJeremy Allison1998-10-221-1/+1
| | | | | | | | (as it is everywhere else). smbwrapper/smbsh.c: For IRIX n32 binaries, set _RLDN32_LIST not _RLD32_LIST. Exec users preferred shell is SHELL environment variable is set. tests/fcntl_lock.c: Added sys/types.h for systems that need this. Jeremy.
* extern fstring global_myworkgroup should be a pstringLuke Leighton1998-10-221-2/+2
|
* libsmb/smbdes.c: #ifdef'ed out code prior to removal.Jeremy Allison1998-10-223-34/+71
| | | | | | | | | | | | | | | | | | rpc_client/cli_pipe.c: Inlined code removed from smbdes.c rpc_server/srv_samr.c: Fixed unused variable warning. rpc_server/srv_util.c: Inlined code removed from smbdes.c Luke - the above changes are the first part of the changes you and I discussed as being neccessary at the CIFS conference. *PLEASE REVIEW THESE CHANGES* - make sure I haven't broken any of the authenticated DCE/RPC code. smbd/nttrans.c: Fixed to allow NT5.0beta2 to use Samba shares with NT SMB support. smbd/open.c: Fixed mkdir when called from nttrans calls. smbd/server.c: Set correct size for strcpy of global_myworkgroup. Jeremy.
* domain aliases added a bit better: does local aliases if you queryLuke Leighton1998-10-212-5/+5
| | | | | for sid S-1-5-20 and does (nothing at the moment) if you query for your own sid.
* Fixed mainly signed/unsigned issues found by SGI cc in -fullwarn mode.Jeremy Allison1998-10-214-17/+41
| | | | | | smbd/chgpasswd.c: Fixed (my) stupid bug where I was returning stack based variables. Doh ! smbd/trans2.c: Allows SETFILEINFO as well as QFILEINFO on directory handles. Jeremy.
* signed / unsigned issuesLuke Leighton1998-10-212-2/+2
|
* at the interop Isaac (at least I _think_ it was Isaac) said that if aAndrew Tridgell1998-10-211-1/+14
| | | | | | | | | | | | | | | MS client doesn't respond to a oplock break request then we might try resending the request. This morning Sues Win95 machine had this problem (thus forcing me to do something about it!). When starting winword her box refused to answer an oplock break request. I have added code to resend the oplock break request up to 3 times at 10 second intervals before killing the socket. of course, as soon as I did this her box started to behave again so I haven't been able to tell if this fix actually works, but it can't be worse than dropping the socket immediately.
* dce/rpc. bug-fix in ipc.c (introduced today :)Luke Leighton1998-10-201-1/+1
|
* some quite important bug-fixes i missed because i transferred the wrongLuke Leighton1998-10-201-19/+8
| | | | | | | | | | | | | | smb.tgz file from my portable. particularly the call to mem_data followed by a realloc of that data in cli_pipe.c's rpc_read() function. smbd responses now use p->rdata_i which is a faked-up pointer into p->rdata's response data. rdata can be very long; rdata_i is limited to point to no more than max_tsize - 0x18 in length. this will make it an almost trivial task to add the encrypted rpc headers after rdata_i, and mem_buf_copy will cope admirably with rhdr chained to rdata_i chained to auth_verifier etc etc...
* smbd/nttrans.c smbd/trans2.c: First fixes for NT5.0beta2. That redirectorJeremy Allison1998-10-202-12/+76
| | | | | | has some *horrible* bugs ! smbwrapper/shared.c smbwrapper/smbsh.c smbwrapper/smbw.c: Fixed gcc warnings. Jeremy.
* - dce/rpc codeLuke Leighton1998-10-194-138/+234
| | | | | | | | | | | | | | | | | | | - removed debug info in struni2 and unistr2 (security risk) - rpc_pipe function was getting pointer to data then calling realloc *dur* - password check function, the start of "credential checking", user, wks, domain, pass as the credentials (not just user,pass which is incorrect in a domain context) - cli_write needs to return ssize_t not size_t, because total can be -1 if the write fails. - fixed signed / unsigned warnings (how come i don't get those any more when i compile with gcc???) - nt password change added in smbd. yes, jeremy, i verified that the SMBtrans2 version still works.
* Fixed sys_lseek and seek_file calls so all returnsJeremy Allison1998-10-184-19/+70
| | | | | are *checked* :-). Jeremy.
* check for lp_nt_pipe_support() in open callsAndrew Tridgell1998-10-182-2/+2
|
* Small tidyups for gcc in 'preen' mode....Jeremy Allison1998-10-172-0/+2
| | | | Jeremy.
* !pass -> pass != NULL is wrong: !pass -> pass == NULL is correct. oops.Luke Leighton1998-10-161-2/+2
|
* made pass_check_smb() available for dce/rpc use.Luke Leighton1998-10-163-28/+37
|
* cli_nt_session_open() encrypt arg removedLuke Leighton1998-10-161-1/+1
|
* setup_groups() - code clarification. no functional change.Luke Leighton1998-10-161-13/+19
|
* only do the MAC extensions if we are a NTFS filesystemAndrew Tridgell1998-10-161-6/+10
|
* Re-added code to tell the user how many open files theyJeremy Allison1998-10-161-5/+15
| | | | | have. Needed for server diagnosis purposes... Jeremy.
* trans2.h: Added Thursby MAC extension.Jeremy Allison1998-10-161-0/+7
| | | | | | smbd/trans2.c: Added Thursby MAX extension. libsmb/clientgen.c: Fixed smbtorture lock code. Jeremy.
* trust passwordLuke Leighton1998-10-161-3/+3
|
* rpcclient interactive login (with trust account changing if you are root)Luke Leighton1998-10-152-24/+3
| | | | cli_session_setup handles null sessions correctly
* bug-fixing against:Luke Leighton1998-10-151-1/+40
| | | | | | | | | | | | | | | | | | AS/U: it returns dce/rpc "first" and "last" bits _clear_ in a bind/ack response, when they should be set in a (small) packet. they also, in the bind/ack do not set a secondary address string at all, so we can't check against that... Win95: client-side dce/rpc code is a bit odd. it does a "WaitNamedPipeState" and has slightly different pipe-naming (\PIPE\LANMAN is joined by \PIPE\SRVSVC, \PIPE\WINREG etc whereas nt just has \PIPE\LANMAN and \PIPE\). Win95-USRMGR.EXE: added LsaOpenPolicy (renamed existing to LsaOpenPolicy2). added SamrConnect (renamed existing to SamrConnect2).
* config: Fix crypt prototype on RedHat Linux.Jeremy Allison1998-10-154-8/+24
| | | | | | | | include/includes.h: Fix crypt prototype on RedHat Linux. smbd/fileio.c: Fix mmap bug found by WinCE client. smbd/ipc.c: Fix WinCE wierdness with pipes being opened as \server\pipe\lanman smbd/password.c: Fix encrypted null passwords. Jeremy.
* more warnings...Luke Leighton1998-10-141-1/+1
|
* unused variable in pipe_smb_write_XLuke Leighton1998-10-141-1/+0
|
* dce/rpcLuke Leighton1998-10-141-4/+4
|
* use level 0 for DEBUG() of malformed password entry in smbpasswdAndrew Tridgell1998-10-131-4/+4
|
* basic client-side ntcreateX function (hard-wired values except filename)Luke Leighton1998-10-091-1/+1
|
* dce/rpcLuke Leighton1998-10-091-1/+1
|
* Added code to convert empty file names to "." so we avoidRichard Sharpe1998-10-091-0/+12
| | | | | | searching the cache, but only if we are not on a print share. This code is known to work on at least one site!
* Add a DEBUG to unix_convertRichard Sharpe1998-10-091-0/+2
|
* really fixed the warning this time :)Andrew Tridgell1998-10-081-1/+1
|
* fixed a warningAndrew Tridgell1998-10-081-1/+1
|
* - don't generate 0 params in tortureAndrew Tridgell1998-10-081-10/+16
| | | | - handle 0 params in ipc.c