summaryrefslogtreecommitdiffstats
path: root/source/smbd/conn.c
Commit message (Collapse)AuthorAgeFilesLines
* ensure we exit with non-zero status on EOF on socket, so the parentAndrew Tridgell2008-08-131-2/+5
| | | | can trigger a brlock db cleanup
* Move connection-specific vuid cache clear to uid.cVolker Lendecke2008-06-141-15/+2
|
* Restructuring of code to fix #5460. Remove searchJeremy Allison2008-05-191-22/+0
| | | | | | | by name code from conn, we were already doing the same check in the dfs_redirect() function, so move it into parse_dfs_path() instead. Jeremy.
* Ensure we don't keep searching for sharename if it'sJeremy Allison2008-05-141-3/+3
| | | | | not the start of the list. Jeremy.
* Fix bug #5460. The problem is RHEL5.0 shipped a CIFS clientJeremy Allison2008-05-131-2/+23
| | | | | | | | | | | | | | | | | that sets the DFS bit on pathnames but doesn't send DFS paths. This causes lookups to fail as the smbd/msdfs.c code now just eats the first two parts of the pathname and uses the rest as the local path. The previous hostname check used to protect us from that as we knew that when the hostname was invalid it was a local path (and a broken client). I didn't want to put that check back in, but came up with another idea - even though the hostname can be a different one, the sharename must be valid on this machine. So we can check for a valid sharename instead. Jeremy.
* Remove "user" from connection_structVolker Lendecke2008-05-101-2/+0
|
* Replace nt_user_token with server_info in connection_structVolker Lendecke2008-05-101-0/+1
|
* Next try at making the vuid cache circularVolker Lendecke2008-05-101-3/+6
| | | | Jeremy, please check!
* Revert "Second half of 50c891d3: Correctly clear the vuid cache"Volker Lendecke2008-05-051-1/+1
| | | | This reverts commit 0aea404b0a83736ba2884cc7cf00cd797aab1f56.
* Second half of 50c891d3: Correctly clear the vuid cacheVolker Lendecke2008-05-051-1/+1
|
* Remove connection_struct->mem_ctx, connection_struct is its own parentVolker Lendecke2008-05-051-13/+4
|
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-2/+2
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.samba-misc-tags/initial-v3-2-testGerald (Jerry) Carter2007-10-101-0/+1
|
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r22942: Some message_register -> messaging_register conversionsVolker Lendecke2007-10-101-3/+6
|
* r22736: Start to merge the low-hanging fruit from the now 7000-line cluster ↵Volker Lendecke2007-10-101-1/+1
| | | | | | | | | patch. This changes "struct process_id" to "struct server_id", keeping both is just too much hassle. No functional change (I hope ;-)) Volker
* r22542: Move over to using the _strict varients of the tallocJeremy Allison2007-10-101-1/+1
| | | | | calls. No functional changes. Looks bigger than it is :-). Jeremy.
* r21871: Move deadtime processing into an idle event. While there, simplifyVolker Lendecke2007-10-101-11/+16
| | | | | | conn_idle_all() a bit. Volker
* r21867: Simplify calling convention of timeout_processing. lp_deadtime is onlyVolker Lendecke2007-10-101-1/+5
| | | | referenced in conn_idle_all().
* r21279: Get rid of 'aio write behind', this is broken.Volker Lendecke2007-10-101-1/+0
| | | | | | It should probably better be integrated with our write cache. Volker
* r21064: The core of this patch isVolker Lendecke2007-10-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | void message_register(int msg_type, void (*fn)(int msg_type, struct process_id pid, - void *buf, size_t len)) + void *buf, size_t len, + void *private_data), + void *private_data) { struct dispatch_fns *dfn; So this adds a (so far unused) private pointer that is passed from message_register to the message handler. A prerequisite to implement a tiny samba4-API compatible wrapper around our messaging system. That itself is necessary for the Samba4 notify system. Yes, I know, I could import the whole Samba4 messaging system, but I want to do it step by step and I think getting notify in is more important in this step. Volker
* r20178: Ensure we allocate the intermediate trans structsJeremy Allison2007-10-101-0/+8
| | | | | | | off conn->mem_ctx, not the null context so we can safefy free everything on conn close. Should fix possible memleak. Jeremy.
* r20098: Properly fix issues with create_token_from_username()Jeremy Allison2007-10-101-9/+0
| | | | | | | | | | | | | | reported by James. Ensure that this function allocates everything on the temporary context except the return memory. Never call this with a null mem context, and now use conn->mem_ctx instead in smbd/service.c. Remove separate free functions for conn->ngroups and conn->nt_user_token as they are now always talloc'ed off the conn->mem_ctx. Future optimization will be to remove conn->mem_ctx and make all objects pointed to in the conn struct talloc'ed off conn itself. Easy to free then :-). Jeremy.
* r20090: Fix a class of bugs found by James Peach. EnsureJeremy Allison2007-10-101-1/+1
| | | | | | | | | | | | | we never mix malloc and talloc'ed contexts in the add_XX_to_array() and add_XX_to_array_unique() calls. Ensure that these calls always return False on out of memory, True otherwise and always check them. Ensure that the relevent parts of the conn struct and the nt_user_tokens are TALLOC_DESTROYED not SAFE_FREE'd. James - this should fix your crash bug in both branches. Jeremy.
* r19709: Fix bug #4224 - deadtime timeout was brokenJeremy Allison2007-10-101-0/+1
| | | | | | | because of this. Probably a show-stopper for 3.0.23d. Thanks to Alain GORLIER <alain.gorlier@altissemiconductor.com> for the fix. Jeremy.
* r19386: Limit the size of the connection bitmap to <64K entries.James Peach2007-10-101-1/+11
|
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-3/+5
| | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
* r16317: Klocwork #300. Check for error return on malloc.Jeremy Allison2007-10-101-0/+4
| | | | Jeremy.
* r15088: Remove all time() and gettimeofday() calls out of the mainlineJeremy Allison2007-10-101-4/+12
| | | | | | packet processing code. Only do these when needed (ie. in the idle timeout code). We drop an unneccessary global here too. Jeremy.
* r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()Gerald Carter2007-10-101-1/+1
| | | | macro which sets the freed pointer to NULL.
* r13316: Let the carnage begin....Gerald Carter2007-10-101-1/+1
| | | | Sync with trunk as off r13315
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-1/+1
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r8963: Clean up the horrid "fake conn struct" part of MSDFS.Jeremy Allison2007-10-101-7/+15
| | | | Jeremy.
* r7963: Add aio support to 3.0.Jeremy Allison2007-10-101-0/+1
| | | | Jeremy.
* r7882: Looks like a large patch - but what it actually does is make SambaJeremy Allison2007-10-101-1/+1
| | | | | | safe for using our headers and linking with C++ modules. Stops us from using C++ reserved keywords in our code. Jeremy
* r4736: small set of merges from rtunk to minimize the diffsGerald Carter2007-10-101-0/+4
|
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2007-10-101-1/+1
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r1154: Change default setting for case sensitivity to "auto". If set to autoJeremy Allison2007-10-101-1/+1
| | | | | | | | | | | | then is the client supports it (current clients supported are Samba and CIFSVFS - detected by the negprot strings "Samba", "POSIX 2" and a bare "NT LM 0.12" string) then the setting of the per packet flag smb_flag FLAG_CASELESS_PATHNAMES is taken into account per packet. This allows the linux CIFS client to use Samba in a case sensitive manner. Additional command in smbclient "case_sensitive", toggles the flag in subsequent packets. Docs to follow. Jeremy.
* r656: Make widelinks use realpath(). Tidy up cases where we need to become a ↵Jeremy Allison2007-10-101-0/+1
| | | | | | service. Jeremy.
* Fixup the 'multiple-vuids' bugs.Jeremy Allison2004-02-131-3/+7
| | | | Jeremy.
* Patch from James Peach <jpeach@sgi.com>. Remove the MAX_CONNECTIONS limitJeremy Allison2003-12-111-9/+32
| | | | | | by increasing bitmap size. Limited by "max connections" parameter. Bug #716. Jeremy.
* Fix VFS layer:Alexander Bokovoy2003-05-111-21/+18
| | | | | | | | | 1. Finally work with cascaded modules with private data storage per module 2. Convert VFS API to macro calls to simplify cascading 3. Add quota support to VFS layer (prepare to NT quota support) Patch by Stefan (metze) Metzemacher, with review of Jelmer and me Tested in past few weeks. Documentation to new VFS API for third-party developers to follow
* More merges from HEAD:Jelmer Vernooij2003-04-161-9/+12
| | | | | | - Stephan Kulow's changes (fixing warnings in libsmbclient) - VFS modules - Seperating libs
* Merge of signed/unsigned fixes from HEAD.Andrew Bartlett2003-02-011-2/+2
|
* Fix reference count bug where smbd's would not terminate with noJeremy Allison2003-01-171-1/+12
| | | | | open resources. Jeremy.
* sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-251-2/+22
|
* Sync 3.0 branch with headJelmer Vernooij2002-08-171-4/+19
|
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-1/+1
|
* Removed HAVE_LIBDL from most places (except system.c). Added checks forJeremy Allison2002-03-271-2/+0
| | | | | | dlopen & friends into configure.in. This should help building on *BSD where dl*** calls are in libc. Jeremy