summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
* David Lee's utmp patch (finally). Thanks David !Jeremy Allison2000-10-283-90/+609
| | | | | Jeremy. (This used to be commit b809a2d0c81c54e917ccc0c99b3e70ea8d7ceab1)
* Sorry JF - no billable hours :-). I fixed the "stream of events" problemJeremy Allison2000-10-261-2/+0
| | | | | | | | | | with PCL drivers. The problem was we were updating the changeid on every SETPRINTERDATA/DELETEPRINTERDATA call. We should not do this, we should just update the 'setprinter' called count. We update the changeid on calls to SETPRINTER/ADDPRINTER/ADDPRINTEREX etc. Also fixed the correct returning of the create time on printers. Jeremy. (This used to be commit 521f09829fd329f87b3d19e8871e2b989c98a58e)
* Fix for vfs_fstat() crash with new stat code.Jeremy Allison2000-10-201-0/+3
| | | | | Jeremy. (This used to be commit 979aa01e011d433328af0ead7644f47d0cfadf13)
* Ok - this is a big patch - and it may break smbd a bit (althoughJeremy Allison2000-10-197-226/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | I hope not). If you encounter strange file-serving behavior after this patch then back it out. I analysed our stat() usage and realised we were doing approx. 3 stat calls per open, and 2 per getattr/setattr. This patch should fix all that. It causes the stat struct returned from unix_convert() (which now *must* be passed a valid SMB_STRUCT_STAT pointer) to be passed through into the open code. This should prevent the multiple stats that were being done so as not to violate layer encapsulation in the API's. Herb - if you could run a NetBench test with this code and do a padc/par syscall test and also run with the current 2.2.0 code and test the padc/par syscalls I'd appreciate it - you should find the number of stat calls reduced - not sure by how much. The patch depends on unix_convert() actually finding the file and returning a stat struct, or returning a zero'd out stat struct if the file didn't exist. I believe we can guarentee this to be the case - I just wasn't confident enough to make this an assertion before. Ok ok - I did write this whilst at the Miami conference..... sometimes you get a little free time at these things :-). Jeremy. (This used to be commit 66a5c05ec46b641224fbe01b30bd7e83571a2a1b)
* Renamed WPrintQueuePurge to WPrintQueueCtrl as this function can purge, pauseTim Potter2000-10-181-4/+4
| | | | | or resume a print queue. (This used to be commit 9998518a69c67c1540266549c69fca977a89acde)
* Fix to allow smbd to call winbindd if it is running for all group enumeration,Jeremy Allison2000-10-133-15/+237
| | | | | | | | | falling back to the UNIX calls on error. This should fix all problems with smbd enumerating all users in all groups in all trusted domains via winbindd. Also changed GETDC to query 1C name rather than 1b name as only the PDC registers 1b. Jeremy. (This used to be commit 5b0038a2afd8abbd6fd4a58f5477a40d1926d498)
* Ignore SIGUSR2. Terminate nmbd if we have no interfaces.Jeremy Allison2000-10-121-0/+5
| | | | | Jeremy. (This used to be commit 580e2e044cfd1d011d9f28f0f49ef60ca6ba8d32)
* allow "master" smbd to call message_init so it is not killed by messagesHerb Lewis2000-10-121-4/+4
| | | | | | | sent to it's PID Jeremy or Andrew please check this out for other possible side effects. (This used to be commit f365950e7dafa269ace647ae1cab6201f8ecf67d)
* use macros for incrementing profile countersHerb Lewis2000-10-122-6/+2
| | | | (This used to be commit cae5eeb16e81b6aa95c68223268513c32aed7056)
* changes to sync with 2.2. treeHerb Lewis2000-10-115-19/+134
| | | | | | | | | | | | | | | | | | .cvsignore remove config.h - not in this directory include/profile.h profile changes lib/messages.c added message to return debug level libsmb/clierror.c cast to get rid of compiler warning libsmb/smbencrypt.c cast to get rid of compiler warning profile/profile.c add flush profile stats changes for profile struct rpc_parse/parse_samr.c fix for compiler warning rpc_server/srv_samr.c cast to get rid of compiler warning smbd/ipc.c profile stats message.c profile stats smbd/negprot.c profile stats smbd/nttrans.c profile stats smbd/trans2.c profile stats utils/smbcontrol.c new flush stats command (This used to be commit bbb24daa25dca4e4b6b1f8942cd84ee3aa1bed8e)
* Don't initialise groups twice.Tim Potter2000-10-111-1/+0
| | | | (This used to be commit 15d7f16bdc2ff4f2ae82871eb9f318ba45cf4d1c)
* Remove duplicate group initialisation function.Tim Potter2000-10-111-22/+0
| | | | | Don't initialise groups twice. (This used to be commit 5375261152b28a65de18e817c75cab79c2f556b8)
* Remove lpq as root fix - do this in print_job_start insteadJeremy Allison2000-10-112-10/+0
| | | | | | as part of print queue length processing. Jeremy. (This used to be commit e85a0fadd8dcf608822819f00f15569713518806)
* Fixes to periodically scan printing.tdb in idle time and occasionallyJeremy Allison2000-10-102-0/+10
| | | | | | | | on exit. Needed to fix printing.tdb from groving to 300Mb+ if being driven by smbclient clients that never ask for status... (effective DOS attack :-). Jeremy. (This used to be commit 6581066b93a674fadf6f9b92441428d2cc8b4a02)
* a netlogon enum trust query doesn't have a function_code at end.Jean-François Micouleau2000-10-101-1/+1
| | | | | | | | | a sam_user_info_24 doesn't have a uint16 at end samr_create_user also creates the unix account now samr_set_userinfo changes the password. J.F. (This used to be commit 94f4024481fcd0cb6647af1bd4364033be020641)
* Fixed error return messages needed for NTTrans CreateDirectory.Jeremy Allison2000-10-061-0/+16
| | | | | | | This patch allows the standard W2k recursive mkdir to work against Samba. Jeremy. (This used to be commit 947102784360c65d51441457bb54aa28d2b4452d)
* Herb's warning fixes. Also the POSIX locking fix.Jeremy Allison2000-10-066-130/+169
| | | | | | We now use our own vfs layer to do get/set acl calls (hurrah!). Jeremy. (This used to be commit dfe77c7046cbd65ee52aea7439f21503c1eac41d)
* global_myname is actually a pstring.Tim Potter2000-10-061-1/+1
| | | | (This used to be commit e451fd346105d5d34354ff9141d445b5f1a82e0a)
* Inlined many of the vfs_XXX calls as macros for speed.Jeremy Allison2000-10-061-63/+0
| | | | | Jeremy. (This used to be commit 0811d080abd374f47c7c3c8a1ef007e443e5b79c)
* Restructuring of vfs layer to include a "this" pointer - can be an fsp orJeremy Allison2000-10-0615-257/+469
| | | | | | | | | | | | | | | | a conn struct depending on the call. We need this to have a clean NT ACL call interface. This will break any existing VFS libraries (that's why this is pre-release code). Andrew gets credit for this one :-) :-). In addition - added Herb's WITH_PROFILE changes - Herb - please examine the changes I've made to the smbd/reply.c code you added. The original code was very ugly and I have replaced it with a START_PROFILE(x)/END_PROFILE(x) pair using the preprocessor. Please check this compiles ok with the --with-profile switch. Jeremy. (This used to be commit b07611f8159b0b3f42e7e02611be9f4d56de96f5)
* Fix for null passwords being allowed bug.Jeremy Allison2000-10-051-4/+8
| | | | | Jeremy. (This used to be commit d4d55488397832df35b558564c263a307b0bb629)
* Vector get_nt_acl/set_nt_acl via vfs. POSIX ACL support should be addedJeremy Allison2000-10-054-27/+65
| | | | | | above this layer. Jeremy. (This used to be commit b90af886a951b7b049ed7a42e6d99c332e43897b)
* Herb's fixes for profiling & compiler warnings.Jeremy Allison2000-10-051-47/+69
| | | | | Jeremy. (This used to be commit 7914e9351abb5271ebb4990c3b1fe495d15a4eda)
* Added uid and gid to push_sec_ctx() debug.Tim Potter2000-10-051-2/+3
| | | | (This used to be commit 2817b6cc8af3edbaa63b5db67689ab94cb240d4f)
* Made re-init of stat cache explicit rather than being hidden.Jeremy Allison2000-10-041-1/+2
| | | | | Jeremy. (This used to be commit b0c40236bb4381fec0e812c20e5f8c09ebf005f9)
* Fixes for the fact that UNICODE sizes are no always 2*no of chars whenJeremy Allison2000-10-031-8/+9
| | | | | | in multibyte codepages. Fix from Hiroshi MIURA, Samba User Group Japan staff. Jeremy. (This used to be commit f2f373df67a3c6b0bd431c19e3494d45ef0a263c)
* utf-8 and EUC3 patch from Hiroshi Miura Samba User Group Japan staff.Jeremy Allison2000-10-034-6/+27
| | | | | | mkdir high bits patch from Robert Dahlem" <Robert.Dahlem@gmx.net>. jeremy. (This used to be commit b40191d27180ab1e59935086073c4d312552f717)
* Memleak fix for cache code.Jeremy Allison2000-10-022-5/+27
| | | | | Jeremy. (This used to be commit 1ebe54666b0fc6f224f17036063dfe0ef7ec9147)
* fixed a harmess mixup of bitops and a booleanAndrew Tridgell2000-09-291-1/+1
| | | | (This used to be commit 0e0f3dc577ceab540be6505a86697b14a2136b9f)
* Restructuring of the code to remove dos_ChDir/dos_GetWd and re-vector themJeremy Allison2000-09-279-48/+455
| | | | | | | | through the VFS. All file access/directory access code in smbd should now go via the vfs. Added vfs_chown/vfs_chmod calls. Still looking at vfs_get_nt_acl() vfs_set_nt_acl() call API design. Jeremy. (This used to be commit f96625ec124adb6e110dc54632e006b3620a962b)
* Optimization (noticed by bloody Andrew :-) to stop directory scan everJeremy Allison2000-09-211-4/+15
| | | | | | being done if any of the directory timestamps were changed. Jeremy. (This used to be commit 915152ed981e8e537d15fd4b80b3c3d10ee86bff)
* Fix to allow a timestamp of zero to cause an instantaneous changenotifyJeremy Allison2000-09-204-6/+30
| | | | | | | scan - then call this from renames. This allows instantaneous update for W2k renames. Jeremy. (This used to be commit 07dffc4ee931cbc61197e2da277df9c404a77469)
* With John Reilly help tracking it down - fixed a *nasty* bug whenJeremy Allison2000-09-121-1/+0
| | | | | | | | | | | | | | | | authorising logins. If a user connected to a share as guest, then the snum was getting flagged as "force guest", meaning that all subsequent connections to it, even under a different vuid, would be bounced to guest. This explains several very hard to reproduce access denied bugs, and as the NT client also has bugs in that it will sometimes erroneously use guest instead of the correct vuid on an IPC$ connection lead to a *very* hard problem to find. This fix should be propagated into all branches (TNG/Applience take note) and I'll also make a separate patch availalble on the samba-technical list. Jeremy. (This used to be commit 0264fdafe909cf9e995df3ae7b64bedbe0b4e8a1)
* we should not lowercase the username we receive inAndrew Tridgell2000-09-121-2/+0
| | | | | | | | reply_sesssetup_and_X(). The getpwnam() wrapper handles the case munging operations later. this fixes a problem with mixed case usernames. (This used to be commit 2ebfdd21b3123d7daefeeed4dae6e8bc3a7a7653)
* the first cut of the internal messaging system.Andrew Tridgell2000-09-112-14/+7
| | | | | | The motivation for this system is to replace the UDP message for oplocks, but this commit only does the "set debug level" message. (This used to be commit 2a34ee95f3929cff131db6c5a2b4820194c05b2d)
* Hopefully this should fix the primary group permission problem.Tim Potter2000-09-071-2/+0
| | | | (This used to be commit 2f33ec41ac1d3243340455b6c3a6cea22d267f14)
* Fix for the SID history problem when using a Win2k domain controllerJeremy Allison2000-09-061-7/+4
| | | | | | with security=domain. Also fixed to dynamically allocate the SIDs and GIDs. Jeremy. (This used to be commit 2b1f66eb82f05fe0b85ac5b4916e32847b8de675)
* Changes from APPLIANCE_HEAD (per Tim Potter):David O'Neill2000-09-011-12/+16
| | | | | | | | | | | | | | | | | | | | - make proto - addition of function to convert from errno values to NT status codes (source/lib/error.c) - purge queue done without full access permission will purge only the jobs owned by that user, rather than failing. - unlock job database tdb before sending job to printer - in print_job_start(), ensure that we don't pick a jobid with an existing temporary file that may be owned by another user, as it causes silent failures. - fixes for printer permission checking for NT5 clients (source/include/rpc_spoolss.h, source/printing/nt_printing.c, source/printing/printing.c, source/rpc_server/srv_spoolss_nt.c) - change from uint8 to 'enum SID_NAME_USE' (source/rpc_server/srv_lsa.c) - fixed memory leaks for win95 driver download process (source/smbd/lanman.c) - properly free prs_structs and dacl in testsuite/printing/psec.c (This used to be commit 74af3e2caec7197e5d1ca389e2f78054a4197502)
* make sure a couple of variables are initialisedAndrew Tridgell2000-08-311-2/+2
| | | | (This used to be commit 155c7c37398f5f9457ea249ded74f425b90ac9a0)
* fixed "admin users" option with new security codeAndrew Tridgell2000-08-311-0/+5
| | | | (This used to be commit b69c5de6bad9fad3aed1280e7d12fbfed276a16f)
* Added vfs_unlink call to ensure vfs is used on unlink from client.Jeremy Allison2000-08-302-1/+10
| | | | | Jeremy. (This used to be commit 38fc56c8434c427335cf264c4b27420c5ad47566)
* Implemented AbortPrinter() from Gerald's Win32 test code. Just purge allJeremy Allison2000-08-301-3/+3
| | | | | | | possible printjobs from that printer (I think this is correct). Added error code returns for print_queue_XXX() functions. Jeremy. (This used to be commit 6d081a9017f87f59b7189ba507e211db01c40af5)
* fixed previous bug spotted by Elrond in get_printerdrivernumber().Gerald Carter2000-08-291-16/+17
| | | | | | | | | | | Thought I had already committed this. jerry (This used to be commit 2ceb704c3d06a92b97ba67ac82c007a7ba084b75)
* This doesn't compile but is a placeholder for moving the UNIXJeremy Allison2000-08-291-0/+618
| | | | | | acl code over to POSIX acls. Jeremy. (This used to be commit a2829febe12513d26534c4977c2f41f480f4fa0e)
* smbd/password.c: Fixed typo in Tim's new code that caused insure overrun error.Jeremy Allison2000-08-282-3/+2
| | | | | | smbd/reply.c: Fixed lowercasing UNIX character set problem. Jeremy. (This used to be commit 2b6e3ed7a6447d40d9dd7e9b5c286b1aabe4730d)
* Merge bug - still getting used to dirdiff.Tim Potter2000-08-281-1/+0
| | | | (This used to be commit cb717b4a2bb55eb2ff008e59203ebfeac6c5ab9f)
* Oops - missed a file.Tim Potter2000-08-281-0/+42
| | | | (This used to be commit 5aed84b74981a4f4fcc4d466ef03178eff22ba85)
* Merge from appliance branch.Tim Potter2000-08-282-0/+11
| | | | (This used to be commit 567b0095b1b8393b3b1e32533aa2860ab3dbfa47)
* vfs write data fix. Fix for name matching in addtosmbpassJeremy Allison2000-08-251-2/+2
| | | | | Jeremy. (This used to be commit 85738b7ee1ea6d88999d6aedc51a2daf545cb8b8)
* Modified to use sid_to_uid and sid_to_gid. Now ready for POSIX ACLJeremy Allison2000-08-241-8/+9
| | | | | | code.... Jeremy. (This used to be commit 28586c1dee18d99e0e0999ab1a945a33ce33c371)