summaryrefslogtreecommitdiff
path: root/source3/include
AgeCommit message (Collapse)AuthorFilesLines
2009-06-17s3: Plumb smb_filename from create_file all of the way down to fd_openTim Prouty1-3/+4
I used the smb_filename struct everywhere that was feasible for the first pass. There are still some places in this path that need to be changed to use smb_filename, but this is a good start. I also: - Removed fname/path arguments from a few functions that weren't really using them. - Added a utility function for detecting whether an smb_filename is a stream.
2009-06-12s3: Plumb smb_filename through SMB_VFS_CREATE_FILETim Prouty3-13/+11
2009-06-12s3: Add smb_filename utility functions and fix a bug in copy_smb_filenameTim Prouty1-0/+9
2009-06-12Add debugging facility to tldap, analogous to teventVolker Lendecke1-0/+15
2009-06-10s3: Prepare the first set of SMB_VFS_CREATE_FILE callers to take an ↵Tim Prouty1-4/+5
smb_filename struct Some of the callers required minimal changes, while others (copy_internals) required significant changes. The task is simplified a little bit because we are able to do operations and checks on the base_name when a stream isn't used. This patch should cause no functional changes. Volker, Jeremy: Please check
2009-06-10s3: Add utility function for copying an smb_filename structTim Prouty1-0/+3
2009-06-10s3: Remove the now unused CFF_DOS_PATH flagTim Prouty1-5/+0
All paths are now unix paths, making this flag useless. This flags argument is now unused and can be safely removed.
2009-06-10Make ctemp async. Fix the test to pass against W2K3.Jeremy Allison1-1/+13
Jeremy.
2009-06-08Add tlda_add_mod_strVolker Lendecke1-0/+2
2009-06-08Pass a talloc_ctx to pdb_enum_aliasmemVolker Lendecke2-4/+5
2009-06-08Set SIGRTMIN to NSIGTimur I. Bakeyev1-1/+1
In the includes we define SIGRTMIN to 32 if it's not defined already. This value could be fairly low and it's better to use NSIG(number of defined signals) as the lower mark for the available signals. We have similar defenition in the source3/smbd/aio.c, which can be safely removed, as it comes from includes.h then. With regards, Timur Bakeyev. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-06-07Add tldap_pull_uint32Volker Lendecke1-0/+2
2009-06-07req_del and req_abandon are ASN1_APPLICATION_SIMPLEVolker Lendecke1-2/+4
Ok, ASN1_APPLICATION everywhere was too easy :-)
2009-06-07Fix after making tldap independent of ldap.hVolker Lendecke1-21/+24
2009-06-06Attempt to fix the build without system-ldap.Volker Lendecke1-1/+1
I really tried, but I knew I would miss something... :-)
2009-06-06Add some samba-style tldap utility functionsVolker Lendecke2-0/+54
2009-06-06Add the early start of an async ldap libraryVolker Lendecke2-0/+238
There's a lot of things this does not do yet: For example it does not parse the reply blob in the sasl bind, it does not do anything with controls yet, a lot of the ldap requests are not covered yet. But it provides a basis for me to play with a pdb_ads passdb module.
2009-06-05Make cli_ftruncate async. Also add a simple test.Jeremy Allison1-1/+7
Jeremy.
2009-06-05s3:smbd: implement smbd_smb2_request_error/done() as macros on top of the ↵Stefan Metzmacher1-3/+0
_ex() function metze
2009-06-04Change smbd_smb2_request_error() to add a __location__.Jeremy Allison1-0/+3
This allows quick identification of smb2 parsing errors. Jeremy.
2009-06-03s3:smbd: make make_connection_snum() non staticStefan Metzmacher1-0/+5
metze
2009-06-03s3:smbd: move tcon specific globals to struct smbd_server_connectionStefan Metzmacher1-9/+12
metze
2009-06-03s3:smbd: move more session specific globals to struct smbd_server_connectionStefan Metzmacher1-15/+24
metze
2009-06-03s3:smbd: move negprot related globals to struct smbd_server_connectionStefan Metzmacher1-1/+2
metze
2009-06-03s3:smbd: move pending_auth_data list to struct smbd_server_connectionStefan Metzmacher1-9/+0
metze
2009-06-02Add SMB_VFS_CONNECTPATH operationVolker Lendecke2-0/+8
This is required for the shadow_copy2 module and "wide links = no". The file system snapshots by nature are typically outside of share directory. So the REALPATH result fails the wide links = no test.
2009-05-31Fix some nonempty blank linesVolker Lendecke1-4/+4
2009-05-30libwbclient: Add async call framework.Kai Blin1-75/+0
2009-05-29Make cli_nt_delete_on_close() async.Jeremy Allison1-1/+7
Jeremy.
2009-05-29s3:add prototype of map_nt_error_from_wbcErr() to proto.hMichael Adam1-0/+1
Michael
2009-05-29Add smbldap_talloc_single_blob()Volker Lendecke1-0/+3
2009-05-29s3 async wbclient: Change license to LGPLv3+Volker Lendecke1-8/+12
2009-05-29s3 wbc_async: Fix copyright notice cut&paste error.Kai Blin1-1/+1
Volker created all these prototypes, I just created the file and moved them over. Signed-off-by: Kai Blin <kai@samba.org>
2009-05-29Consolidate create/delete account paths in pdbeditSimo Sorce1-1/+1
Use common paths like for smbpasswd, so that all utilities behave the same way. As for smbpasswd this changes the behavior of pdbedit to create/delete unix users is the add/delete user scripts are provided, or ldapsam:editposix is configured. Signed-off-by: Günther Deschner <gd@samba.org>
2009-05-29util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.Günther Deschner1-2/+0
Guenther
2009-05-28Make cli_posix_chown()/cli_posix_chmod() async.Jeremy Allison1-2/+18
Jeremy.
2009-05-28Make cli_posix_stat() async.Jeremy Allison1-1/+9
Jeremy.
2009-05-28Make getfacl async.Jeremy Allison1-1/+13
Jeremy.
2009-05-28Fix some nonempty blank linesVolker Lendecke1-17/+17
2009-05-28Make sid_binstring & friends take a talloc contextVolker Lendecke1-3/+3
2009-05-28Add smbldap_pull_sidVolker Lendecke1-0/+2
2009-05-27Add cli_posix_readlink() and a torture test for it.Jeremy Allison1-0/+9
Jeremy.
2009-05-27Add aync POSIX hardlink and symlink and torture test for them.Jeremy Allison1-2/+18
Missing call cli_readlink() is next. Jeremy.
2009-05-27s3: Allow child processes to exit gracefully if we are out of fdsMarc VanHeyningen1-1/+1
When we run out of file descriptors for some reason, every new connection forks a child that immediately panics causing smbd to coredump. This seems unnecessarily harsh; with this code change we now catch that error and merely log a message about it and exit without the core dump. Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-05-27Gna, how long do I program in C now??? :-)Volker Lendecke1-2/+2
2009-05-26Attempt to fix the build on HP/UXVolker Lendecke1-0/+10
2009-05-26Attempt to fix the build on NetBSDVolker Lendecke1-0/+3
2009-05-26Revert "s3: fix build on systems with struct stat member st_flags"Björn Jacke1-3/+0
for a cleaner and more complete patch that Volker has in the queue :-)
2009-05-26s3: fix build on systems with struct stat member st_flagsBjörn Jacke1-0/+3
2009-05-26Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke3-19/+31
This patch introduces struct stat_ex { dev_t st_ex_dev; ino_t st_ex_ino; mode_t st_ex_mode; nlink_t st_ex_nlink; uid_t st_ex_uid; gid_t st_ex_gid; dev_t st_ex_rdev; off_t st_ex_size; struct timespec st_ex_atime; struct timespec st_ex_mtime; struct timespec st_ex_ctime; struct timespec st_ex_btime; /* birthtime */ blksize_t st_ex_blksize; blkcnt_t st_ex_blocks; }; typedef struct stat_ex SMB_STRUCT_STAT; It is really large because due to the friendly libc headers playing macro tricks with fields like st_ino, so I renamed them to st_ex_xxx. Why this change? To support birthtime, we already have quite a few #ifdef's at places where it does not really belong. With a stat struct that we control, we can consolidate the nanosecond timestamps and the birthtime deep in the VFS stat calls. At this moment it is triggered by a request to support the birthtime field for GPFS. GPFS does not extend the system level struct stat, but instead has a separate call that gets us the additional information beyond posix. Without being able to do that within the VFS stat calls, that support would have to be scattered around the main smbd code. It will very likely break all the onefs modules, but I think the changes will be reasonably easy to do.