summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2003-01-13Updates to our NTLMSSP code:Andrew Bartlett1-194/+88
This tries to extract our server-side code out of sessetup.c, and into a more general lib. I hope this is only a temporay resting place - I indend to refactor it again into an auth-subsystem independent lib, using callbacks. Move some of our our NTLMSSP #defines into a new file, and add two that I found in the COMsource docs - we seem to have a double-up, but I've verified from traces that the NTLMSSP_TARGET_TYPE_{DOMAIN,SERVER} is real. This code also copes with ASCII clients - not that we will ever see any here, but I hope to use this for HTTP, were we can get them. Win2k authenticates fine under forced ASCII, btw. Tested with Win2k, NTLMv2 and Samba's smbclient. Andrew Bartlett (This used to be commit b6641badcbb2fb3bfec9d00a6466318203ea33e1)
2003-01-13Ensure we do not pass uninitialised data to the kernel. (Picked up byAndrew Bartlett2-0/+4
valgrind). Andrew Bartlett (This used to be commit f8d9880c5f5321f4dba6b42896419412284c3e7b)
2003-01-12Oops, this is the change to use an fstring for the incoming service buffer -Andrew Bartlett1-3/+3
the commit to reply.c just matches a pstrcpy for the pstring. (harmless, fixes it for the automated test). Andrew Bartlett (This used to be commit ef9c7586ac152304cacaf2c16115adc2bccefc22)
2003-01-12Make the 'service' in make_connection() use an fstrcpy(), and an fstring,Andrew Bartlett1-1/+1
becouse that is what it's input (reply_tcon_and_x) uses, and becouse we really don't want supprises for service names. Also remove a legacy #define, in favor of the lp_ equiv. Andrew Bartlett (This used to be commit 7854a439ac601d3c23703b115cd5a8d4257c7717)
2003-01-11Remove an unused paramter for our old LM-only password change code, and fix aAndrew Bartlett2-4/+3
(harmless) fstring/pstring mixup. Andrew Bartlett (This used to be commit 5ff5f540ccc2ee2c9859213b84598baa400f57a5)
2003-01-11No point having this for both parts of the 'if' statement.Andrew Bartlett1-4/+2
Andrew Bartlett (This used to be commit 3b2e5f68cd4e1ff07dbd0032f521b3ba6e53746a)
2003-01-11[merge] make sure to updatre print queue cache during timeout_processing() ↵Gerald Carter1-0/+4
to send notify events; CR 1491 (This used to be commit 142c5029c701e7a82074e301278846c02843f46f)
2003-01-09Remove read_with_timeout() and replaced its only caller (the passwd chatTim Potter1-3/+7
stuff) with a call to read_socket_with_timeout() which does the same thing. Passwd chat still works but I couldn't figure out the right arguments to passwd chat to get it to work right but data was definitely getting through. (This used to be commit 88eb9e9486bca55a38e40ae53aed35ee338a68d7)
2003-01-09Moved smbd process counting functions from smbd/server.c to smbd/process.cTim Potter2-30/+26
so that bin/vfstest can link. (This used to be commit 812ce0368c69922612ac001560a111016d0e568e)
2003-01-08Ensure we return disk full by default on short writes.Jeremy Allison1-6/+6
Jeremy. (This used to be commit 6a2b7fd82c868d517301f8566cd86e9e4b31546f)
2003-01-08Ensure we don't get an invalid number for total smbd's if the tdb updateJeremy Allison2-6/+18
fails. Jeremy. (This used to be commit 99e69fd74d5a2e7396e7f24924d72374d5cb32c2)
2003-01-08Fix erroneous free of SAM_ACCOUNT (make clearer when allocatedJeremy Allison1-15/+8
memory is being returned). Jeremy (This used to be commit b0d547b7396beff861bb116051ed06b7b9749005)
2003-01-08Fix open problem with changing attributes on an existing file - basedJeremy Allison1-7/+45
on work by <steve@griffin.sio2.nl>. Jeremy. (This used to be commit 465d86d95fbdeda423d1f4b06cee46c119a31447)
2003-01-07Remove unused variable.Tim Potter2-2/+0
(This used to be commit 4bc82624f6f2d3745a1528c56b9dcf04613a6a1d)
2003-01-06Fix memory leaks in pdb_ code.Jeremy Allison1-1/+13
Jeremy. (This used to be commit ddf741c7178e33914dea6031f1a32800af402630)
2003-01-06Fix a segfault when we don't correctly load a VFS module (don't keep it inAndrew Bartlett2-3/+9
the loaded list on error). Also change some of the error returns, becouse NT_STATUS_UNSUCCESSFUL gives a most useless error message on the client. As for which error, my logic is that a share without a valid VFS module is not a valid share, and therefore should return the same error as a non-existant share. Andrew Bartlett (This used to be commit 41178afdbd2b3de94cf272ce32764a1947e73ea8)
2003-01-05Even when I can't manage to do QA, at least the build farm will catch some ofAndrew Bartlett1-1/+1
the silly stuff. (fixes password changes from RAP based clients like smbpasswd) Andrew Bartlett (This used to be commit 066e4f9a4bdd432b3b2b7830c0ac1421f6086df4)
2003-01-03Fix problem with "hide unreadable". stat file opens are baaack :-).Jeremy Allison3-584/+542
Jeremy. (This used to be commit 6e0cfec16594ade6e6c499f521781348fee25040)
2003-01-03patch to include support for daemontools from Michael HandlerGerald Carter1-2/+16
(This used to be commit 4c48c475a28450ad4fd8dcc8263e841c0c39a80e)
2003-01-02pstring/fstring missmatches found by Andrew Bartlett.Jeremy Allison1-5/+5
Jeremy. (This used to be commit 585a73b810389129f380cfab1b1b52700b350055)
2003-01-02Becouse these functions return a size_t, they can't return negitive numbers.Andrew Bartlett1-1/+1
So a < 0 check is pointless, instead check against -1, which will be cast to unsigned. Andrew Bartlett (This used to be commit c7e5797a95804d5779cdfc93795adcdf2fe82a59)
2003-01-02BIG patch...Andrew Bartlett14-53/+60
This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett (This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2003-01-01Move our password change code along a little - use NTSTATUS, and implmenetAndrew Bartlett2-47/+87
minimum password age and min password length for all password changes. Andrew Bartlett (This used to be commit 028f808c032becfa4618924cb301a4af2708fa96)
2002-12-31fix for bad check spotted by Ray Simard <ray@sylvan-glade.com>Simo Sorce1-1/+1
(This used to be commit 63a669475b0ea319da12a87ee4635b1d071ff29f)
2002-12-29Add msdfs proxy functionality to HEAD.Shirish Kalele1-0/+7
(This used to be commit 9df93b1ffc9ce98302540cc3d2cbd66787abc4fd)
2002-12-20Forward port the change to talloc_init() to make all talloc contextsJeremy Allison2-9/+26
named. Ensure we can query them. Jeremy. (This used to be commit 842e08e52a665ae678eea239759bb2de1a0d7b33)
2002-12-13Fix for old DOS client when veto files is set to /.*/Jeremy Allison1-1/+1
Jeremy. (This used to be commit 636ab292db8816663c507dd8dbf85078392af5f8)
2002-12-12Added "kernel change notify" boolean to allow easier valgrind testing.Jeremy Allison1-1/+2
Jeremy. (This used to be commit ac856fbb96e5ed21992972805b27cc8c3f9377df)
2002-12-11Fixed auth module code. Added VALGRIND defines to reduce spurious warnings.Jeremy Allison1-1/+0
Jeremy. (This used to be commit ff3a8d37289216a2cb808406044a7abef1e564d0)
2002-12-05The element in fsp->print_job should be a RAP jobid, not a uint32 RPCJeremy Allison3-8/+15
jobid. This was causing Win9x client "set name" calls to fail. Still need one cleanup fix to finish. Jeremy. (This used to be commit 15f0bad1fc72ff44cd195d34fd530c25a739f42d)
2002-12-04Remove FILE_MACRO as __FILE__ is ANSI C.Tim Potter1-3/+0
(This used to be commit 2a9d183cf6ae8333dc7d9d9445c17dce005c1d24)
2002-12-04Added Volker's directory fix - save the attributesJeremy Allison1-0/+3
from the first call. Jeremy. (This used to be commit 2fe7504a08b692ec791c853e7a260a06142b7595)
2002-12-04change_trust_account_password() must always use the PDC for rpcGerald Carter2-88/+80
password changes. jerry (This used to be commit 974822526f90aee9b43e75fc7fd5d48fe91add99)
2002-12-04Need brackets around macro args. Spotted by Patrick Welche ↵Jeremy Allison1-1/+1
<prlw1@newn.cam.ac.uk>. Jeremy. (This used to be commit 51c2cf3a9ccf0bf89520588530e04b965ae509f7)
2002-12-04Missed the removal of the incorrect ifdef.Jeremy Allison1-3/+1
Jeremy. (This used to be commit 9cfa245bba2a116b7364ea22feaf6f63b362f5d7)
2002-12-04Fix for 64 bit issues with oplocks and allocation size.Jeremy Allison4-47/+68
Jeremy. (This used to be commit 4a9c995e50b24e6ee6ec58c46da32100a8197724)
2002-12-03Reformat of reply.c before Volker's patch.Jeremy Allison1-1059/+1029
Jeremy. (This used to be commit d41858b9e6a21f6e01305c33d107d16f2b587d37)
2002-12-03Fixed nasty bug where file writes with start offsets in the rangeJeremy Allison3-23/+24
0x80000000 -> 0xFFFFFFFF would fail as they were being cast from IVAL (uint32) to SMB_OFF_T (off_t or off64_t, both *signed* types). The sign extension would cause the offset to be treated as negative. Thanks to Herb for helping me track this one down (IRIX is good for large file tests :-). Jeremy. PS. That horrid EXEXIST thing has broken configure..... (This used to be commit fc7d3faed798e7496f2991ec7d795c3b1a3758f5)
2002-12-01As per Jeremy's request back this out, so as to re-gain the implicit lengthAndrew Bartlett1-7/+5
check. Andrew Bartlett (This used to be commit 323088259f19f59008160d56fbcb9df6a6cd0d98)
2002-12-01No need for fstring manipulation here (Tcon&X), just use string pointers.Andrew Bartlett1-5/+7
Andrew Bartlett (This used to be commit b072bb9c8469799734507bcdffd4be29211e2610)
2002-11-26Having waited for *way* too long, this is mimir's namecache and trusted domainAndrew Bartlett1-0/+1
cache code. This uses gencache, mimir's new caching code that stores at text-based cache of various data. Mimir has done a *lot* of work on this patch, and it is finally time to get it in CVS. Andrew Bartlett (This used to be commit 47f3bfe9564e7f3aff60cefaefd599e0abb30a31)
2002-11-19a better for for using %U in smb.confAndrew Tridgell2-3/+11
this follows the method used for remote_machine and also fixes the problem of anonymous connections clobbering the string (This used to be commit 9ead4fc3c3f8b83f03c762a4dab77a64aabccbf9)
2002-11-19Very curious. It turns out attribute matching on truncate only mattersJeremy Allison1-2/+2
when opening truncate with current SYSTEM|HIDDEN -> NONE. It's fine to truncate on open with current NONE -> SYSTEM | HIDDEN. Jeremy. (This used to be commit 801b87e0f7c92553dc52b44d669a1795e2b9429f)
2002-11-18the change in the way %U is handled to use current_user has brokenAndrew Tridgell1-0/+3
some basic usages like 'include = smb.conf.%U' This changes fixes things again, by checking for reload after we setup current_user in tconx. (This used to be commit d664e6b4d20d545b31910666d9cea7384fd40a73)
2002-11-15Add const to PACKS()Andrew Bartlett1-2/+2
(This used to be commit 0e87408eb0e2786589e23cf4435a0d3223cf55cc)
2002-11-13small patch to makesure we fallback to <xfs/xqm.h> if <linux/xqm.h> doesn't ↵Jelmer Vernooij1-0/+5
exist (e.g. in SuSE 8.1) (by metze) (This used to be commit 5f16343e0d7c8120a7a5786097b8920a5b7d047b)
2002-11-13Load modules in lp_modules() after fork()Jelmer Vernooij1-0/+4
(This used to be commit 77afa4f1679c22cde88ecc5bc7ed37951c822221)
2002-11-12Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison12-66/+44
dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy. (This used to be commit 82b8f749a36b42e22186297482aad2abb04fab8a)
2002-11-08Compleatly remove support for logfile truncation. All logs are opened forAndrew Bartlett1-3/+0
append writes. (blessed by jra) Andrew Bartlett (This used to be commit 81633064dd196c40541ecece8def51745f514646)
2002-11-07Make append_log work againJelmer Vernooij1-0/+3
(This used to be commit 2fd496b49f76e3b593fb60fb2523a044a3814125)