summaryrefslogtreecommitdiffstats
path: root/source/smbd/service.c
Commit message (Collapse)AuthorAgeFilesLines
* Add SMB_VFS_FS_CAPABILITIESVolker Lendecke2008-01-211-9/+1
| | | | | | | | It turns out that this is a necessary operation, separate from statvfs. statvfs can fail during tcon, so conn->fs_capabilities would never see that we support streams on a particular share. James, can you check that I got the darwin variant right? Thanks!
* Add handling of [homes] and [printers] via registry shares.Michael Adam2008-01-161-39/+45
| | | | | | | | | Now homes and printers shares can be accessed through the registry meachanism on demand in pure registry configurations with "config backend = registry" without the need to have a special handler for these two. Michael
* Make use of talloc_pool in the main codepaths. Remove the sub-contexts.Jeremy Allison2008-01-091-7/+1
| | | | Jeremy.
* Add the capability to set "smb encrypt = required"Jeremy Allison2007-12-271-0/+2
| | | | | | | | on a share (or global) and have the server reply with ACCESS_DENIED for all non-encrypted traffic (except that used to query encryption requirements and set encryption state). Jeremy.
* Cache the underlying filesystem capabilities at connection time.James Peach2007-12-221-0/+15
| | | | | | This change alters the Samba connection code to cache the filesystem capabilities when a new client connects. This can be used to enable filesystem specific optimisations is a general manner.
* Remove Get_Pwnam and its associated static variableVolker Lendecke2007-12-191-3/+8
| | | | All callers are replaced by Get_Pwnam_alloc
* Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke2007-12-151-2/+2
|
* Always define PATH_MAX. Makes code simpler (removesJeremy Allison2007-11-101-4/+0
| | | | | a bunch of #defines). Remove pstring from msdfs.c. Jeremy.
* Fix the build when realpath doesn't take nullJeremy Allison2007-11-101-1/+1
| | | | | as a last arg. Jeremy.
* Remove pstring from service.c.Jeremy Allison2007-11-101-71/+109
| | | | Jeremy.
* Make load_registry_service return the share numberVolker Lendecke2007-11-051-1/+0
|
* Remove most of the remaining globals out of lib/util_sock.c.Jeremy Allison2007-11-031-3/+4
| | | | | | I have a plan for dealing with the remaining..... Watch this space. Jeremy.
* I can't get away without a 'length' arg. :-).Jeremy Allison2007-11-031-2/+4
| | | | Jeremy.
* Stop get_peer_addr() and client_addr() from using globalJeremy Allison2007-11-031-2/+4
| | | | | statics. Part of my library cleanups. Jeremy.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-9/+9
| | | | | | | 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-12/+6
|
* r25117: The mega-patch Jerry was waiting for. Remove all pstrings fromJeremy Allison2007-10-101-9/+13
| | | | | | | | the main server code paths. We should now be able to cope with paths up to PATH_MAX length now. Final job will be to add the TALLOC_CTX * parameter to unix_convert to make it explicit (for Volker). Jeremy.
* 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.
* r23168: Move the lp_max_connections() into service.c.Volker Lendecke2007-10-101-6/+20
|
* r23167: Remove an unused parameterVolker Lendecke2007-10-101-1/+1
|
* r22844: Introduce const DATA_BLOB data_blob_null = { NULL, 0, NULL }; andVolker Lendecke2007-10-101-2/+2
| | | | replace all data_blob(NULL, 0) calls.
* r21953: One format fix, clarify a condition that the IBMJeremy Allison2007-10-101-2/+20
| | | | | checker was worried about. Jeremy.
* r21547: Fix from Michael Adam <ma@sernet.de>: Refuse registry shares without ↵Volker Lendecke2007-10-101-0/+8
| | | | | | | | path. Thanks, Volker
* r21482: Use IPC$ not ipc$ for consistency.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r21481: No one said anything, so I'm disallowing anythingJeremy Allison2007-10-101-7/+17
| | | | | but explicit shares in "default service" :-). Jeremy.
* 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
* r21108: Send sys_notify_watch through the VFS, FAM is nextVolker Lendecke2007-10-101-1/+1
|
* r21092: Ok, that's the one that activates the Samba4 notify backend.Volker Lendecke2007-10-101-0/+7
| | | | | | Now to clean up / fix lots of stuff. Volker
* r21083: Actually make it static... :-)Volker Lendecke2007-10-101-1/+1
|
* r21082: Make canonicalize_path static to service.c -- we do have ↵Volker Lendecke2007-10-101-0/+25
| | | | conn->connectpath
* r20931: This changes the notify infrastructure from a polling-based to an ↵Volker Lendecke2007-10-101-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | event-driven based approach. The only remaining hook into the backend is now void *(*notify_add)(TALLOC_CTX *mem_ctx, struct event_context *event_ctx, files_struct *fsp, uint32 *filter); (Should we put this through the VFS, so that others can more easily plug in?) The trick here is that the backend can pick filter bits that the main smbd should not handle anymore. Thanks to tridge for this idea. The backend can notify the main smbd process via void notify_fsp(files_struct *fsp, uint32 action, char *name); The core patch is not big, what makes this more than 1800 lines are the individual backends that are considerably changed but can be reviewed one by one. Based on this I'll continue with inotify now. Volker
* r20098: Properly fix issues with create_token_from_username()Jeremy Allison2007-10-101-33/+17
| | | | | | | | | | | | | | 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.
* r20097: Ensure found_username is freed correctly whenJeremy Allison2007-10-101-2/+7
| | | | | talloced on the null context. Jeremy.
* r20090: Fix a class of bugs found by James Peach. EnsureJeremy Allison2007-10-101-2/+7
| | | | | | | | | | | | | 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.
* r20014: Ouch.... "res" is not a flag here, it is the service number...Volker Lendecke2007-10-101-1/+0
|
* r20006: Convert the registry shares to use the new APIVolker Lendecke2007-10-101-48/+31
|
* r19991: Sorry for this 2000-liner...Volker Lendecke2007-10-101-6/+5
| | | | | | | | | | | | | | The main thing here is a rewrite of srv_winreg_nt.c. The core functionality has moved to registry/reg_api.c which is then usable by the rest of Samba as well. On that way it fixes creating keys with more than one element in the path. This did not work before. Two things that sneaked in (sorry :-) is the change of some routines from NTSTATUS to WERROR the removed "parent" argument to regkey_open_internal. Volker
* r19963: Add 'registry shares = yes' and registry key security descriptors.Volker Lendecke2007-10-101-0/+113
|
* r19705: Fix blocker bug for 3.0.23d - find_forced_group couldJeremy Allison2007-10-101-0/+9
| | | | | return an uninitialized sid. Jeremy.
* r19000: Merge the max tcon check from 3_0_23. Thanks to James Peach that ↵Volker Lendecke2007-10-101-0/+5
| | | | | | | | this was not done in the 3_0 tree. Volker
* r18787: Fix the strlen_m and strlen_m_term code by mergingJeremy Allison2007-10-101-1/+10
| | | | | | in (and using elsewhere) next_codepoint from Samba4. Jerry please test. Jeremy.
* r18271: Big change:Gerald Carter2007-10-101-1/+1
| | | | | | | | | | | * autogenerate lsa ndr code * rename 'enum SID_NAME_USE' to 'enum lsa_SidType' * merge a log more security descriptor functions from gen_ndr/ndr_security.c in SAMBA_4_0 The most embarassing thing is the "#define strlen_m strlen" We need a real implementation in SAMBA_3_0 which I'll work on after this code is in.
* r17402: Added lookup_name_smbconf() to be called when lookingJeremy Allison2007-10-101-2/+2
| | | | | | | | | up names from smb.conf. If the name is unqualified it causes the lookup to be done in WORKGROUP\name, then "Unix [users|groups]"\name rather than searching the domain. Should fix the problems with "force user" selecting a domain user by preference. Jeremy.
* r17096: Simplify share_access_check a bit: It takes the sharename instead of ↵Volker Lendecke2007-10-101-2/+7
| | | | | | | | | the snum, and the decision which token to use (conn or vuser) does not really belong here, it is better done in the two places where this is called. Volker
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-20/+43
| | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
* r15601: Fix segfaults with 'security=share' and 'guest only = yes'Volker Lendecke2007-10-101-10/+28
| | | | Volker
* r15555: Make "change notify timeout" a per-share parameter - usedJeremy Allison2007-10-101-0/+3
| | | | | | | | | | | when there's no kernel or FAM change notify. If set to zero this will turn off change notify for the share except when we ourselves change something (renames / deletes etc. ). Designed to help on large directory shares where a new changenotify is issued between each delete. This will be fixed correctly when we move to internal change notify (eg. back-port Samba4 changenotify). Jeremy.
* r15088: Remove all time() and gettimeofday() calls out of the mainlineJeremy Allison2007-10-101-3/+2
| | | | | | 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-3/+3
| | | | macro which sets the freed pointer to NULL.