summaryrefslogtreecommitdiff
path: root/source3/include/proto.h
AgeCommit message (Collapse)AuthorFilesLines
2009-07-06s3: Plumb smb_filename through SMB_VFS_UNLINKTim Prouty1-1/+1
2009-07-06s3: Plumb smb_filename through SMB_VFS_RENAMETim Prouty1-2/+1
2009-07-05Add const to init_rpc_hdr_baVolker Lendecke1-1/+1
2009-07-05Remove "typedef struct ndr_syntax_id RPC_IFACE;"Volker Lendecke1-2/+3
2009-07-05Introduce null_ndr_syntax_idVolker Lendecke1-0/+1
2009-07-05Make check_bind_req static to rpc_server/srv_pipe.cVolker Lendecke1-2/+0
2009-07-04Add pdb_get_domain_infoVolker Lendecke1-0/+1
2009-07-03s3-spoolss: add rpccli_spoolss_getprinterdriver convenience wrapper.Günther Deschner1-0/+7
Guenther
2009-07-02s3:smbd: make change_notify_reply() more generic and hide send_nt_replies() ↵Stefan Metzmacher1-3/+9
behind a callback This prepares change notify support for SMB2. metze
2009-07-02s3:smbd: simplify the notify code a bit and always reply via ↵Stefan Metzmacher1-1/+3
change_notify_reply() -> send_nt_replies() metze
2009-06-30Fix bug #6496 - MS-DFS: cannot follow multibyte char link name.SATOH Fumiyasu1-1/+1
consumed_ucs is the number of bytes of the UCS2 path consumed not counting any terminating null. We need to convert back to unix charset and count again to get the number of bytes consumed from the incoming path.
2009-06-29Fix ndrdump to use a common setup_logging() APIAndrew Bartlett1-0/+1
By adding a new common setup_logging_stdout() API, we no longer need to abuse the ABI compatability between the different setup_logging() calls in Samba3 and Samba4's DEBUG() subsystems. The revert of 49a6d757b4d944cd22c91b2838beb83f04fbe1e9 works with this to fix bug 6211. Andrew Bartlett
2009-06-28Turn the pdb_rid_algorithm into a capabilities call that returns flagsVolker Lendecke1-1/+1
2009-06-27Add tstream_read_packetVolker Lendecke1-0/+10
2009-06-25s3: pass a valid stat into file_ntimes()Tim Prouty1-1/+1
file_ntimes() calls can_write_to_file() which expects a valid stat struct
2009-06-25s3 file_access: Convert some more functions over to use smb_filneameTim Prouty1-1/+2
2009-06-25s3: Change set_ea() and its callers to use smb_filenameTim Prouty1-1/+2
2009-06-25s3-netlogon: remove remaining netlogon init functions.Günther Deschner1-26/+0
Guenther
2009-06-25s3-netlogon: remove init_netr_SamInfo functions.Günther Deschner1-52/+0
Guenther
2009-06-25s3-netlogon: fix validation level 2 support in netr_SamLogon and friends.Günther Deschner1-0/+4
Guenther
2009-06-24s3: Plumb smb_filename through SMB_VFS_STAT and SMB_VFS_LSTATTim Prouty1-9/+12
This patch introduces two new temporary helper functions vfs_stat_smb_fname and vfs_lstat_smb_fname. They basically allowed me to call the new smb_filename version of stat, while avoiding plumbing it through callers that are still too inconvenient. As the conversion moves along, I will be able to remove callers of this, with the goal being to remove all callers. There was also a bug in create_synthetic_smb_fname_split (also a temporary utility function) that caused it to incorrectly handle filenames with ':'s in them when in posix mode. This is now fixed.
2009-06-19Fix Coverity IDs 922 and 933Volker Lendecke1-1/+1
In copy_internals(), if the !CAN_WRITE(conn) kicks in, we end up dereferencing a NULL smb_filename. This adds a simple protection around it. Tim, please check! Volker
2009-06-18Fix bug 4699: Remove pidfile on clean shutdownVolker Lendecke1-0/+1
2009-06-18Add some const to the stat struct in the dosmode calls.Jeremy Allison1-4/+4
Fix a couple more unix_convert uses to filename_convert. Fix bug in acl_group_override() where an uninitialized struct could be used. Move unix_convert with wildcard use in SMBsearch reply to boilerplate code. Jeremy.
2009-06-18Replace the boilerplate calls to :Jeremy Allison1-2/+8
resolve_dfspath() -> unix_convert() -> get_full_smb_filename() -> check_name() with a new function filename_convert(). This restores the check_name() calls that had gone missing since the default create_file was changed. All "standard" pathname processing now goes through filename_convert(). I'll take a look at the non-standard pathname processing next. As a benefit, fixed a missing resolve_dfspath() in the trans2 mkdir call. Jeremy.
2009-06-17s3: Change SMB_VFS_OPEN to take an smb_filename structTim Prouty1-0/+1
This was a little messy because of all of the vfs modules I had to touch. Most of them were pretty straight forward, but the streams modules required a little attention to handle smb_filename. Since the use of smb_filename enables the vfs modules to access the raw, over-the-wire stream, a little bit of the handling that was being done by split_ntfs_stream_name has now been shifted into the individual stream modules. It may be a little more code, but overall it gives more flexibility to the streams modules, while also allowing correct stream handling.
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 Prouty1-5/+3
2009-06-12s3: Add smb_filename utility functions and fix a bug in copy_smb_filenameTim Prouty1-0/+9
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-10Make ctemp async. Fix the test to pass against W2K3.Jeremy Allison1-1/+13
Jeremy.
2009-06-08Pass a talloc_ctx to pdb_enum_aliasmemVolker Lendecke1-2/+3
2009-06-05Make cli_ftruncate async. Also add a simple test.Jeremy Allison1-1/+7
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-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-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-28Make sid_binstring & friends take a talloc contextVolker Lendecke1-3/+3
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-26Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke1-9/+2
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.