summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
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)
2004-02-25Figured out a new flags bit with gentest and ethereal....Jeremy Allison1-2/+10
Jeremy. (This used to be commit b4b684f1155b1abccb69cca7bca9819625dbfead)
2004-02-25More gentest fun :-). NB. I'm not fixing OpenX breakage 'cos if you lookJeremy Allison1-5/+27
at what W2K3 accepts here it's COMPLETELY BROKEN ! :-). Jeremy. (This used to be commit 5107f6ee70a9300678ccb7b3c812e23ddf795c22)
2004-02-25More gentest fixes.Jeremy Allison1-6/+17
Jeremy. (This used to be commit d34785194cbd7132fc3ca1f4d5561c2eee6009ab)
2004-02-24Ensure '.' and '..' don't match in delete requests.Jeremy Allison1-1/+4
Jeremy. (This used to be commit 1b0d54170a2e3e61fc9bdedec6b10c8b7728a395)
2004-02-24More gentest error fixups.Jeremy Allison3-2/+13
Jeremy. (This used to be commit 00f71fc8361919b87b62389ada8bd9a73f9f98b5)
2004-02-24Fixup bad-path error found by gentest.Jeremy Allison1-4/+6
Jeremy. (This used to be commit 63d47f336464080e20e68f21d826e82786b9719e)
2004-02-24Added NTrename SMB (0xA5) - how did we miss this.... ?Jeremy Allison2-1/+51
Jeremy. (This used to be commit dfd7d1c2b7b577a084a94926abfce82c91f20b7e)
2004-02-24Fixup correct timeout values for blocking lock timeouts (tested at connectathonJeremy Allison1-1/+1
by Herb). Jeremy. (This used to be commit b38b3a554221a234127c740e6432048e69b7f5a3)
2004-02-20Make SMB_FILE_ACCESS_INFORMATION call work correctly.Jeremy Allison1-1/+3
Jeremy. (This used to be commit 0ea0ada6c609e1bb0fb4aace24e1beb7197495b5)
2004-02-20Make us bug-for-bug compatible with W2K3 - to get delete on close semanticsJeremy Allison1-6/+19
on an initial open the desired_access field *must* contain DELETE_ACCESS, simply having it map from a GENERIC_ALL won't do. Fixes delete on close test. Jeremy. (This used to be commit 5c6f8b1053fd1f170fbb76640649653f8aa80f18)
2004-02-19Fix the "too many fcntl locks" scalability problem raised by tridge.Jeremy Allison2-24/+39
I've now tested this in daemon mode and also on xinetd and I'm pretty sure it's working. Jeremy. (This used to be commit 14dee038019b11300466b148c53515fc76e5e870)
2004-02-13Fixup the 'multiple-vuids' bugs.Jeremy Allison3-96/+86
Jeremy. (This used to be commit f0f7a48327ba1808088bc8c4e5d48b5cbeaeb4e3)
2004-02-12merge from old APP_HEADGerald Carter4-6/+93
* remove corrupt tdb and shutdown (only for printing tdbs, connections, sessionid & locking) * decrement smbd counter in connections.tdb in smb_panic() * various Makefile hack to get things to link 'max smbd processes' looks like it might be broken. The counter KEY is not being set. Will look into that tomorrow. (This used to be commit 6e22c5da929b6d9a4e32dc704c83112b2ad8fcfd)
2004-02-08nsswitch/winbindd_util.c:Andrew Bartlett1-11/+0
add static smbd/uid.c: remove unused function Andrew Bartlett (This used to be commit ab25af0e18d883757775a85f005775a79a86dcc8)
2004-02-08More 'static' work.Andrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit 25a09004e8a51eb3192adbb580239427bfee0ec9)
2004-02-08Make more functions static, and remove duplication in the use of functionsAndrew Bartlett2-3/+4
in lib/smbpasswd.c that were exact duplicates of functions in passdb/passdb.c (These should perhaps be pulled back out to smbpasswd.c, but that can occour later). Andrew Bartlett (This used to be commit fcdc5efb1e245c8fa95cd031f67ec56093b9056e)
2004-02-08Samba hasn't used this function for ages - it's now handled deep in theAndrew Bartlett1-69/+0
auth subsystem. Andrew Bartlett (This used to be commit 5693730594b1a861c7916cac7d156cf6a9d913cd)
2004-02-02remerge andrew's cracklib patch from HEAD and fix a compile warningsGerald Carter1-23/+58
(This used to be commit b60f6ec30d05e4e5bba9934a416ddc8bc089824f)
2004-01-31* BUG 101: patch from j.lu@tiesse.com to set the SV_TYPE_PRINTQ_SERVER;Gerald Carter1-11/+4
* don't set the unix_ERR_XX code in mkdir_internal, let the error mapping handle it. (This used to be commit 87343fc15a385153c2205bd8bfe876504d38d9a1)
2004-01-31cleanup patch for bug 977 so we don't display incorrect debug messagesGerald Carter1-8/+12
(This used to be commit 11093ecfb7bab1ecb16d19ac00b3e7e38dff43e2)
2004-01-28Merge of Chris's fix.Jeremy Allison1-11/+31
Jeremy. (This used to be commit 1a7714ea32300ba0e48f275addcf2e1f272a96ed)
2004-01-27bug 977 - don't create a homes share for a user if a static share already ↵Gerald Carter1-1/+7
exists by the same name (This used to be commit 6b89a76aa7efaa0ad7a0139aeb3e4ebf5c01cdcb)
2004-01-26Revise our server-side password change code to cope with the variousAndrew Bartlett1-109/+158
different feilds that different clients send. (For example, not all clients send both password types). This also cleans up the code to make it clearer what is really going on, and to make better use of common functions. Andrew Bartlett (This used to be commit 934e9f3bd0e8a938263978ffcd1fef51e42fa5e4)
2004-01-26Patch by Luca Bolcioni <Luca.Bolcioni@yacme.com>. Ensure we alwaysAndrew Bartlett1-0/+2
initialise the session key. Fixes segfaults with security=server, and encrypt passwords = no. Andrew Bartlett (This used to be commit 493ac5ce98fa3fcddb596139240dd762e70d4ac3)
2004-01-15reply_spnego_kerberos did not set the domain of the user handed toVolker Lendecke1-0/+7
register_vuid correctly. We ended up with the local netbios name in substitutions for %D later. Volker P.S: Tridge, I can *really* see why you want to get rid of global variables :-) (This used to be commit 3d9931fe291559a907c3e172a66fbce1155497a3)
2004-01-15* Fix XFS quotas: XFS_USER_QUOTA -> USRQUOTAStefan Metzmacher2-8/+12
XFS_GROUP_QUOTA -> GRPQUOTA * Fix disk_free calculation with group quotas. * Add debug class 'quota' and a lot of DEBUG()'s to the quota code. metze (This used to be commit e9e5e2036f13ff847aa3ef52e8be657bef7d5774)
2004-01-14revert the cracklib changes until post 3.0.2Gerald Carter1-58/+23
(This used to be commit 6202e0fa727a4307f51bf42f5ced401a7c7b8214)
2004-01-12On systems without a working cracklib, ensure we don't include the headerAndrew Bartlett1-0/+2
(the actual call to crack was already in this #ifdef) Andrew Bartlett (This used to be commit 4a01f3dbb4a2e744b48bdb86c4d91ee4692d38e5)
2004-01-12First stab at cracklib support (password quality checking) in Samba 3.0Andrew Bartlett1-23/+56
This adds a configure test, that tries to find out if we have a working cracklib installation, and tries to pick up the debian hints on where the dictionary might be found. Default is per my Fedora Core 1 system - I'm not sure how much it changes. Andrew Bartlett (This used to be commit bc770edb788f0b6f719011cda683f045b76b7ba5)
2004-01-11update copyright to -2004Stefan Metzmacher1-1/+1
metze (This used to be commit 12d6bc3bd0684646e990c2fc6485fe1a92ac98fb)
2004-01-07Fix from Luke Howard <lukeh@PADL.COM> for incorrect early free().Jeremy Allison1-5/+7
Jeremy. (This used to be commit 8e20c06ed31d9ec10ff0155b1624eee3d60cd006)
2004-01-06Patch penguin. Cleaning out old mbp patch.Jeremy Allison1-22/+24
Jeremy. (This used to be commit d75db0bf1eee9c4341a3ec14c05f82b364a202b3)
2004-01-06remove unused seek_file(); don't hardcode '\' when printing the auth-userGerald Carter1-25/+0
(This used to be commit fac5e05ca1b56cb6e3ab6537d0848fa373c00831)