summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2001-07-21This patch fixes up a few issues where we would do lookups in the local systemAndrew Bartlett1-38/+42
on username we already know are perfectly valid, and in their final form. In particular we don't want to do a lookup for DOMAIN\nobody, it just does not make sense, nor should we do map_username and the like if the username is as specified in the vuid - we have done it already. Andrew Bartlett (This used to be commit 7cb517329b0fa2dec427a890a985c75cd467a3b0)
2001-07-17Tidied up calling yield_connection on connection allocation fail.Jeremy Allison2-1/+6
Restore debug message to level zero. Jeremy. (This used to be commit 0b13f495b31887d526b46a48a812fa3fd418ce8e)
2001-07-17Connection record not existing is not a debug level 0.Jeremy Allison1-1/+1
Jeremy. (This used to be commit d7da59f54eed69d50490205d6233bf4801c16998)
2001-07-17Fixes from Jens-Uwe.Walther@force.de to make the -l option behaveJeremy Allison1-1/+1
consistently. Jeremy. (This used to be commit f591ca9f25c54d3cdd0b76df472411e44c95ea47)
2001-07-17move the global_machine_password_needs_changing where we need it.Simo Sorce1-0/+2
(This used to be commit 8a2f6fbacd275acc7b356169f4022df4860a813e)
2001-07-16Test if machine password has expired.Simo Sorce1-0/+6
This test was lost somehow... (This used to be commit 065d8f69d5f4a8ffc062bc5592386ee1ac652969)
2001-07-11Toomas Soome's fix for joining a domain the old way.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 8db233c8b5866df2b3f9f4ed64e7de95807cf371)
2001-07-10added winbind_exclude_domain() so smbd can tell the winbind clientAndrew Tridgell1-0/+5
code not to do lookups for a particular domain. This allows winbind to operate on a Samba PDC (This used to be commit d472ee3a690fb6db03fd4536e4093a18fc37ddbb)
2001-07-08This removes unused paramaters from various authtication functions, and shouldAndrew Bartlett3-24/+17
not change behaviour. This should make my later diffs smaller, where I actualy start cleaning up this mess... Andrew Bartlett (This used to be commit 04f090c224bb7ac3b53c430a591fce1fc939a81c)
2001-07-07fixed some unicode and LANMAN2 bugs in trans2 find first/nextAndrew Tridgell1-39/+3
(This used to be commit d5097b2f20c55ddcf4ae8da4d1d0a2fe91938a6b)
2001-07-07You can't dump_data() a function pointer...Andrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit 4f7b2f51b071ee02b9a2ac7decd9fa7d9e078c1a)
2001-07-06Wrapped dlerror() in the same way as the other dlxxx() calls.Jeremy Allison1-1/+1
Jeremy. (This used to be commit ed5a1f70c6d155788b62e9e6e8c5d97a5ca0858d)
2001-07-06fixed bug where we looked at the first byte of a password to determineAndrew Tridgell1-12/+2
if the password is blank. That ain't valid with encrypted passwords! Jeremy, this changes the semantics of session setup. We no longer automatically set guest=True when the client happens to choose their username == the guest username. Instead we rely on the map_to_guest code. I'm pretty sure this is now the right thing, but please look at it carefully before putting it in 2.2 This is the bug that was causing the build farm to sometimes fail. Basically we failed every 256 attempts - ie. when the first byte of the encrypted password happened to be 0 (This used to be commit 4b35a3494c53fe38532fc12cf1c57e1a3715ad0f)
2001-07-05Fix race where wrong action (created or opened) could be returned.Jeremy Allison1-0/+8
Jeremy. (This used to be commit af5b649b017f703a14a69f77a9067efb9c6a8269)
2001-07-05Fix for rabbit-pellet mode. Chris please test this. Thanks for Dave CBJeremy Allison1-0/+6
for help on this. Jeremy. (This used to be commit 7efaefdf60e1880cf4ab97e1901248abd00acd79)
2001-07-05this fixes the failure of MS office on VFAT partitions on LinuxAndrew Tridgell1-30/+29
The problem is that ftruncate can't expand on VFAT, but it can on ext2. That means our autoconf test is useless. I have recoded it to use the alternative to ftruncate when then sys_ftruncate fails. Jeremy, do you want this for 2.2.1? (This used to be commit 970236ee9926b64c0b39bd8a36b2a9317206873c)
2001-07-05fixed a bug in the parameters SMBctemp uses in open_file_shared()Andrew Tridgell1-8/+7
(This used to be commit a1dee993cbf52e7232b65323430c8574843eb168)
2001-07-05use alpha_strcpy on the domain as it comes off the wireAndrew Tridgell1-8/+3
(This used to be commit 3b9eb528f56b325399e5a4588242bb6d9f9226e2)
2001-07-04allow to use usrmgr/svrmgr tools in win95Jean-François Micouleau1-5/+7
pretty cool (This used to be commit 04575ff17b9b5fe802e66bb8dd1948317ab35485)
2001-07-04strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell16-49/+49
can't redefine them. damn. (This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
2001-07-04The big character set handling changeover!Andrew Tridgell25-573/+186
This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
2001-07-04check for bad usernames early in session setupAndrew Tridgell1-0/+6
(This used to be commit 657836599a847578096696af27cd7c9f0d52c931)
2001-07-04Ensure we correctly round down to 2 second boundary if dos filetimeJeremy Allison2-9/+46
set for a share. Jeremy. (This used to be commit 8f57233c0f871763bc3657d754c894dbd29ae501)
2001-07-03Remove the exit_server() calls that stop nmbd linking.Jeremy Allison1-3/+5
Jeremy. (This used to be commit 110061ff5a0de7a5d7c5ee003d85d4d600c2531c)
2001-07-03Fixed incorrect debug parameters for lock_pid.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 310d2af6b0797cbd4f776b5c6c5b90a5d86b1aa9)
2001-07-02Very minor cleanup. I was looking for another problem and found some bitsChristopher R. Hertel1-2/+2
of code that were unclear. Chris -)----- (This used to be commit c2977be3408645499915d728538ba2c65b97614f)
2001-07-02Fixed the nastiest locking bug to track down.... smb_pids are sent in theJeremy Allison3-16/+36
lockingX calls - use that instead of smb_pid in the packet. Jeremy. (This used to be commit a3925cb9c6303ce24e5fecad6c8f3a0ba78b9ee0)
2001-07-01- fix bug in reply_nt- fix bug in reply_nt1Simo Sorce1-4/+4
(This used to be commit 200110a3b4caeb0d8be87f02476af29165e35ada)
2001-06-30Fixed the first locking error (test #8 found by locktest code fromJeremy Allison2-11/+11
Clarion locktest. Jeremy. (This used to be commit 5c42845b5bb6fafd0ebf93fbdd23d9bf861da865)
2001-06-29Ensured all the system calls in msdfs.c go through the vfs layer.Jeremy Allison3-126/+145
Added vfs calls to symlink() and readlink() with appropriate configure checks. Jeremy. (This used to be commit c24e6b41ea60ab4bac2fcd19da947851d6df3c7c)
2001-06-29Win9x weirdness. When setting the named pipe handle state on a UnicodeTim Potter1-2/+10
server, Win9x only sends \PIPE instead of \PIPE\. Looks suspiciously like an off-by one bug in the Win9x dce/rpc pipe code. (This used to be commit b4a9079833c261705e18fdcaab752cb5292a078f)
2001-06-26Always use DOMAIN\user first that this is the more specific case.Jeremy Allison1-12/+17
Jeremy. (This used to be commit 52143c08536a5f5d888b78b4769c06f7a0a2992b)
2001-06-26Remove warning about trapdoor systems for non-root mode.Andrew Bartlett1-0/+4
Andrew Bartlett (This used to be commit b33000cdc0cafd4888c3f07c56050626743abd14)
2001-06-25Fixed stupid typo that would stop trusted domains working.Jeremy Allison1-4/+3
Jeremy. (This used to be commit fa721b4adfbcac4827251b02f6af7f0b5211c104)
2001-06-25fixed usage of socklen_t and also tidied up SIG_ATOMIC_T, using a typedef ↵Andrew Tridgell5-16/+16
instead of a define (This used to be commit e2ecff419fdc0a0dc7551b33b377dc11061ef2a3)
2001-06-25- make the regresison test mode code build in by default. This shouldAndrew Tridgell1-11/+1
allow us to have test targets without special configure options - fixed make proto so that it actually does something (This used to be commit 55109a752578e9389d853cb27ec17c2114ecff77)
2001-06-23Log debug before and after netbios names copied so we know if they've beenJeremy Allison1-0/+3
changed. Jeremy. (This used to be commit f8c121c69c9561f011a0e08a9d0beaf1cefd1667)
2001-06-23Added other_safe_chars to alpha_strcpy(). Needs testing but is a betterJeremy Allison2-4/+4
fix for the problem. Jeremy. (This used to be commit e059fffd03a1382fb2b7059b6de369d9fc765a17)
2001-06-23Better fix for client name vulnarability.Jeremy Allison1-0/+2
Jeremy. (This used to be commit 17c3faa367328d186d10f59f08549de0c608b16a)
2001-06-22Fixed logic bug in timeout processing spotted by Ying Chen ↵Jeremy Allison1-1/+1
<ying@almaden.ibm.com>. Jeremy. (This used to be commit 08c168242364bf4d415f49d134e507a7e234611b)
2001-06-22added the ability to test smbd safely as an ordinary user. The way it works isAndrew Tridgell1-0/+2
that libsmb/ creates a local tcp socket then launches smbd as a subprocess attached to that socket. smbd thinks it is being launched from inetd. to use it do the following: - compile with -DSMB_REGRESSION_TEST - run like this (also works with smbtorture etc) export SMBD_TEST=1 export LIBSMB_PROG=bin/smbd smbclient //server/share -Uuser%pass obviously you need to setup a smb.conf etc. Using --prefix to configure is useful. The aim of all this stuff is to add a decent set of regression tests to the build farm, so we know if smbd actually runs correctly on all the platforms, not just builds. We can run smbtorture, masktest, locktest etc, plus a bunch of smbclient scripts and any new tests we write. This doesn't help much with nmbd (at least not yet) but its a good start. (This used to be commit 7e8e6ae9a88c4d2587eb4e7f0501cd71bd36ebb2)
2001-06-22Andrew - please look this over. I've fixed a long standing (maybe 4-5Jeremy Allison2-137/+164
years old) bug when chainging a sessionsetup_and_X and tcon together. The wrong username was being entered into the tdb, even though the correct user was used for accessing files. This is related to the fact that authorise_login() is not used for sessionsetup, but only for tcon auths. Jeremy. (This used to be commit 0187cd6aef7586d7ad4bdc70c50f3f2e7c69519c)
2001-06-21next_token() was supposed to be a reentrant replacement for strtok(),Andrew Tridgell1-3/+6
but the code suffered from bitrot and is not now reentrant. That means we can get bizarre behaviour i've fixed this by making next_token() reentrant and creating a next_token_nr() that is a small non-reentrant wrapper for those lumps of code (mostly smbclient) that have come to rely on the non-reentrant behaviour (This used to be commit 674ee2f1d12b0afc164a9e9072758fd1c5e54df7)
2001-06-21Added STR_NOALIGN flags to clistr and srvstr fns. Yes, NT actually doesAndrew Tridgell2-26/+30
send unaligned unicode strings sometimes! Fixed our handling of the workgroup name tacked on the end of the NT1 negprot response (a unaligned unicode) fixed a couple of places where we should be using the message_end fns instead of pre-calculated buffer lengths (This used to be commit 86613493a9b2e56523153486931d0bf8d39beb7a)
2001-06-21Following info from TAKAHASHI Motonobu <monyo@samba.gr.jp>,Jeremy Allison2-8/+7
Samba Users Group Japan, ensure that we don't use dos_to_unix(xx,True), but always use dos_to_unix(xx,False) to prevent overwriting. Jeremy. (This used to be commit 244aec8ea623fec828add3ab09c5003bf32bd5c7)
2001-06-20Fixed W2K SP2 joining a Samba PDC hosted domain.Jeremy Allison1-1/+1
Jermey. (This used to be commit 05a2911403a0710d994a618e72743205a3b0b87a)
2001-06-20added a close-share smbcontrol message that forcibly closes a share in smbd ↵Andrew Tridgell3-0/+41
(to allow unmount) (This used to be commit 15b17a80db605a55f667c95fb7e316877a441887)
2001-06-19Extra debug in open.c, fix for bad debug message in reply.cJeremy Allison2-3/+3
Jeremy. (This used to be commit 2c2fc8513699eb39721ac1d65fa1fdaecde526a8)
2001-06-19Set support for info levels...Jeremy Allison1-20/+14
Jeremy. (This used to be commit e033f758914f6631545af17041b4e49c1ff885d9)
2001-06-18Best-effort so far implementation of new W2K info levels.Jeremy Allison1-0/+148
An-embrace-and-extending we will go... Jeremy. (This used to be commit 43bf9b2c7aad15d65bac3a9c4f799be050a074cd)