summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
* Fix memleaks in chain_reply for async requestsVolker Lendecke2009-02-071-0/+2
|
* Convert api_RNetGroupEnum to use samr instead of pdbVolker Lendecke2009-02-071-30/+81
|
* Close samr_handle if open_domain failedVolker Lendecke2009-02-071-0/+1
|
* Don't try and delete a default ACL from a file.Günter Kukkukk2009-02-051-4/+8
|
* Fix bug #Bug 6090 renaming or deleting a "not matching/resolving" symlink is ↵Jeremy Allison2009-02-043-30/+88
| | | | | | | | | | failing. Reported by Kukks. Make sure we correctly use LSTAT in all cases where POSIX pathnames are being used. This matters when dealing with symlinks pointing to invalid paths being renamed or deleted not all deletes and renames are done via an nt_create open. Jeremy.
* Fix bug #6082 - smbd_gpfs_getacl failed: Windows client can´t rename or ↵Jeremy Allison2009-02-022-18/+49
| | | | | | | | | delete file This fixes the generic rename/delete problem for 3.3.0 and above. Fixed slightly differently to discussions, user viewable modified ACLs are not a good idea :-). Jeremy.
* Add two new parameters to control how we verify kerberos tickets. Removes ↵Dan Sledz2009-02-012-3/+3
| | | | | | | | | | | | | | | | | | | | | | | lp_use_kerberos_keytab parameter. The first is "kerberos method" and replaces the "use kerberos keytab" with an enum. Valid options are: secrets only - use only the secrets for ticket verification (default) system keytab - use only the system keytab for ticket verification dedicated keytab - use a dedicated keytab for ticket verification. secrets and keytab - use the secrets.tdb first, then the system keytab For existing installs: "use kerberos keytab = yes" corresponds to secrets and keytab "use kerberos keytab = no" corresponds to secrets only The major difference between "system keytab" and "dedicated keytab" is that the latter method relies on kerberos to find the correct keytab entry instead of filtering based on expected principals. The second parameter is "dedicated keytab file", which is the keytab to use when in "dedicated keytab" mode. This keytab is only used in ads_verify_ticket.
* Convert api_RNetUserEnum to use the srv_samr_nt.c directlyVolker Lendecke2009-02-011-26/+77
| | | | | | | This is a sample for other accesses to pdb to go via samr. The goal is to access passdb only via srv_samr_nt.c. If that is done, then we can easily swap in another samr implementation like for example samba4's via a unix domain socket.
* Fix nonempty blank linesVolker Lendecke2009-02-011-58/+57
|
* Just for fun: Move some bytes from bss to textVolker Lendecke2009-02-012-2/+2
|
* Make reply_pipe_read_andx asyncVolker Lendecke2009-01-311-13/+57
|
* Make reply_pipe_write asyncVolker Lendecke2009-01-311-13/+48
|
* Make reply_pipe_write_and_X asyncVolker Lendecke2009-01-311-20/+52
|
* Make-np_write-handle-0-byte-writes-as-NT_STATUS_OKVolker Lendecke2009-01-311-43/+27
|
* Convert api_rpc_trans_reply to async np_*Volker Lendecke2009-01-311-29/+119
|
* make send_file_readbraw staticVolker Lendecke2009-01-311-6/+6
|
* Remove the global variable "chain_size"Volker Lendecke2009-01-314-15/+31
|
* Upgrade POSIX inheritance storage to a new format (version 2). StoresJeremy Allison2009-01-291-200/+360
| | | | | the Windows ACL type and flags if "map acl inherit" is set. Jeremy.
* s3: Add a new SMB_VFS_GET_ALLOC_SIZE vfs operationTim Prouty2009-01-293-43/+17
| | | | | This allows module implementors to customize what allocation size is returned to the client.
* s3:smbd: make smbd_open_one_socket() staticMichael Adam2009-01-291-3/+3
| | | | Michael
* s3:smbd: ignore open_socket_in() failuresStefan Metzmacher2009-01-291-1/+4
| | | | | | | This restores the pre e0232934fbf69a9e72de1d9844b14d70b34a2d6a behavior. metze
* s3:smbd: wait for new connection via fd eventsStefan Metzmacher2009-01-271-211/+227
| | | | metze
* s3:smbd: make mdns registration event driven.Stefan Metzmacher2009-01-272-125/+108
| | | | metze
* s3:smbd: make inetd code path more clearStefan Metzmacher2009-01-271-24/+20
| | | | metze
* s3:smbd: make kernel oplocks event drivenStefan Metzmacher2009-01-276-201/+33
| | | | | | And use signal events for Linux oplocks. metze
* s3:smbd: remove pointless respond_to_all_remaining_local_messages() functionStefan Metzmacher2009-01-272-27/+0
| | | | | | | This the process_kernel_oplock() function never response to messages, it only generates messages to ourself. metze
* s3:smbd: convert aio to use tevent_signalStefan Metzmacher2009-01-273-104/+52
| | | | metze
* s3:smbd: use signal events for SIGTERM, SIGHUP and SIGCHLDStefan Metzmacher2009-01-274-96/+102
| | | | metze
* s3:smbd: move all code that handles a client connection into smbd_process()Stefan Metzmacher2009-01-272-218/+218
| | | | metze
* s3:smbd: we should setup the client socket in the same way in all code pathesStefan Metzmacher2009-01-271-21/+15
| | | | | | We should behave the same in inetd, interactive and deamon modes. metze
* s3:namecache: remove unused namecache_shutdown() functionStefan Metzmacher2009-01-271-2/+0
| | | | metze
* Fix chain_reply for pipe readsVolker Lendecke2009-01-251-1/+11
| | | | | | | | The caller might have over-allocated reply->outbuf. Deal with that. Sorry, Günther, for giving you so much pain ... Volker
* Extend NTIMES to allow setting create_timetodd stecher2009-01-234-69/+97
| | | | | | | | | 1) Add in smb_file_time struct to clarify code and make room for createtime. 2) Get and set create time from SMB messages. 3) Fixup existing VFS modules + examples Some OS'es allow for the setting of the birthtime through kernel interfaces. This value is generically used for Windows createtime, but is not settable in the code today.
* Fix logic error in try_chown - we shouldn't arbitrarily chownJeremy Allison2009-01-221-6/+9
| | | | | to ourselves unless that was passed in. Jeremy.
* Second part of the attemt to fix #4308 - Excel save operation corrupts file ↵Jeremy Allison2009-01-221-131/+144
| | | | | | | | ACLs. If the chown succeeds then the ACL set should also. Ensure this is the case (refactor some of this code to make it simpler to read also). Jeremy.
* Another attempt to fix bug #4308 - Excel save operation corrupts file ACLs.Jeremy Allison2009-01-221-25/+4
| | | | | | | | | | | | | | | | | | | | Simo is completely correct. We should be doing the chown *first*, and fail the ACL set if this fails. The long standing assumption I made when writing the initial POSIX ACL code was that Windows didn't control who could chown a file in the same was as POSIX. In POSIX only root can do this whereas I wasn't sure who could do this in Windows at the time (I didn't understand the privilege model). So the assumption was that setting the ACL was more important (early tests showed many failed ACL set's due to inability to chown). But now we have privileges in smbd, and we must always fail an ACL set when we can't chown first. The key that Simo noticed is that the CREATOR_OWNER bits in the ACL incoming are relative to the *new* owner, not the old one. This is why the old user owner disappears on ACL set - their access was set via the USER_OBJ in the creator POSIX ACL and when the ownership changes they lose their access. Patch is simple - just ensure we do the chown first before evaluating the incoming ACL re-read the owners. We already have code to do this it just wasn't rigorously being applied. Jeremy.
* s3:smbd: we don't need to call message_dispatch() anymore it's event ↵Stefan Metzmacher2009-01-222-26/+2
| | | | | | triggered now metze
* s3:smbd: restructure kernel oplocks codeStefan Metzmacher2009-01-226-136/+117
| | | | | | | | This converts the irix oplocks code to use a fd event and removes the last special case for file descriptors for the main sys_select(). metze
* s3: always call run_events() before and after sys_select()Stefan Metzmacher2009-01-222-10/+12
| | | | | | And always setup the fd events. metze
* "userdom_struct" does not need "full_name" anymore -- unusedVolker Lendecke2009-01-202-3/+0
|
* Remove some unused codeVolker Lendecke2009-01-201-3/+0
|
* Remove some smb fsp knowledge from rpc_server/Volker Lendecke2009-01-203-8/+61
| | | | np_open/read/write don't have to know about files_struct
* s3:smbd: call message_dispatch() before processing incoming PDUsStefan Metzmacher2009-01-201-0/+6
| | | | | | | This is a hack to fix races which happen with the RAW-RENAME and RAW-OPLOCK tests. We should try to remove it later. metze
* s3:cluster: fix ctdb ipv6 supportStefan Metzmacher2009-01-161-3/+1
| | | | | | | | | | | | | | | We need to use CTDB_CONTROL_TCP_CLIENT instead of CTDB_CONTROL_TCP_ADD. CTDB_CONTROL_TCP_CLIENT has support for 2 modes in newer ctdb versions: - with struct ctdb_control_tcp it only supports ipv4. - with struct ctdb_control_tcp_addr it supports ipv4 and ipv6. You need new header files which defines struct ctdb_control_tcp_addr, but at runtime it should be fine to work against older ctdb versions (<= 1.0.68). metze
* remove the old chain_reply codeVolker Lendecke2009-01-161-214/+4
|
* Correctly calculate the offset for read&xVolker Lendecke2009-01-163-8/+36
|
* Add a new implementation of chain_replyVolker Lendecke2009-01-162-6/+217
| | | | | | This the global variable "orig_inbuf" in the old chain_reply code. This global variable was one of the reasons why we had the silly restriction to not allow async requests within a request chain.
* s3:put the browse list into cache_dir, not lock_dir.Michael Adam2009-01-161-2/+2
| | | | Michael
* s3: make better use of ccache by not including version.h in every C-file.Michael Adam2009-01-153-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | version.h changes rather frequently. Since it is included via includes.h, this means each C file will be a cache miss. This applies to the following situations: * When building a new package with a new Samba version * building in a git branch after calling mkversion.sh after a new commit (i.e. virtually always) This patch improves the situation in the following way: * remove inlude "version.h" from includes.h * Use samba_version_string() instead of SAMBA_VERSION_STRING in files that use no other macro from version.h instead of SAMBA_VERSION_STRING. * explicitly include "version.h" in those files that use more macros from "version.h" than just SAMBA_VERSION_STRING. Michael
* Only call sendfile_short_read() if we need it.Jeremy Allison2009-01-131-2/+6
| | | | Jeremy.