summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2008-05-06Fix a memleak introduced after refactoring "struct user_struct"Volker Lendecke1-1/+1
(This used to be commit e70b5b762234f1733f150bdfbda7b208a8139990)
2008-05-06Remove some unused codeVolker Lendecke1-23/+0
(This used to be commit 87383a4605ab99d32fccae7793dc5292b8f3e25b)
2008-05-05Remove "userdom_struct user" from "struct user_struct"Volker Lendecke6-38/+53
(This used to be commit 420de035237bb08bc470c9eb820f3da2edaa6805)
2008-05-05Fix typoVolker Lendecke1-1/+1
(This used to be commit 8047a1991a09191fec254815f3bfc85a2c36674a)
2008-05-05Remove "session_key" from "struct user_struct"Volker Lendecke2-24/+14
This one took a bit -- I hope I covered all data paths (This used to be commit 74c88a44422f88d6e2f2cdbfdfa0bafe0dbe06c4)
2008-05-05Remove "guest" from "struct user_struct"Volker Lendecke4-9/+8
(This used to be commit 570a6b80feb5b0dc23213ba936c721e766cd4818)
2008-05-05Remove the unix token info from "struct user_struct"Volker Lendecke5-35/+19
(This used to be commit aa2299d42adf4d27e707ac755e07be70d0af1bb4)
2008-05-05Remove "nt_user_token" from "struct user_struct"Volker Lendecke3-13/+11
(This used to be commit 51d5d512f28eadc74eced43e5e7f4e5bdff3ff69)
2008-05-05Remove "logon_script" from "struct user_struct"Volker Lendecke2-16/+8
(This used to be commit b36fd84186a656f86e4cfb9166fc0ecbffb422cb)
2008-05-05Remove unix_homedir from struct user_structVolker Lendecke1-37/+35
This makes pdb_get_unix_homedir unused. I wonder if that was ever really used... (This used to be commit 36bfd32f1ff878e827db91e9bf233719ecca5b01)
2008-05-05Remove "homedir" from "struct user_struct"Volker Lendecke2-8/+12
(This used to be commit 41f9afd62d8cc6067582d452f3d53a5c67253b69)
2008-05-05Revert "Fix allocation of conn->vuid_cache entries"Volker Lendecke1-3/+3
This reverts commit 50c891d3dfb75c9f607f7ad2a578aa3ba5d91988. There's more to this code -- sorry for the spam (This used to be commit 6e0e0cb8dd6f57de36c041e2ba4b82feeb357ce8)
2008-05-05Revert "Second half of 50c891d3: Correctly clear the vuid cache"Volker Lendecke1-1/+1
This reverts commit 0aea404b0a83736ba2884cc7cf00cd797aab1f56. (This used to be commit fa39f47f5fc2df0f1a59705e30a799518c353b45)
2008-05-05Second half of 50c891d3: Correctly clear the vuid cacheVolker Lendecke1-1/+1
(This used to be commit 0aea404b0a83736ba2884cc7cf00cd797aab1f56)
2008-05-05Fix allocation of conn->vuid_cache entriesVolker Lendecke1-3/+3
With the old code, if more than VUID_CACHE_SIZE elements were used all new entries ended up in slot 0. With this checkin we do cycle. Jeremy, please revert if the old behaviour was intentional (This used to be commit 50c891d3dfb75c9f607f7ad2a578aa3ba5d91988)
2008-05-05Fix dfs_Enum: In form_junctions, correctly check for malloc failureVolker Lendecke1-1/+1
(This used to be commit 1b1614c3261e1e93a2cad1f1063e28cbbb13f434)
2008-05-05Remove connection_struct->mem_ctx, connection_struct is its own parentVolker Lendecke9-85/+66
(This used to be commit 559180f7d30606d1999399d954ceedc798c669a4)
2008-05-02Remove the "stat_open()" function, flag, and all associated code. It was onlyJeremy Allison5-142/+7
being (correctly) used in the can_read/can_write checks for hide unreadable/unwritable and this is more properly done using the functions in smbd/file_access.c. Preparing to do NT access checks on all file access. Jeremy. (This used to be commit 6bfb06ad95963ae2acb67c4694a98282d3b29faa)
2008-05-02Rename inherit_access_acl() -> inherit_access_posix_acl() to make use clear.Jeremy Allison3-7/+7
Jeremy. (This used to be commit b739c7f1cdb2b19a380b06681b00dcf490d788a9)
2008-05-02Move directory_has_default_acl() to file_access.c, belongsJeremy Allison2-25/+27
there as it no longer uses explicit POSIX ACL calls. Jeremy. (This used to be commit ac1eac9b0d07b7b3d341c06ef1a8fd8f3c05a618)
2008-05-01Start to ensure we use the NT ACL interface, keep the POSIXJeremy Allison1-21/+46
ACL interface inside the VFS modules. Will help when moving to storing NT ACLs. Jeremy. (This used to be commit b08ea48f883d1b000f6364c1ff8f62bc25741244)
2008-04-28Fix bug found by Igor Mammedov <niallain@gmail.com> where we areJeremy Allison1-14/+42
not returning a directory value for a QPATHINFO on a msdfs link with a non-dfs path. Windows does this. Jeremy. (This used to be commit fbd99071f99cadd21aa2b8971f745a323a9cda13)
2008-04-23Fix CLEAR_IF_FIRST handling of messages.tdbVolker Lendecke1-2/+3
We now open messages.tdb even before we do the become_daemon. become_daemon() involves a fork and an immediate exit of the parent, thus the parent_is_longlived argument must be set to false in this case. The parent is not really long lived :-) (This used to be commit 4f4781c6d17fe2db34dd5945fec52a7685448aec)
2008-04-21Remove redundant parameter fd from SMB_VFS_CLOSE().Michael Adam1-1/+1
Now all those redundant fd's have vanished from the VFS API. Michael (This used to be commit 14294535512a7f191c5008e622b6708e417854ae)
2008-04-21Move the posix pending close functionality down into the VFS layer.Michael Adam1-1/+9
This hides the pending close fds from the outside. Call order of SMB_VFS_CLOSE is reversed. Originally, it was: fd_close -> fd_close_posix -> SMB_VFS_CLOSE -> close And now it is: fd_close -> SMB_VFS_CLOSE -> fd_close_posix -> close This is in preparation of removing the fd parameter from the SMB_VFS_CLOSE function. But it is also the right place for the pending close calls anyways. Michael (This used to be commit 3cf56b124a2886c6260455bba4bf77d08e9a4f77)
2008-04-20Refactoring: Make struct rpc_pipe_client its own talloc parentVolker Lendecke1-1/+2
(This used to be commit a6d74a5a562b54f0b36934965f545fdeb1e8b34a)
2008-04-19Fix bug 5398Volker Lendecke1-3/+3
Thanks to Jason Mader for sending the compiler output :-) Volker (This used to be commit 7a57c2da1a6cc0fcea0b4d949c696219f1822694)
2008-04-18smbd: create the messaging conntext earlierStefan Metzmacher1-11/+16
metze (This used to be commit 658d8475336c4397e0dad341f216baf9e1eb6aaf)
2008-04-18smbd: call reinit_after_fork() in the needed placesStefan Metzmacher1-16/+6
metze (This used to be commit 425b3513a45cf98b53235470a3536be86d56d1c2)
2008-04-18smbd: merge "smbd:backgroundqueue=no" option from the v3-0-ctdb treeStefan Metzmacher1-2/+4
metze (This used to be commit 16d295d466eb18e3bccce6fb26d53012d5f2c3e8)
2008-04-14Remove two pointless else branchesVolker Lendecke1-7/+5
(This used to be commit ed343114cd0844a7fd14b45f95c0f43a6d172a42)
2008-04-14Fix some "ignoring asprintf result" warningsVolker Lendecke2-20/+21
(This used to be commit 155d62ddfd3584d44a493c2aa1ea7f096bcff432)
2008-04-14Use more error-prone form of testing dm_destroy_session() return code after ↵Alexander Bokovoy1-1/+1
discussing with Tridge (This used to be commit 4abdbad52e456764bca1b17ead04edee1e2a2a64)
2008-04-13registry: rename init_registry() to registry_init_full() for consistency.Michael Adam1-1/+1
Michael (This used to be commit 14d82708d4499b48830d3dd25a0133f00a39d030)
2008-04-13registry: change init_registry() to return WERROR instead of bool.Michael Adam1-1/+1
Michael (This used to be commit 0b196095dbbc29c796cb0742fe6e57a421e9596b)
2008-04-12dbwrap: wait for tdb2 change notifies in smbd, nmbd and winbinddStefan Metzmacher1-1/+5
metze (This used to be commit 64450cc1e441355aa8925b7183e90872eeab20b1)
2008-04-11Cleanup size_t return values in convert_string_allocateTim Prouty1-4/+3
This patch is the first iteration of an inside-out conversion to cleanup functions in charcnv.c returning size_t == -1 to indicate failure. (This used to be commit 59124382d2894a1b194b48dd82bc5f956959eb48)
2008-04-11Fix bug 5366Volker Lendecke1-1/+6
(This used to be commit 448a8fe6c15bc4e85149d1ae821f0ebc2e3edde5)
2008-04-08Fix the build of reply_setattrE().Günther Deschner1-2/+2
How ever could this compile ? Guenther (This used to be commit 02f5f35e5ed3b061cfd020d0b13014c72fced5f4)
2008-04-08Destroy DMAPI session when main smbd daemon exits.Alexander Bokovoy2-0/+33
DMAPI session is precious resource maintained at kernel level. We open one of them and use across multiple smbd daemons but once last of them exits, DMAPI session needs to be destroyed. There are some HSM implementations which fail to shutdown when opened DMAPI sessions left. Ensure we shutdown our session when it is really not needed anymore. This is what recommended by DMAPI specification anyway. (This used to be commit a0cefd44009d414fa00ec6e08c70d21b74acdbcb)
2008-04-07Rewrite the wrap checks to deal with gcc 4.x optimisations.Jeremy Allison3-101/+142
Karolin, please pull once Volker has reviewed. Thanks. Jeremy. (This used to be commit 09852899cadc48abe2f2651ecbceaf881198e648)
2008-04-07Remove unused variable.James Peach1-1/+0
(This used to be commit 3ed2c65bde0c2e5ad10cf777dae8a2d3e626a42c)
2008-04-07Fix Kerberos interop with Mac OS X 10.5 clients.Bill Ricker2-23/+33
Ignore optional req_flags. Use the Kerberos mechanism OID negotiated with the client rather than hardcoding OID_KERBEROS5_OLD. (This used to be commit 59a2bcf30fef14ecc826271862b645dd3a61cb48)
2008-04-07smbd: make it possible to change the write time delay for testingStefan Metzmacher1-1/+7
metze (This used to be commit df8c100c2b53575a0d425a2daf52e2d59904746a)
2008-04-07smbd: make it possible to disable get_file_infos() on searchesStefan Metzmacher3-14/+36
metze (This used to be commit 404a865a34c3a7c67131b3f99e92c11b2abe3e39)
2008-04-07locking: combine get_delete_on_close_flag() and get_write_time() into ↵Stefan Metzmacher3-14/+19
get_file_infos() This means we need to fetch the record only once. metze (This used to be commit 4130b873291d39e363184fe4e38dc1f24ebe5056)
2008-04-07smbd: implement the strange write time update logicStefan Metzmacher8-130/+235
We now never call file_ntimes() directly, every update is done via smb_set_file_time(). This let samba3 pass the BASE-DELAYWRITE test. The write time is only updated 2 seconds after the first write() on any open handle to the current time (not the time of the first write). Each handle which had write requests updates the write time to the current time on close(). If the write time is set explicit via setfileinfo or setpathinfo the write time is visible directly and a following close on the same handle doesn't update the write time. metze (This used to be commit 2eab212ea2e1bfd8fa716c2c89b2c042f7ba12ea)
2008-04-07locking: store the write time in the locking.tdbStefan Metzmacher5-12/+24
This is needed to implement the strange write time update logic later. We need to store 2 time timestamps to distinguish between the time the file system had before the first client opened the file and a forced timestamp update. metze (This used to be commit 6aaa2ce0eeb46f6735ec984a2e7aadde7a7f456d)
2008-04-02Fix MSDFS bug noticed by Ofir Azoulay <Ofir.Azoulay@expand.com>.Jeremy Allison1-30/+0
There is no reason to ensure the target host is ourselves, and this breaks MS clients in some cases. Jeremy. (This used to be commit c19fdf43d16ce9fba3e8e12e6192bac31837715e)
2008-04-01smbd: always close the base_fsp even if the real close returned an errorStefan Metzmacher1-4/+0
Otherwise we may end up with share mode entry without an open file. Volker, Jeremy: please check... metze (This used to be commit 547eacf6058d2bc5b41b266b70f8f4747aca4eae)