summaryrefslogtreecommitdiff
path: root/source3/smbd/process.c
AgeCommit message (Collapse)AuthorFilesLines
2003-02-27Fix to allow blocking lock notification to be done rapidly (no waitJeremy Allison1-0/+7
for smb -> smb lock release). Adds new PENDING_LOCK type to lockdb (does not interfere with existing locks). Jeremy. (This used to be commit 22fc0d48ff2052b4274c65f85050c58b235bf4e4)
2003-01-30Add 3 second timeout when terminating server and sending print notifyJeremy Allison1-1/+1
messages. Stops build-up of large numbers of smbd's waiting to terminate on large print throughput. Jeremy. (This used to be commit 4ae130bfa82be60de6a6f357f65207fcb24f45fb)
2003-01-24Merge of increment_smbd_process_count() fix from appliance.Tim Potter1-1/+1
(This used to be commit c39c54e6b6adcdab7647e36e6c1b0acbdeeaf111)
2003-01-23Merge of max log file fixes from appliance:Tim Potter1-0/+12
- smbd/process.c: check log file sizes more often than in timeout_processing() - lib/debug.c: increment debug_count inside Debug1() instead of when log file sizes are checked. (This used to be commit 303710c2065850beebef678e657633497e4d8452)
2003-01-11[merge] make sure to updatre print queue cache during timeout_processing() ↵Gerald Carter1-0/+4
to send notify events; CR 1491 (This used to be commit 142c5029c701e7a82074e301278846c02843f46f)
2003-01-09Moved smbd process counting functions from smbd/server.c to smbd/process.cTim Potter1-0/+26
so that bin/vfstest can link. (This used to be commit 812ce0368c69922612ac001560a111016d0e568e)
2003-01-08Ensure we don't get an invalid number for total smbd's if the tdb updateJeremy Allison1-5/+1
fails. Jeremy. (This used to be commit 99e69fd74d5a2e7396e7f24924d72374d5cb32c2)
2003-01-02BIG patch...Andrew Bartlett1-2/+2
This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett (This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2002-12-11Fixed auth module code. Added VALGRIND defines to reduce spurious warnings.Jeremy Allison1-1/+0
Jeremy. (This used to be commit ff3a8d37289216a2cb808406044a7abef1e564d0)
2002-12-04change_trust_account_password() must always use the PDC for rpcGerald Carter1-3/+3
password changes. jerry (This used to be commit 974822526f90aee9b43e75fc7fd5d48fe91add99)
2002-11-12Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison1-10/+8
dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy. (This used to be commit 82b8f749a36b42e22186297482aad2abb04fab8a)
2002-09-18We had a race condition when changing a machine acount password as weJeremy Allison1-0/+9
were no longer locking the secrets entry. I saw this on a live system. Jeremy. (This used to be commit 660dafcbb2d1029831212a32d995891626a0344c)
2002-09-04Merge of (apparently working :-) new printing notify code.Jeremy Allison1-1/+9
Jeremy. (This used to be commit 8595c6ce4d74539089b600b3b0ff858a04b793ff)
2002-08-28Move -4 to correct side of comparison.Jeremy Allison1-2/+2
Jeremy. (This used to be commit d825026658b59364f9adc425bca4017be8e979e2)
2002-08-27Ensure we have at least smb_size bytes before processing a packet.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 0385f7d7efed48fc8121fc0fbb433e9ca0954094)
2002-08-26Correct fix for nc problem.Jeremy Allison1-1/+2
Jeremy. (This used to be commit 1f81b177182aee7fe24e50ae3cd72d417e81b45a)
2002-08-26Reformatting only before real change.Jeremy Allison1-131/+124
Jeremy. (This used to be commit ac21f280d5030a9c49330be37bd754a1540a238a)
2002-08-22move where got_sig_term and reload_after_sighup are defined.Herb Lewis1-2/+2
populate cli structure with called name and calling name even for port 445 connects. (This used to be commit 123eee6206d9afb28c169540dc63824957b505f4)
2002-08-22reload_after_sighup and got_sig_term are defined in server.cHerb Lewis1-2/+2
(This used to be commit 667e2fe32f111ce840fe3be028c61497d54d6b3d)
2002-08-18added exact timing semantics on blocking locksAndrew Tridgell1-7/+2
(This used to be commit aed32eb412cab7f6d0959f9faaaebdb320b2b6a8)
2002-07-26Mimir has been busy with patches again, and sent in the followingAndrew Bartlett1-1/+1
patches: Andrew Bartlett From his e-mail: Below I attach the following patches as a result of my work on trusted domains support: 1) srv_samr_nt.c.diff This fixes a bug which caused to return null string as the first entry of enumerated accounts list (no matter what entry, it was always null string and rid) and possibly spoiled further names, depeding on their length. I found that while testing my 'net rpc trustdom list' against nt servers and samba server. 2) libsmb.diff Now, fallback to anonymous connection works correctly. 3) smbpasswd.c.diff Just a little fix which actually allows one to create a trusting domain account using smbpasswd 4) typos.diff As the name suggests, it's just a few typos fix :) (This used to be commit 888d595fab4f6b28318b743f47378cb7ca35d479)
2002-07-20Move some startup time initialisation to server.c, so it is all in one place.Andrew Bartlett1-11/+4
I'm not sure that we need that "dummy" talloc init, but anyway... Also, add some 'const' to the table of smb reply functions. Andrew Bartlett (This used to be commit 790b7c9ab82f930da66426e7a932d7365bd27725)
2002-07-19Allow trans2 and nttrans messages to be processed in oplock break state.Jeremy Allison1-2/+2
As noticed by Lev Iserovich <lev@ciprico.com> this seems to fix a problem with oplock breaks and Win2k, and we are protected from problems by existing code in trans2.c and nttrans.c Jeremy. (This used to be commit e3f7d6c03f100962395763a5066313d60b4761d0)
2002-06-17compile warngin fixes merged from 2.2Gerald Carter1-2/+2
(This used to be commit 29874f4b8fecdc7cbd84d656dafce54cca49e0b1)
2002-06-06Overly complex but neccessary fix for kernel oplock problems. The issueJeremy Allison1-0/+21
is that there are some times when we should return an EINTR from a select, some times when we should not. As we can take a signal at any time, we have to eat EINTR's in some selects. This means we need to check for kernel oplock breaks more often in the main loop, as well as add the queuing mechanism needed for the changenotify code (due to the mistake in understanding POSIX semantics w.r.t. setting a signal mask in a signal handler). This code now passes all my tests. However, (and IMHO and I know tridge disagrees) - the correct way to fix this is to run with RT signals blocked and explicitly unblock them just before the main select, block them after and then process them all in one place. Just my 2cents :-). Jeremy. (This used to be commit a8c85372e2826a07117c89b39270cde8641ce55d)
2002-05-22Merge of bugfixes from 2.2.Jeremy Allison1-1/+3
Jeremy. (This used to be commit 5c8351228c55f2403214351f6fd16fe231aee917)
2002-05-22Merge of receive_local_message fix from 2.2.5.Jeremy Allison1-17/+5
Jeremy. (This used to be commit d4dbb9cb1338332bda3651dc4b86abcf47e9c2d2)
2002-05-17This removes --with-ssl from Samba.Andrew Bartlett1-16/+0
This option was badly maintained, useless and confused our users and distirbutors. (its SSL, therfore it must be good...) No windows client uses this protocol without help from an SSL tunnel. I can't see any reason why setting up a unix-side SSL wrapper would be any more difficult than the > 10 config options this mess added to samba in any case. On the Samba client end, I think the LIBSMB_PROG hack should be sufficient to start stunnel on the unix side. We might extend this to take %i and %p (IP and port) if there is demand. Andrew Bartlett (This used to be commit b04561d3fd3ee732877790fb4193b20ad72a75f8)
2002-03-14Now we have reliable signals take SIGTERM inband.Jeremy Allison1-3/+9
Jeremy. (This used to be commit cad82926a8baf7605cef81f0e0d4daa8e527e6ee)
2002-03-01Various comment fixes from Rafal Szczesniak <mimir@diament.ists.pwr.wroc.pl>Andrew Bartlett1-1/+1
(This used to be commit 3bf4b42771d115500941be374bfdd9b8c2fdba4a)
2002-01-31Fix from Michael Steffens <michael_steffens@hp.com> to make signalJeremy Allison1-1/+1
processing work correctly in winbindd. This is a really good patch that gives full select semantics to the Samba modified select. Jeremy. (This used to be commit 3af16ade173cac24c1ac5eff4a36b439f16ac036)
2002-01-30Removed version number from file header.Tim Potter1-2/+1
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2002-01-23Check request flag for unicode capability and respond accordingly, rather ↵Jim McDonough1-1/+2
than only doing unicode. smbfs didn't work. (This used to be commit 95857a3515d67effb1242ca07daa5643458bb2f0)
2002-01-19Report write fail in smb_dump.Jeremy Allison1-1/+3
Jeremy. (This used to be commit 832b9e7838afc0a48932dd0622c7e2f7b7e44a8f)
2002-01-11Same fix as went into 2.2 (I'm waiting for jerry to finish some code).Jeremy Allison1-7/+7
Jeremy. (This used to be commit 01ff6ce4963e1daff019f2b936cef218e1c93f67)
2002-01-09Fixed up atomic update code.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 274b04d4a6123fbfe363afc214e908ab36c7e8a7)
2002-01-05I've decided to move the auth code around a bit more...Andrew Bartlett1-6/+6
The auth_authsupplied_info typedef is now just a plain struct - auth_context, but it has been modified to contain the function pointers to the rest of the auth subsystem's components. (Who needs non-static functions anyway?) In working all this mess out, I fixed a number of memory leaks and moved the entire auth subsystem over to talloc(). Note that the TALLOC_CTX attached to the auth_context can be rather long-lived, it is provided for things that are intended to live as long. (The global_negprot_auth_context lasts the whole life of the smbd). I've also adjusted a few things in auth_domain.c, mainly passing the domain as a paramater to a few functions instead of looking up lp_workgroup(). I'm hopign to make this entire thing a bit more trusted domains (as PDC) freindly in the near future. Other than that, I moved a bit of the code around, hence the rather messy diff. Andrew Bartlett (This used to be commit 12f5515f556cf39fea98134fe3e2ac4540501048)
2002-01-03Fix talloc msg registrationMartin Pool1-1/+1
(This used to be commit 9a473ecf96fca35d146756c0c313b156aba8d9d9)
2002-01-03smbd children should also register for POOL_USAGEMartin Pool1-0/+1
(This used to be commit b46d874f4736493bdc4244ec6cdf95e77347e7d5)
2001-12-10cleanup a little namespace pollutionAndrew Tridgell1-1/+1
(This used to be commit e5b484451a37a9ac940b342d70791b09362070ee)
2001-11-27don't try to auto-change the trust password unless we are in domainAndrew Tridgell1-1/+4
security (This used to be commit 00e4f0c803c6376387c31efd01cf3437c589da9d)
2001-11-26challange -> challengeTim Potter1-4/+4
(This used to be commit d6318add27f6bca5be00cbedf2226b642341297a)
2001-11-24This is another rather major change to the samba authenticaionAndrew Bartlett1-13/+17
subystem. The particular aim is to modularized the interface - so that we can have arbitrary password back-ends. This code adds one such back-end, a 'winbind' module to authenticate against the winbind_auth_crap functionality. While fully-functional this code is mainly useful as a demonstration, because we don't get back the info3 as we would for direct ntdomain authentication. This commit introduced the new 'auth methods' parameter, in the spirit of the 'auth order' discussed on the lists. It is renamed because not all the methods may be consulted, even if previous methods fail - they may not have a suitable challenge for example. Also, we have a 'local' authentication method, for old-style 'unix if plaintext, sam if encrypted' authentication and a 'guest' module to handle guest logins in a single place. While this current design is not ideal, I feel that it does provide a better infrastructure than the current design, and can be built upon. The following parameters have changed: - use rhosts = This has been replaced by the 'rhosts' authentication method, and can be specified like 'auth methods = guest rhosts' - hosts equiv = This needs both this parameter and an 'auth methods' entry to be effective. (auth methods = guest hostsequiv ....) - plaintext to smbpasswd = This is replaced by specifying 'sam' rather than 'local' in the auth methods. The security = parameter is unchanged, and now provides defaults for the 'auth methods' parameter. The available auth methods are: guest rhosts hostsequiv sam (passdb direct hash access) unix (PAM, crypt() etc) local (the combination of the above, based on encryption) smbserver (old security=server) ntdomain (old security=domain) winbind (use winbind to cache DC connections) Assistance in testing, or the production of new and interesting authentication modules is always appreciated. Andrew Bartlett (This used to be commit 8d31eae52a9757739711dbb82035a4dfe6b40c99)
2001-11-05Don't put a \n on the end of the arg to exit_server()Tim Potter1-1/+1
(This used to be commit dfb8566220c3e90ca2b757ea124f53aed103269e)
2001-10-20Converted a bunch of 0x85 constants to SMBkeepalive.Tim Potter1-2/+2
(This used to be commit b16a15a13ed7d267c6366abaeeb3ccafa5776f5e)
2001-10-19Restored old Bmpx code - actually used by OS/2.Jeremy Allison1-4/+4
Jeremy. (This used to be commit 7c1688fd67c1bda1477aaf870371c825280db870)
2001-10-18Merge the become_XXX -> change_to_XXX fixes from 2.2.2 to HEAD.Jeremy Allison1-6/+6
Ensure make_conection() can only be called as root. Jeremy. (This used to be commit 8d23a7441b4687458ee021bfe8880558506eddba)
2001-10-17added basic NTLMSSP support in smbd. This is still quite rough, andAndrew Tridgell1-19/+18
loses things like username mapping. I wanted to get this in then discuss it a bit to see how we want to split up the existing session setup code (This used to be commit b74fda69bf23207c26d8b2af23910d8f2eb89875)
2001-10-17Fixed inconsistent definitions of InBuf/OutBuf/last_char.Jeremy Allison1-3/+0
Noticed by albert chin (china@thewrittenword.com) . Jeremy. (This used to be commit f5781f11eb924bdf32d20819c58a782493f4b239)
2001-10-11Fixed bug when status=no and max smbd processes > 0.Jeremy Allison1-0/+6
Jeremy. (This used to be commit d1adaee373f08020d350af2aa65b7651da94bdae)