summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2003-03-30update copyright notice since it we are now almost 4 months into 2003Gerald Carter1-1/+1
(This used to be commit 0751d2f117b4274dd19388d856de75d9fc739865)
2003-03-30This changes our handling of invalid service types that theVolker Lendecke1-7/+12
client requested on tconx. We now return the same error code like NT4SP6 and W2kSP3 return. TCONDEV is a little test for this. Volker (This used to be commit 6f94ab8ed50ad171f25e9538417c5074feba164d)
2003-03-28merged real time signal fixes from headAndrew Tridgell2-2/+8
(This used to be commit 03a5e62300f3cfb96d14570b73a758e6fa64c449)
2003-03-27cleanup the IPC/LPT:/A: mess I startedGerald Carter1-16/+19
(This used to be commit e6034a03d543d8672303f2b24982cfc03b124391)
2003-03-27pdb_ldap may require ROOT privilages to access the group mapping. (yes, it's ↵Andrew Bartlett1-0/+2
ugly :-) Andrew Bartlett (This used to be commit 12579a62945d0d475b53c4ab49761a01be9e8394)
2003-03-26Fix DOS del command with widelinks = False.Jeremy Allison1-1/+2
Jeremy. (This used to be commit ef1782121bc4ebcdd2731fd6863209352f815dbe)
2003-03-25win9x was suffered a case of the blues during a domain logon.Gerald Carter1-1/+10
For some reason, explicitly setting the service type during the tcon&X fixes this. (This used to be commit 4dd81caeff96d2b7f08b4846a524f917a85407a4)
2003-03-22(merge from HEAD)Andrew Bartlett3-5/+57
Small clenaup patches: - safe_string.h - don't assume that __FUNCTION__ is available - process.c - use new workaround from safe_string.h for the same - util.c - Show how many bytes we smb_panic()ed trying to smb_xmalloc() - gencache.c - Keep valgrind quiet by always null terminating. - clistr.c - Add copyright - srvstr.h - move srvstr_push into a .c file again, as a real function. - srvstr.c - revive, with 'safe' checked srvstr_push - loadparm.c - set a default for the display charset. - connection.c - use safe_strcpy() Andrew Bartlett (This used to be commit c91e76bddbe1244ddc8d12b092eba875834029ac)
2003-03-20Merge from HEADVolker Lendecke1-1/+1
(This used to be commit d59a7bea6b22a4c3e6cacd1a4c5ee95f42b13a26)
2003-03-20Patch from Samuel Thibault to convert messages from dos to unix charsetJelmer Vernooij1-9/+18
when sending(and vice versa when receiving). (This used to be commit 5310447ec6e0df1c000e3ee14572f5b7fee31f28)
2003-03-19Doin't pstrcpy into fstring.Jeremy Allison1-4/+4
Jeremy. (This used to be commit e619c50834a06b3026dc6b8603d1f88268bbdbc1)
2003-03-18Ensure dev in make_connection is const.Jeremy Allison1-4/+10
Jeremy. (This used to be commit 1c6ea31b8f48b93606f4c5b6a0472571dc8a471e)
2003-03-18Jeremy merged across my string parinoia fixes, but forgot to enable them! :-)Andrew Bartlett3-45/+4
This patch catches up on the rest of the work - as much string checking as is possible is done at compile time, and the rest at runtime. Lots of code converted to pstrcpy() etc, and other code reworked to correctly call sizeof(). Andrew Bartlett (This used to be commit c5b604e2ee67d74241ae2fa07ae904647d35a2be)
2003-03-18Merge signed/unsigned fix from HEAD.Andrew Bartlett1-1/+1
(This used to be commit 196628432130f826505187a27207a7b947e034cf)
2003-03-18Merge whitespace to match HEAD.Andrew Bartlett1-17/+17
(This used to be commit 454fb434195b8d46cbcbaee6a200070e5bcd7364)
2003-03-18Add an extra parameter to our 'set_remote_machine_name' andAndrew Bartlett2-4/+4
'set_local_machine_name' so that the client can't change it from under us. (.NET RC2 and WinXP install calls the machine 'machinename' during NTLMSSP on the domain join). Andrew Bartlett (This used to be commit 4c7163e7c2cc09bd95faa05156ee480957a7a4d8)
2003-03-17Merge from HEAD:Andrew Bartlett8-28/+35
- Make ReadDirName return a const char*. - Consequential changes from that - mark our fstring/pstring assumptions in function prototypes Andrew Bartlett (This used to be commit 10b53d7c6fd77f23433dd2ef12bb14b227147a48)
2003-03-17Merge from HEAD - sync up SessionSetup code to HEAD, including Luke Howard'sAndrew Bartlett1-27/+55
session key and auth verifier patches. Andrew Bartlett (This used to be commit 3f9616a68a855acbae3f405c27ee2358fbe7ba2c)
2003-03-17Merge new statcache.c from HEAD.Andrew Bartlett1-61/+126
(This used to be commit 3b9db928fcaec322698d046db3a8a042b9a1d30c)
2003-03-14fix WinXP & Win2K3 remote_arch and check pointer in ntlmssp code before ↵Gerald Carter1-19/+20
dereferencing (This used to be commit 7bc5fc729f67ae16e09ea67efa9e2b8e2ba41c8f)
2003-03-12Ensure we count the length correctly in mangle_map.Jeremy Allison1-6/+15
Jeremy. (This used to be commit 8e956bc1d63425b0e1ca9410bf82a0a5d3e36ac7)
2003-03-12adding some initiaial code to sert %a to Win2K3 (using Native LanMan string ↵Gerald Carter1-0/+2
from .NET RC2) (This used to be commit e074cab810f9299d0b27881cddf8a74f10fe233e)
2003-03-11We use unsigned now, so use %u.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 65c2a361a4a3461ccbed9b5c968f95281295faab)
2003-03-11Fix up zero termination. Spotted by Sebastian Krahmer <krahmer@suse.de>.Jeremy Allison1-1/+2
Jeremy. (This used to be commit 289e2e25b91da20ac02b90e5a9d6de3619ad308d)
2003-03-08Fix typo in earlier fix, caught by Ranjit @ HP.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 11077368ec30313c2e7ee1d23f9f348910aa36bf)
2003-03-07Use ERROR_NT, not ERROR_DOS as Andrew Bartlett pointed out.Jeremy Allison3-3/+3
Jeremy. (This used to be commit 723e9ee31cc1f5eb4b7aefefd58f7f13d0abda05)
2003-03-07Missed parentheses around complex logic.Jeremy Allison1-1/+2
Jeremy. (This used to be commit 7f8d3a49b2cebab4b94db3cda54b3923442378c8)
2003-03-07Patch from Michael Steffens. In his own words :Jeremy Allison1-78/+199
------------------------------------------------------------------------- I think there are basically two problem: 1. Windows clients do not always send ACEs for SMB_ACL_USER_OBJ, SMB_ACL_GROUP_OBJ, and SMB_ACL_OTHER. The function ensure_canon_entry_valid() is prepared for that, but tries to "guess" values from group or other permissions, respectively, otherwise falling back to minimum r-- for the owner. Even if the owner had full permissions before setting ACL. This is the problem with W2k clients. 2. Function set_nt_acl() always chowns *before* attempting to set POSIX ACLs. This is ok in a take-ownership situation, but must fail if the file is to be given away. This is the problem with XP clients, trying to transfer ownership of the original file to the temp file. The problem with NT4 clients (no ACEs are transferred to the temp file, thus are lost after moving the temp file to the original name) is a client problem. It simply doesn't attempt to. I have played around with that using posic_acls.c from 3.0 merged into 2.2. As a result I can now present two patches, one for each branch. They basically modify: 1. Interpret missing SMB_ACL_USER_OBJ, SMB_ACL_GROUP_OBJ, or SMB_ACL_OTHER as "preserve current value" instead of attempting to build one ourself. The original code is still in, but only as fallback in case current values can't be retrieved. 2. Rearrange set_nt_acl() such that chown is only done before setting ACLs if there is either no change of owning user, or change of owning user is towards the current user. Otherwise chown is done after setting ACLs. It now seems to produce reasonable results. (Well, as far as it can. If NT4 doesn't even try to transfer ACEs, only deliberate use of named default ACEs and/or "force group" or the crystal ball can help :) ------------------------------------------------------------------------- Jeremy. (This used to be commit 1d3b8c528bebfa1971d1affe454a03453335786e)
2003-03-07Fix noticed by Corny.Bondad@hp.com. Ensure we free up memory on error exit.Jeremy Allison1-0/+3
Jeremy. (This used to be commit 05a8a61af83a6d85ddbb70749c8cd0abe9eb8180)
2003-03-07Found at Connectathon, .NET RC1 arranges trans/trans2/nttrans parametersJeremy Allison3-69/+227
differently to W2K, cope with this. Jeremy. (This used to be commit 5e2755508f08ecf561348d4edf0a4064732c5213)
2003-03-03Const warning fixes.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 30e8ae8e030b5dccaef9612dca24907be547acdf)
2003-02-27 don't forget the NULLGerald Carter1-3/+3
(This used to be commit 4aa611958ebedfafbb9bfc1070b7d632272e1aaf)
2003-02-27and the winner of "i should have just written it in assemblyGerald Carter1-3/+3
is..." don't use pstrcpy() when you are not dealing with pstrings. (This used to be commit e1b21381f3b5cf6f97c101642e9286df9987998e)
2003-02-27don't pass NULL pointers to strcmp()Gerald Carter1-2/+2
(This used to be commit 9b0a49a0bc177f9637f197b3ab4613f25db1b43d)
2003-02-27additional fix for CR 601Gerald Carter1-0/+15
* distinguish WinXP from Win2k * add a 1/3 of a second delay in OpenPrinter in order to trigger a LAN/WAN optimization in 2k clients. (This used to be commit c7712fa054d21b4884a78b7ea6c0fb8b3d637c6b)
2003-02-27Fix to allow blocking lock notification to be done rapidly (no waitJeremy Allison3-10/+82
for smb -> smb lock release). Adds new PENDING_LOCK type to lockdb (does not interfere with existing locks). Jeremy. (This used to be commit 766928bbba1e597c9c2b12458dd8d37e6080593e)
2003-02-25Progress on CR 601Gerald Carter1-3/+3
cache the printer_info_2 with the open printer handle. cache is invalidated on a mod_a_printer() call **on that smbd**. Yes, this means that the window for admins to step on each other from different clients just got larger, but since handles a generally short lived this is probably ok. (This used to be commit 31272d3b6bb9ec62fd666301c7adfa0c1720a99b)
2003-02-24Merge doxygen, signed/unsigned, const and other small fixes from HEAD to 3.0.Andrew Bartlett2-5/+5
Andrew Bartlett (This used to be commit 9ef0d40c3f8aef52ab321dc065264c42065bc876)
2003-02-24Merge of server-side authentication changes to 3.0:Andrew Bartlett5-68/+79
- user_ok() and user_in_group() now take a list of groups, instead of looking for the user in the members of all groups. - The 'server_info' returned from the authentication is now kept around - in future we won't copy the sesion key, username etc, we will just referece them directly. - rhosts upgraded to use the SAM if possible, otherwise fake up based on getpwnam(). - auth_util code to deal with groups upgraded to deal with non-winbind domain members again. Andrew Bartlett (This used to be commit 74b5436c75114170ce7c780c19226103d0df9060)
2003-02-21Added comments to make it clearer when we're assigning a pointer that itJeremy Allison1-0/+12
must not be freed afterwards. Jeremy. (This used to be commit 4015e39d3666dbe240808c9007a8b8faca012a3d)
2003-02-19Fix inspired by Stefan (metze) Metzmacher - cache the sidtype also.Jeremy Allison1-19/+27
Jeremy. (This used to be commit efc92697801f5e62a89eda33e1826094c096900f)
2003-02-19Fix from Corny.Bondad@hp.com for missing if (setting_acls) on defaultJeremy Allison1-3/+3
perms. Jeremy. (This used to be commit 793609cbc2f657b91a59aec4a3f403bf826c7156)
2003-02-12Added code based on Michael Steffens <michael.steffens@hp.com> uid/gidJeremy Allison1-1/+205
caching code. Reduces load on winbindd. Probably should be moved to use gencache at some future date. Jeremy. (This used to be commit f2674d1ac94fd5928754b8176cdd65eda50bf66e)
2003-02-12Correctly return access denied on share mode deny when we can't open theJeremy Allison1-3/+19
file. This is a regression that was damaged by other code. Jeremy. (This used to be commit 7844a53df72af8fd2f70d51b784352aeb1298ed2)
2003-02-12Ensure we are not forgetting our janitorial duties...Jeremy Allison1-0/+10
Jeremy. (This used to be commit 7812370cabd4a8809eed1eb4968d552bcb0df2f5)
2003-02-11Fix delete on close semantics to match W2K. I (think:-) I understand it now :-).Jeremy Allison2-45/+46
Thanks to Nir Livni <nirl@cyber-ark.com> for giving me the test case to track it down. Jeremy. (This used to be commit 41894489e82a474f4f8f66aa2c7a117ed05b33e1)
2003-02-10Cleanups: (merge from HEAD)Andrew Bartlett2-3/+3
- use safe_strcpy() instead of pstrcpy() for malloc()ed strings - CUPS: a failure in an attempt to automaticly add a printer is not level 0 stuff. - Fix up a possible Realloc() failure segfault Andrew Bartlett (This used to be commit c1cfc296c2efdb2b5972202146e80f0e3b6a3da4)
2003-02-07check pointer before dereferencing itGerald Carter1-1/+1
(This used to be commit 8712bd1f8eb5321278e7c57bfdc7bdddbdaf1424)
2003-02-07merge from headAndrew Tridgell1-7/+15
(This used to be commit fd3216dbcbaec7d64dd24fe2af6c4156935c47e9)
2003-02-05Check for too many processes *before* the fork.Jeremy Allison1-2/+36
Jeremy. (This used to be commit be54b1b831b0bd6c428558131ea600c46433c090)