summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r81: Make EA's case independent - fix smbtorture to test for this.Jeremy Allison1-1/+24
Jeremy. (This used to be commit 0661357484a33329c75457527416667feaf57ef9)
2007-10-10r69: Global rename of 'nt_session_key' -> 'user_session_key'. The session ↵Andrew Bartlett1-2/+2
key could be anything, and may not be based on anything 'NT'. This is also what microsoft calls it. (This used to be commit 724e8d3f33719543146280062435c69a835c491e)
2007-10-10r59: revert session key problemAndrew Tridgell1-2/+2
(This used to be commit 40b5794ae0919c6c6f1b8a451871dcc95bbab5cc)
2007-10-10r50: Fix bug 1139 as per fix suggested by jdev@panix.com,Jeremy Allison1-3/+3
swap lookups for user and group - group will do an algorithmic lookup if it fails, user won't. Jeremy. (This used to be commit a205c56a75c93c82796fd68687e8c0db26459073)
2007-10-10r49: Support SMB signing on connections using only theAndrew Bartlett1-8/+4
LANMAN password. This also corrects the 'session key' for these connections. (This used to be commit 26d8791ddedb7964c219067480cf4a7d61877765)
2007-10-10r39: * importing .cvsignore filesGerald Carter1-3/+0
* updateing WHATSNEW with vl's change (This used to be commit a7e2730ec4389e0c249886a8bfe1ee14c5abac41)
2004-04-03Fix wildcard src with wildcard dest renames.Jeremy Allison1-1/+7
Jeremy. (This used to be commit 58b39942444e62c9d0f98c2ba6f434d74c244a2b)
2004-04-03Fix wildcard unlink.Jeremy Allison1-2/+3
Jeremy. (This used to be commit 6e9b4c57ccb385acb9feaf9f7412778474231a92)
2004-04-03Fix typo in check_path_syntax.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 018db85de4f380da9f8318ab72371185bb2ac5b4)
2004-04-02Fix reply_ctemp - make compatible with w2k3.Jeremy Allison1-4/+12
Jeremy. (This used to be commit ddb40a6b1cfed9022dadc627b38d3c3938e8e6b4)
2004-04-02Fix wildcard identical rename.Jeremy Allison1-0/+8
Jeremy. (This used to be commit 610ae1126e227f45a1affa1030ee833a341a687f)
2004-04-02check_path improvements found by samba4 raw-checkpath tests.Jeremy Allison1-4/+13
Jeremy. (This used to be commit 4081f7ce514635f3500d29a73a44bff2661b76b1)
2004-04-02Added per-share parameter "store dos attributes". When set, will storeJeremy Allison9-103/+213
dos attributes in an EA. Based on an original patch from tridge, but modified somewhat to cover all cases. Jeremy. (This used to be commit ed653cd468213e0be901bc654aa3748ce5837947)
2004-03-31Reformat in preparation for EA dosmode attributes.Jeremy Allison1-123/+125
Jeremy (This used to be commit de2f149e9e687fc8cba6870d921341a6a1fd9c13)
2004-03-31Added support for OS/2 EA's in smbd server. Test with smbtorture eatest.Jeremy Allison2-5/+328
New protocol option "ea support" to turn them on (off by default). Conrad at Apple may like this as it allows MacOS resource forks to be stored on a file. Passes valgrind. Documentation to follow. Jeremy. (This used to be commit 8cc10a6c0550c017a62e8a3790afd2172d173e00)
2004-03-29Committed test code by mistake... removing.Jeremy Allison1-10/+0
Jeremy. (This used to be commit 73433dc349698b1b1f128439ab40eea6cbfa1187)
2004-03-29Setting EA's to zero length deletes them.Jeremy Allison1-0/+10
Jeremy. (This used to be commit 01fb8717628d1daad19725a97f6ae2d729afcac2)
2004-03-27Merge from HEAD the SMB signing patch that I developed a couple of weeksAndrew Bartlett2-6/+7
ago. This patch re-adds support for 'optional' SMB signing. It also ensures that we are much more careful about when we enable signing, particularly with on-the-fly smb.conf reloads. The client code will now attempt to use smb signing by default, and disable it if the server doesn't correctly support it. Andrew Bartlett (This used to be commit e27b5cbe75d89ec839dafd52dd33101885a4c263)
2004-03-27As I raised (without objection) on the mailing list a while back, thisAndrew Bartlett1-5/+1
patch removes the 'unicode' smb.conf option. Clients are as always free not to negotiate unicode, but Samba will always accept unicode in smbd. Setting 'unicode = no' caused me more client BSODs than any other option I have seen, and I really want to protect some of our more silly users, who will, no matter what, select and change every option... Andrew Bartlett (This used to be commit 3f9177bd5df68809294335a36919994893ff8ead)
2004-03-26Fix bug #1211. Ensure accept socket is in non-blocking state in case of networkJeremy Allison1-1/+10
error after select() returns true. (See accept man page on Linux). Patch from rabies@meep.org (Richard Garnish). Jeremy. (This used to be commit 6ca158291cf1f533ef18b542c84f22e9780c0966)
2004-03-19Fix for #1064 - ensure truncate attribute checking is done correctly on ↵Jeremy Allison2-5/+28
"hidden" dot files. Jeremy. (This used to be commit a6045c904fbe7df111c520134581bfd4f1ca67a8)
2004-03-19BUG 417: fix %UuGg variables expansion in include lines setging the ↵Gerald Carter2-0/+13
current_user_info struct in register_vuid() -- shouldn't be any more broken than we were (This used to be commit a90c3bd281e7a62bb8482e42aa3b674eeeb5995a)
2004-03-17Remove excess logging when probing for the length of the next mb char.Jeremy Allison1-13/+17
Jeremy. (This used to be commit 6339c4690aef7692571dd4c65dd0a12d56a7ffab)
2004-03-17Change check_path_syntax() to use the new next_mb_char_size() functionJeremy Allison1-23/+13
to make it generic. Remove the mb-codepage "blacklist". Alexander, please check this fix as it reverts your blacklist changes, but I'm hoping it fixes the problem in a more generic way for all charsets. I'm not trying to trample on your (excellent!) work here, just make things more generic without special cases. Jeremy. (This used to be commit 5a9324525acc02e6bf14528679816b35929a564e)
2004-03-16Add function next_mb_char_size() that returns a size_t of the number ofJeremy Allison1-0/+1
bytes in the mb character at a pointer. Will be useful in fixing check_path_syntax() to not use a "blacklist". Also re-added my (C) to reply.c. I mean, really - I've been adding code to the file for over 10 years and I recognise many of the fuctions as mine ! :-). Jeremy. (This used to be commit d2b2a39fd2f2e06cc4aebf081876985f0b28b477)
2004-03-16BUG 979 -- fix quota display on AIX; patch from Heinrich.Mislik@univie.ac.at ↵Gerald Carter1-0/+4
(Heinrich Mislik) (This used to be commit 760b63496ccc908c76ea5d3ed474cbbca268ad61)
2004-03-16Fix check_path_syntax() for multibyte encodings which have no '\' as second ↵Alexander Bokovoy1-1/+3
byte. This is intermediate fix as discussed with Jeremy until we move check_path_syntax() to UCS2 internally where all ambiguity is resolved. Please add other encodings into charcnv.c with such property.' ' (This used to be commit 2c404f6ba988d68c6f44df9409c0de319553de10)
2004-03-16BUG 1165, 1126: Fix bug with secondary groups (security = ads) and winbind ↵Gerald Carter1-4/+8
use default domain = yes (This used to be commit f2eaa14b1eb7e89c945b2b06a48e17998c75d620)
2004-03-13Modified fix for bugid #784. Based on a patch from moriyama@miraclelinux.com ↵Jeremy Allison1-3/+7
(MORIYAMA Masayuki). Don't use nstrings to hold workgroup and netbios names. The problem with them is that MB netbios and workgroup names in unix charset (particularly utf8) may be up to 3x bigger than the name when represented in dos charset (ie. cp932). So go back to using fstrings for these but translate into nstrings (ie. 16 byte length values) for transport on the wire. Jeremy. (This used to be commit b4ea493599ab414f7828b83f40a5a8b43479ff64)
2004-03-13First part of patch from moriyama@miraclelinux.com (MORIYAMA Masayuki) toJeremy Allison1-1/+1
fix up netbios names with mb strings. Includes reformat of libsmb/nmblib.c so it's readable. Jeremy. (This used to be commit 966e49a48c352563cdd7f75fe2768f2d6612ec7e)
2004-03-12Fix from Robert.Dahlem@gmx.net (Robert Dahlem) for bugid #1048Jeremy Allison1-2/+2
when mangled names are turned off. Jeremy. (This used to be commit 29909ce26ac9a0d8e631b1ed884c525674ee5606)
2004-03-12Fix problems with very long filenames in both smbd and smbclient.Alexander Bokovoy1-10/+18
It appears that we pass filename through resolve_wildcards() as pstring and use fstring temporary buffer there. As result, a long filename in unix charset (UTF-8 by default) can easily expand over 255 bytes while Windows is able to send to us such names (e.g. Japanese name of ~190 mb chars) which we unable to process through this small fstring buffer. Tested with W2K and smbclient, Japanese and Cyrillics. (This used to be commit 83dac6571f99b854ac607d4313cc3f742c1fae2e)
2004-03-11Restore the contract on all convert_stringXX() interfaces. Add a ↵Jeremy Allison3-28/+8
"allow_bad_conv" boolean parameter that allows broken iconv conversions to work. Gets rid of the nasty errno checks in mangle_hash2 and check_path_syntax and allows correct return code checking. Jeremy. (This used to be commit 7b96765c23637613f079d37566d95d5edd511f05)
2004-03-11Fix processing of pathnames with embedded '\\' characters (0x5c) in CP932Jeremy Allison1-5/+23
character set. Because of the allowing of "broken conversions" for people who have broken iconv libraries we can't rely on the return from convert_string() to be valid - we must check errno instead. This is ripe for revisiting at some stage. I prefer adding a bool parameter to all convert_string_XX varients to specify if we will allow broken conversions or not. With "allow_broken_conversions" set to false we could then rely on the return from convert_string rather than checking errno. Jeremy. (This used to be commit 74722f28659ac369676e898fda48d3d9ab265045)
2004-03-09Fix dfs referrals - don't use check_path_syntax. Also use mb char calls inJeremy Allison1-6/+1
dfs code. Jeremy. (This used to be commit 42175b4518764e484d33d9fbfba3b78ba4102ead)
2004-03-09Yet another '\n' termination of debug message.Rafal Szczesniak1-1/+1
rafal (This used to be commit 3e57c2c6850655da77e25de4cb047cc27741ca9c)
2004-03-09fix build with gcc 2.96 and --with-developerGerald Carter1-1/+1
(This used to be commit 11fc4da07f232c38e04c6443e5d0f829e16b0a18)
2004-03-09Added strstr_m() function. Use in all places where we might run into mbJeremy Allison2-2/+2
(should fix the mb service name problem, can't remember the bugid). Jeremy. (This used to be commit 94a272b9a881ec0004c5da2a7242b0a818da5630)
2004-03-08Fix assumption about following directory sep in check_path_syntax(). WeJeremy Allison1-5/+11
need to try and convert 1 byte, then 2 bytes if that fails. Fixes bug reported by Simo. Jeremy. (This used to be commit 8702d0089619c7321b93e59d35f43ef32dce7b78)
2004-03-07Merge from HEAD.Tim Potter1-0/+4
(This used to be commit 89f3173f4f4e9a16f24b25f550065b50577f3f4c)
2004-03-05Several mb tidyups - getting ready to address the XXX_sub function.Jeremy Allison4-108/+105
Jeremy. (This used to be commit 92c3ae3458177ec7f721598311a8ad04b2db5138)
2004-03-05all_string_sub() is broken as it doesn't handle mb chars correctly (andJeremy Allison2-18/+5
so breaks when substitution '/' and '\'). It's used by unix_clean_name(), which is used by reduce_name, which is used by check_name() (phew!). Now that we know all filenames passed to check_name() are in a "good" format (no double slashes, all '\\' chars translated to '/' etc.) due to the new check_path_syntax() we can avoid calling reduce_name unless widelinks are denied. After this check-in I can fix all_string_sub() to handle mb chars correctly as it won't be in the direct path in the main path handling code. Jeremy. (This used to be commit 6080186fc4c2e7c59dd12a177539bfb77eb525cb)
2004-03-04Fix my breakage of NT pipes from the previous patch (sorry). Use theJeremy Allison1-4/+1
original srvstr_pull_buf() function to get the pipename not srvstr_get_path(). Jeremy. (This used to be commit 2a263873fd6bbbf03a32136981e433dc43374da9)
2004-03-04Fix build farm, older compilers won't let you declare variablesJim McDonough1-1/+1
right in the middle of the code. I just love catching jra on stuff like this, after all the crap I've done. :-) (This used to be commit dc7dc5175847243d821dd33c1678af1b785dfaf7)
2004-03-03Added client "hardlink" commant to test doing NT rename with hard links.Jeremy Allison2-16/+88
Added hardlink_internals() code - UNIX extensions now use this too. Jeremy. (This used to be commit aad6eb2240393931940c982e25a981ce32264f38)
2004-03-03Use a common function to parse all pathnames from the wire. This allowsJeremy Allison4-128/+290
much closer emulation of Win2k3 error return codes. Jeremy. (This used to be commit c9f31fafeda6ad79e590276f36e03ecd2e93f818)
2004-02-28Can't set allocation size on directories, return correct error code onJeremy Allison2-1/+17
fail if file exists and target is a directory. gentest. Jeremy. (This used to be commit f4a7ea6dc2b9f379a9c735670a49ac63818754c7)
2004-02-28More gentest fixes. Fix up regression in IS_NAME_VALID and renames.Jeremy Allison2-13/+34
Jeremy. (This used to be commit 367f5c3bc27aafb04f7589b3d4ac5b58189909fb)
2004-02-26Interesting fact found by IFSTEST /t LockOverlappedTest...Jeremy Allison1-1/+8
Even if it's our own lock context, we need to wait here as there may be an unlock on the way. So I removed a "&& !my_lock_ctx" from the following if statement. if ((lock_timeout != 0) && lp_blocking_locks(SNUM(conn)) && ERROR_WAS_LOCK_DENIED(status)) { Jeremy. (This used to be commit 3f35e3975f1c46daad1456bc82163acd049d7be8)
2004-02-25Fixup strange rename error case (gentest).Jeremy Allison1-1/+2
Jeremy. (This used to be commit d448fb801e175e11cfc0118325043eef836103f0)