summaryrefslogtreecommitdiffstats
path: root/source3/smbd/service.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:smbd: use new simplified snb_signing code in the serverStefan Metzmacher2009-03-231-1/+1
| | | | | | | | | We keep the seqnum/mid mapping in the smb_request structure. This also moves one global variable into the smbd_server_connection struct. metze
* Fix bug #6155 - "force group" is no longer working as expected.Jeremy Allison2009-03-031-0/+8
| | | | | | | We need to store the "force group" uid separately from the conn->server_info token as we need to apply it separately also. Volker PLEASE CHECK ! Jeremy.
* s3:smbd: move all globals and static variables in globals.[ch]Stefan Metzmacher2009-01-081-2/+1
| | | | | | The goal is to move all this variables into a big context structure. metze
* smbd: prevent access to root filesystem when connecting with empty service nameMichael Adam2009-01-051-0/+4
| | | | | | | | This only applies to a setup with "registry shares = yes" Michael (cherry picked from commit 288fa94ac7cfdf7457b5098c33fc840bed3d5410) (cherry picked from commit e85526b184e66f86b7faa9d0a37288a09c12c19e)
* Remove unused make_connection_with_chdir()Volker Lendecke2008-11-241-32/+0
|
* Remove smb_np_structVolker Lendecke2008-10-131-4/+3
|
* Fix a debug messageVolker Lendecke2008-06-261-1/+1
| | | | (This used to be commit 8dd94d448bc5ad067024c56c6ef498bc88a396b2)
* Wrap the unix token info in a unix_user_token in auth_serversupplied_infoVolker Lendecke2008-06-191-6/+6
| | | | | No functional change, this is a preparation for more current_user ref removal (This used to be commit dcaedf345e62ab74ea87f0a3fa1e3199c75c5445)
* Re-enable the evil "aio write behind" parameter.Jeremy Allison2008-05-261-0/+2
| | | | | Jeremy. (This used to be commit 5d22ca00bcdf49dcb35468400ac8cc3c57808d0d)
* Remove some references to get_current_username() and current_user_infoVolker Lendecke2008-05-251-10/+10
| | | | (This used to be commit 344d69f95e217d16213eaa6b53141af6ab459708)
* Remove the reference to current_user_info from share_access.cVolker Lendecke2008-05-251-0/+1
| | | | | This required to pass around the domain a bit (This used to be commit 17b0db20d28d1b737c5e86b78106657e8ca5ce9c)
* Remove "user" from connection_structVolker Lendecke2008-05-101-10/+15
| | | | (This used to be commit 368454a27cb53a408ec416cbf37235b304592fb5)
* Remove the unix token info from connection_structVolker Lendecke2008-05-101-7/+10
| | | | (This used to be commit 2834dacc8d49f77fe55fb5d7e3eb2dda431d1d3d)
* Replace nt_user_token with server_info in connection_structVolker Lendecke2008-05-101-24/+4
| | | | (This used to be commit a3738aef59e97d4533010b048534d937d36c0950)
* find_forced_group can directly change the token in server_infoVolker Lendecke2008-05-101-72/+16
| | | | | | Now that we have a token that is correctly set up with gids already, this saves manual translation of the SIDs to GIDs. (This used to be commit 6136a6d9d7301c65f37e2bf485681138cddd8bd2)
* Add an error return in find_forced_group()Volker Lendecke2008-05-101-0/+5
| | | | (This used to be commit 93ce0705c14f222bda3e6204f4b54ba1893f33e1)
* Do not unnecessarily mess with the results in find_forced_group()Volker Lendecke2008-05-101-3/+0
| | | | (This used to be commit 6d9860d09b54c61625f011c2d56d710aa59d7686)
* Replace find_forced_user by a direct call to make_serverinfo_from_usernameVolker Lendecke2008-05-101-37/+26
| | | | (This used to be commit 7991e6764b4187ba86802569dfdc5816e6137f78)
* Simplify make_connection_snum: Copy connection_struct info from server_infoVolker Lendecke2008-05-101-13/+11
| | | | (This used to be commit 5aa3cdf355c179d89c2703f528919194ab084337)
* Add "server_info" to connection_structVolker Lendecke2008-05-101-97/+23
| | | | | | This will replace all the user identity stuff in connection_struct, for now it is just a source where the other fields in connection_struct are filled from. (This used to be commit 0f53f9e7db9f99f239c4d0950452d0e2cde2ae8b)
* Remove unused "force_group" from connection_structVolker Lendecke2008-05-101-1/+0
| | | | (This used to be commit 03944f8d8934cff74e19fc036f7611c1491e0d57)
* "status" -> "pstatus" in make_connection_snumVolker Lendecke2008-05-101-42/+38
| | | | (This used to be commit 3ce395e61e931a77c5d2f52f39c7e3f71a9605a9)
* Add create_connection_server_info() -- not used yetVolker Lendecke2008-05-101-0/+76
| | | | (This used to be commit 50bf075f7556fd09e0081175c31a5020a8eaf4d6)
* Use talloc_tos() for a temporary getpwnam_alloc in make_connection_snumVolker Lendecke2008-05-071-1/+1
| | | | (This used to be commit 1843ea64ab1df5ced5926aedbeb27c8320b0c70b)
* Use talloc_stackframe() in find_forced_groupVolker Lendecke2008-05-071-11/+5
| | | | (This used to be commit 27a9bbc645416265eebdfc866925855021bd407c)
* Remove "userdom_struct user" from "struct user_struct"Volker Lendecke2008-05-051-4/+5
| | | | (This used to be commit 420de035237bb08bc470c9eb820f3da2edaa6805)
* Remove "guest" from "struct user_struct"Volker Lendecke2008-05-051-3/+3
| | | | (This used to be commit 570a6b80feb5b0dc23213ba936c721e766cd4818)
* Remove the unix token info from "struct user_struct"Volker Lendecke2008-05-051-2/+2
| | | | (This used to be commit aa2299d42adf4d27e707ac755e07be70d0af1bb4)
* Remove "nt_user_token" from "struct user_struct"Volker Lendecke2008-05-051-3/+3
| | | | (This used to be commit 51d5d512f28eadc74eced43e5e7f4e5bdff3ff69)
* Remove connection_struct->mem_ctx, connection_struct is its own parentVolker Lendecke2008-05-051-6/+6
| | | | (This used to be commit 559180f7d30606d1999399d954ceedc798c669a4)
* Add a debug message.Michael Adam2008-03-121-0/+1
| | | | | Michael (This used to be commit a39807044879ad9df7614e010db6ea16b51000a0)
* registry shares: prevent creating regular share called "global".Michael Adam2008-03-111-0/+4
| | | | | | | | This is a first quick fix. Registry shares should be rewritten to use libnet_conf. Michael (This used to be commit 71bd0bd0ea018e8c5033bbf904333c596330855a)
* 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! (This used to be commit 3ad798d803b3b023533bb48e6993885f22b96095)
* 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 (This used to be commit eec3248ef90fbfe6e048394c875173b164a8b439)
* Make use of talloc_pool in the main codepaths. Remove the sub-contexts.Jeremy Allison2008-01-091-7/+1
| | | | | Jeremy. (This used to be commit bc932b8ad4396f76b71c43efe9a6346f89c3632c)
* 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. (This used to be commit d241bfa57729bb934ada6beabf842a2ca7b4f8a2)
* 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. (This used to be commit de3c5b808a941ac8e9ebe7169536d8290067eef5)
* Remove Get_Pwnam and its associated static variableVolker Lendecke2007-12-191-3/+8
| | | | | All callers are replaced by Get_Pwnam_alloc (This used to be commit 735f59315497113aebadcf9ad387e3dbfffa284a)
* Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke2007-12-151-2/+2
| | | | (This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
* Always define PATH_MAX. Makes code simpler (removesJeremy Allison2007-11-101-4/+0
| | | | | | a bunch of #defines). Remove pstring from msdfs.c. Jeremy. (This used to be commit e203ba22275320808bc11b17361ad1f2d5b0b897)
* Fix the build when realpath doesn't take nullJeremy Allison2007-11-101-1/+1
| | | | | | as a last arg. Jeremy. (This used to be commit 63125225383f512f43002b9a92569d4b8f1b63bd)
* Remove pstring from service.c.Jeremy Allison2007-11-101-71/+109
| | | | | Jeremy. (This used to be commit cdd9e5cc8366cf0be4dc31f793fc0e5be6f63c3e)
* Make load_registry_service return the share numberVolker Lendecke2007-11-051-1/+0
| | | | (This used to be commit 934964c90f39d588d2399f10e3738ab1b4e01290)
* 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. (This used to be commit 963fc7685212689f02b3adcc05b4273ee5c382d4)
* I can't get away without a 'length' arg. :-).Jeremy Allison2007-11-031-2/+4
| | | | | Jeremy. (This used to be commit 95d01279a5def709d0a5d5ae7224d6286006d120)
* Stop get_peer_addr() and client_addr() from using globalJeremy Allison2007-11-031-2/+4
| | | | | | statics. Part of my library cleanups. Jeremy. (This used to be commit e848506c858bd16706c1d7f6b4b032005512b8ac)
* 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. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter2007-10-101-12/+6
| | | | (This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
* 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. (This used to be commit 7f0db75fb0f24873577dcb758a2ecee74fdc4297)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)