summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
AgeCommit message (Collapse)AuthorFilesLines
2004-01-11update copyright to -2004Stefan Metzmacher1-1/+1
metze (This used to be commit fcb3c9c61ecd787b8d3e5a53ee8f9e04daae76fe)
2003-11-07From 3_0:Volker Lendecke1-1/+1
Simple rename of get_socket_addr to get_peer_addr and get_socket_name to get_peer_name. This is to get closer to the getsockname/getpeername system functions. Next step will be the %i macro for the local IP address. I still want to play %L-games in times of port 445. Volker (This used to be commit 99311b437be050fd9ee656cd184f299993d20bfb)
2003-10-29Janitor for tridge.Jeremy Allison1-2/+2
parameterise the listen backlog in smbd and make it larger by default. A backlog of 5 is way too small these days. Jeremy. (This used to be commit 58b8f673945ad114d056dd79f509c93ab42b96d1)
2003-09-09sync 3.0 into HEAD for the last timeGerald Carter1-1/+1
(This used to be commit c17a7dc9a190156a069da3e861c18fd3f81224ad)
2003-07-16trying to get HEAD building again. If you want the codeGerald Carter1-16/+12
prior to this merge, checkout HEAD_PRE_3_0_0_BETA_3_MERGE (This used to be commit adb98e7b7cd0f025b52c570e4034eebf4047b1ad)
2003-05-10Reverse previous patch from Stefan and me after comments by Andrew Bartlett.Jelmer Vernooij1-7/+0
(This used to be commit d31509fe88da8727521586dced1da2c73bfee2bc)
2003-05-10Patch from metze and me that adds dummy smb_register_*() functionsJelmer Vernooij1-0/+7
(This used to be commit 367a5cad1edf6a49783806d5a8b59a62d8856706)
2003-05-06Add metze's exit and idle event patchJelmer Vernooij1-0/+3
(This used to be commit e599eba851db40816c684da2b7b1be4b978166e0)
2003-05-01proper wellknown sids initialization at startupSimo Sorce1-1/+4
(This used to be commit 568feee8977ee1be210344c8ab1896512894cba2)
2003-04-27make winbind use idmap as well.Simo Sorce1-1/+1
change idmap_init call removed ldap backend for winbind idmap, seem it had problems anyway and it have to be reworked to work with idmap without calling winbind code. simo (This used to be commit 9d7d007443fc75264b2764b90f272ffc40c9be6c)
2003-04-07Remove duplicate "tallocdump" message from tdb messaging system. TheTim Potter1-23/+0
same functionality exists as "pool-usage". Move initialisation of this and dmalloc messages inside message_init(). (This used to be commit af6ecafcbbf65dbedc49b3a86da39ce608bdadac)
2003-04-02THE Idmap patch :-)Simo Sorce1-0/+3
includes a --with-idmap=no switch to disable idmap usage if you find problems. cosmetic fixes and param aliases to separate winbind from idamp roles. A temporarily remote idmap winbind compatibility backend. As I have time I will further change code to not call directly winbind (partly done but not tested) and a specilized module will be built in place for the current glue hack. The patch has been tested locally in my limited time, the patch is simple and clear and should not reserve problems, if any just disable it. As usual, comments and fisex are welcome :-) Simo. (This used to be commit 02781320476ed1b7ee5d943fa36f9a66ab67f208)
2003-03-30update copyright notice since it we are now almost 4 months into 2003Gerald Carter1-1/+1
(This used to be commit 6a17c23a549e1e2ce2b428421fbf0b81b37ad0c1)
2003-03-27Use the new modules system in VFS. If a module can't be loaded with theJelmer Vernooij1-1/+1
new modules system, we still fall back to the old system. (This used to be commit cebe8d8b424f10006f2f791a8f086c6c8a7f5d57)
2003-03-24Don't use old usage() function, but the one from popt.Jelmer Vernooij1-1/+0
Remove some useless arguments (This used to be commit 8df30059ef100a4d5e21501d7746427b4d312589)
2003-03-24Revoke some of the popt patch from metze I applied earlier today. It addedJelmer Vernooij1-0/+1
some double options and broke some parameters. (This used to be commit d5f9b0275c91512e1926504f22aaeec2d104430d)
2003-03-24Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changesJelmer Vernooij1-4/+0
(This used to be commit 2ddfed298d7f0b6e690275725a39c3ef107077ae)
2003-03-22Add nicer --help headersJelmer Vernooij1-1/+1
(This used to be commit e56ab71f1237a71c6ad4f321ce1db4e9397efd73)
2003-03-19Put in the new modules system. It's now used by passdb and rpc. I willJelmer Vernooij1-3/+4
put a doc about it in dev-doc later today. (This used to be commit af7bfee0c6902c07fdb8d3abccf4c8d6bab00b5a)
2003-03-08Make sure that the 'remote' machine name can only be set once. For some weirdAndrew Bartlett1-2/+2
reason, during a Win2003 installation, when you select 'domain join' it sends one machine name in the name exchange, and litraly 'machinename' during the NTLMSSP login. Also fix up winbindd's logfile handling, so that it matches smbd and nmbd. (This helps me, by seperating the logs by pid). Andrew Bartlett (This used to be commit afe5a3832f79131fb74461577f1db0e5e8bf4b6d)
2003-03-01i forgot to commit the privilege db init callAndrew Tridgell1-0/+4
(This used to be commit e8ec2b118071ce1d8cbfbcebce3781ac753c5c22)
2003-02-27- Rename 'modules = ' to 'preload modules = 'Jelmer Vernooij1-2/+1
- Add smb_probe_module() - Add init_modules() - Call these functions (This used to be commit f8f21653225792c0001d183c6efe8b7d89a0785d)
2003-02-05Check for too many processes *before* the fork.Jeremy Allison1-2/+36
Jeremy. (This used to be commit dfb596b01288b7035c4448fd395e160a54144732)
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-14make -i flag work lik eit did in 2.2Gerald Carter1-2/+5
(This used to be commit 54b054c1edd44096c7158993a886f915d7a07493)
2003-01-09Moved smbd process counting functions from smbd/server.c to smbd/process.cTim Potter1-30/+0
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-1/+17
fails. Jeremy. (This used to be commit 99e69fd74d5a2e7396e7f24924d72374d5cb32c2)
2003-01-03patch to include support for daemontools from Michael HandlerGerald Carter1-2/+16
(This used to be commit 4c48c475a28450ad4fd8dcc8263e841c0c39a80e)
2003-01-02BIG patch...Andrew Bartlett1-4/+5
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-20Forward port the change to talloc_init() to make all talloc contextsJeremy Allison1-7/+24
named. Ensure we can query them. Jeremy. (This used to be commit 842e08e52a665ae678eea239759bb2de1a0d7b33)
2002-11-26Having waited for *way* too long, this is mimir's namecache and trusted domainAndrew Bartlett1-0/+1
cache code. This uses gencache, mimir's new caching code that stores at text-based cache of various data. Mimir has done a *lot* of work on this patch, and it is finally time to get it in CVS. Andrew Bartlett (This used to be commit 47f3bfe9564e7f3aff60cefaefd599e0abb30a31)
2002-11-13Load modules in lp_modules() after fork()Jelmer Vernooij1-0/+4
(This used to be commit 77afa4f1679c22cde88ecc5bc7ed37951c822221)
2002-11-12Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison1-17/+6
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-11-08Compleatly remove support for logfile truncation. All logs are opened forAndrew Bartlett1-3/+0
append writes. (blessed by jra) Andrew Bartlett (This used to be commit 81633064dd196c40541ecece8def51745f514646)
2002-11-07Make append_log work againJelmer Vernooij1-0/+3
(This used to be commit 2fd496b49f76e3b593fb60fb2523a044a3814125)
2002-11-04Handle -p correctlyJelmer Vernooij1-1/+1
(This used to be commit b69d5fffd97890f80df6675fb71bc230aacc8234)
2002-11-04Make IRIX happyJelmer Vernooij1-3/+3
(This used to be commit aeb94bb0d7ad84b52a5f729a3e83f4fb00005771)
2002-11-02Remove obsolete function usage and some unused variablesJelmer Vernooij1-27/+1
(This used to be commit 162431a88ccb0811ae9873ce4ceda11d2f1de8b7)
2002-11-02Convert to popt.Jelmer Vernooij1-75/+23
Removed -o and -a options - these have been broken since 2.2 without complaints from users (This used to be commit c8589a567b96dacc0b6c88c91b34f8211532bbfa)
2002-10-31Fix slowdown because of enumerating all print queues on every smbd startup.Jeremy Allison1-4/+7
Jeremy. (This used to be commit d05b147fb3f32031a202cf61703dc2fd969f4617)
2002-09-05Send any queued up print notify messages in exit_server() so theyTim Potter1-0/+2
don't get lost if the client exits before timeout_processing() has a chance to run. (This used to be commit d7dde74aae64e9e142b80b7e3ba1bd69cec149b0)
2002-09-04Add bcast_msg_flags to connection struct. Allows sender to filter whenJeremy Allison1-1/+1
sending broadcast messages. Also initial cut-down of printing notify messages (not yet finished). Jeremy. (This used to be commit aca333719695b278843c59e1c6eb07d6655fd59c)
2002-08-22move where got_sig_term and reload_after_sighup are defined.Herb Lewis1-4/+2
populate cli structure with called name and calling name even for port 445 connects. (This used to be commit 123eee6206d9afb28c169540dc63824957b505f4)
2002-08-17Becouse of changes to the meaning of this feild over time, this doesn'tAndrew Bartlett1-5/+0
actually work. Also, the idea of 'loopback winbind' isn't that bad an idea anyway (potential PDC/BDC applications). Given all that, remove it... Andrew Bartlett (This used to be commit fc0d6e53fce1d05b16ec58c0bdc38aa8da4422c0)
2002-08-16Merge of netbios namecache code from APPLIANCE_HEAD.Tim Potter1-0/+2
Tridge suggested a generic caching mechanism for Samba to avoid the proliferation of little cache files hanging around limpet like in the locks directory. Someone should probably implement this at some stage. (This used to be commit dad31483b3bd1790356ef1e40ac62624a403bce8)
2002-08-10Fix the %m security bug again - and try to make it harder to reintroduce inAndrew Bartlett1-4/+2
future. This moves us from fstrcpy() and global variables to 'get' and 'set' functions. In particular, the 'set' function sainity-checks the input, in the same way as we always have. Andrew Bartlett (This used to be commit e57a896f06b16fe7e336e1ae63a0c9e4cc75fd36)
2002-08-05This fixes a number of ADS problems, particularly with netbioslessAndrew Tridgell1-0/+4
setups. - split up the ads structure into logical pieces. This makes it much easier to keep things like the authentication realm and the server realm separate (they can be different). - allow ads callers to specify that no sasl bind should be performed (used by "net ads info" for example) - fix an error with handing ADS_ERROR_SYSTEM() when errno is 0 - completely rewrote the code for finding the LDAP server. Now try DNS methods first, and try all DNS servers returned from the SRV DNS query, sorted by closeness to our interfaces (using the same sort code as we use in replies from WINS servers). This allows us to cope with ADS DCs that are down, and ensures we don't pick one that is on the other side of the country unless absolutely necessary. - recognise dnsRecords as binary when displaying them - cope with the realm not being configured in smb.conf (work it out from the LDAP server) - look at the trustDirection when looking up trusted domains and don't include trusts that trust our domains but we don't trust theirs. - use LDAP to query the alternate (netbios) name for a realm, and make sure that both and long and short forms of the name are accepted by winbindd. Use the short form by default for listing users/groups. - rescan the list of trusted domains every 5 minutes in case new trust relationships are added while winbindd is running - include transient trust relationships (ie. C trusts B, B trusts A, so C trusts A) in winbindd. - don't do a gratuituous node status lookup when finding an ADS DC (we don't need it and it could fail) - remove unused sid_to_distinguished_name function - make sure we find the allternate name of our primary domain when operating with a netbiosless ADS DC (using LDAP to do the lookup) - fixed the rpc trusted domain enumeration to support up to approx 2000 trusted domains (the old limit was 3) - use the IP for the remote_machine (%m) macro when the client doesn't supply us with a name via a netbios session request (eg. port 445) - if the client uses SPNEGO then use the machine name from the SPNEGO auth packet for remote_machine (%m) macro - add new 'net ads workgroup' command to find the netbios workgroup name for a realm (This used to be commit e358d7b24c86a46d8c361b9e32a25d4f71a6dc00)
2002-07-31added support for smbd listening on port 445 and 139. It now listensAndrew Tridgell1-45/+80
on both by default, and you can specify a list of ports to listen on either with "smb ports = " in smb.conf or using the -p option to smbd. this is needed for proper netbiosless operation. (This used to be commit 5dee0a7b5e0fcb298a9d36661c80e60d8b9bcc3a)
2002-07-20Move some startup time initialisation to server.c, so it is all in one place.Andrew Bartlett1-0/+7
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-20Add support for duplicating stderr into our logfiles.Andrew Bartlett1-8/+8
This is for two things: To allow panic actions etc to pump out backtraces to stderr and to allow vangrind to put its stuff in a logfile - making it possible to debug smbd when launched from inetd. I've also cleaned up some of the duplicate names in procedures between smbd and nmbd. Andrew Bartlett (This used to be commit 4bcb32731984b4aef1d4911a168a4e7a10d32fd4)