summaryrefslogtreecommitdiffstats
path: root/source3/include
Commit message (Collapse)AuthorAgeFilesLines
* Add SMB_VFS_CONNECTPATH operationVolker Lendecke2009-06-022-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.
* Fix some nonempty blank linesVolker Lendecke2009-05-311-4/+4
|
* libwbclient: Add async call framework.Kai Blin2009-05-301-75/+0
|
* Make cli_nt_delete_on_close() async.Jeremy Allison2009-05-291-1/+7
| | | | Jeremy.
* s3:add prototype of map_nt_error_from_wbcErr() to proto.hMichael Adam2009-05-291-0/+1
| | | | Michael
* Add smbldap_talloc_single_blob()Volker Lendecke2009-05-291-0/+3
|
* s3 async wbclient: Change license to LGPLv3+Volker Lendecke2009-05-291-8/+12
|
* s3 wbc_async: Fix copyright notice cut&paste error.Kai Blin2009-05-291-1/+1
| | | | | | Volker created all these prototypes, I just created the file and moved them over. Signed-off-by: Kai Blin <kai@samba.org>
* Consolidate create/delete account paths in pdbeditSimo Sorce2009-05-291-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>
* util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.Günther Deschner2009-05-291-2/+0
| | | | Guenther
* Make cli_posix_chown()/cli_posix_chmod() async.Jeremy Allison2009-05-281-2/+18
| | | | Jeremy.
* Make cli_posix_stat() async.Jeremy Allison2009-05-281-1/+9
| | | | Jeremy.
* Make getfacl async.Jeremy Allison2009-05-281-1/+13
| | | | Jeremy.
* Fix some nonempty blank linesVolker Lendecke2009-05-281-17/+17
|
* Make sid_binstring & friends take a talloc contextVolker Lendecke2009-05-281-3/+3
|
* Add smbldap_pull_sidVolker Lendecke2009-05-281-0/+2
|
* Add cli_posix_readlink() and a torture test for it.Jeremy Allison2009-05-271-0/+9
| | | | Jeremy.
* Add aync POSIX hardlink and symlink and torture test for them.Jeremy Allison2009-05-271-2/+18
| | | | | Missing call cli_readlink() is next. Jeremy.
* s3: Allow child processes to exit gracefully if we are out of fdsMarc VanHeyningen2009-05-271-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>
* Gna, how long do I program in C now??? :-)Volker Lendecke2009-05-271-2/+2
|
* Attempt to fix the build on HP/UXVolker Lendecke2009-05-261-0/+10
|
* Attempt to fix the build on NetBSDVolker Lendecke2009-05-261-0/+3
|
* Revert "s3: fix build on systems with struct stat member st_flags"Björn Jacke2009-05-261-3/+0
| | | | for a cleaner and more complete patch that Volker has in the queue :-)
* s3: fix build on systems with struct stat member st_flagsBjörn Jacke2009-05-261-0/+3
|
* Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke2009-05-263-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.
* Make cli_posix_open() and cli_posix_mkdir() async.Jeremy Allison2009-05-201-3/+17
| | | | Jeremy.
* s3: Change unix_convert (and its callers) to use struct smb_filenameTim Prouty2009-05-202-6/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the first of a series of patches that change path based operations to operate on a struct smb_filename instead of a char *. This same concept already exists in source4. My goals for this series of patches are to eventually: 1) Solve the stream vs. posix filename that contains a colon ambiguity that currently exists. 2) Make unix_convert the only function that parses the stream name. 3) Clean up the unix_convert API. 4) Change all path based vfs operation to take a struct smb_filename. 5) Make is_ntfs_stream_name() a constant operation that can simply check the state of struct smb_filename rather than re-parse the filename. 6) Eliminate the need for split_ntfs_stream_name() to exist. My strategy is to start from the inside at unix_convert() and work my way out through the vfs layer, call by call. This first patch does just that, by changing unix_convert and all of its callers to operate on struct smb_filename. Since this is such a large change, I plan on pushing the patches in phases, where each phase keeps full compatibility and passes make test. The API of unix_convert has been simplified from: NTSTATUS unix_convert(TALLOC_CTX *ctx, connection_struct *conn, const char *orig_path, bool allow_wcard_last_component, char **pp_conv_path, char **pp_saved_last_component, SMB_STRUCT_STAT *pst) to: NTSTATUS unix_convert(TALLOC_CTX *ctx, connection_struct *conn, const char *orig_path, struct smb_filename *smb_fname, uint32_t ucf_flags) Currently the smb_filename struct looks like: struct smb_filename { char *base_name; char *stream_name; char *original_lcomp; SMB_STRUCT_STAT st; }; One key point here is the decision to break up the base_name and stream_name. I have introduced a helper function called get_full_smb_filename() that takes an smb_filename struct and allocates the full_name. I changed the callers of unix_convert() to subsequently call get_full_smb_filename() for the time being, but I plan to eventually eliminate get_full_smb_filename().
* s3:param: add PROTOCOL_SMB2Stefan Metzmacher2009-05-201-1/+9
| | | | metze
* s3: Always allocate memory in dptr_ReadDirNameAravind Srinivasan2009-05-181-1/+1
| | | | | | | | This is a follow up to 69d61453df6019caef4e7960fa78c6a3c51f3d2a to adjust the API to allow the lower layers allocate memory. Now the memory can explicitly be freed rather than relying on talloc_tos(). Signed-off-by: Tim Prouty <tprouty@samba.org>
* Change access_check_samr_object -> access_check_object.Jeremy Allison2009-05-181-0/+7
| | | | | | | Make map_max_allowed_access global. Change lsa_get_generic_sd to add Everyone:LSA_POLICY_READ|LSA_POLICY_EXECUTE, not just LSA_POLICY_EXECUTE. Jeremy.
* Fix bug 5681: Do not limit the number of network interfacesVolker Lendecke2009-05-181-3/+1
| | | | | | | | | | Jeremy as far as I can see there is no real technical reason to limit the number of interfaces. If you like this patch, can you please merge it to 3.4? If you don't please tell me :-) Thanks, Volker
* Add "file_walk_table" to do stuff with all open filesVolker Lendecke2009-05-181-0/+4
|
* Move smb_create_user() in samsyncSimo Sorce2009-05-161-5/+0
| | | | | It is not used anywhere else, so make it also static and remove it from proto.h
* s3-privileges: add privilege_delete_account().Günther Deschner2009-05-161-0/+1
| | | | Guenther
* s3:param: prevent includes from being dumped in dump_*() functions.Michael Adam2009-05-151-0/+1
| | | | | | This fixes bug #4271: testparm should not print includes. Michael
* s3:libsmb: move read_smb_send/recv() static in async_smb.cStefan Metzmacher2009-05-131-5/+0
| | | | metze
* s3:libsmb: let cli_smb_chain_send() also return NTSTATUSStefan Metzmacher2009-05-131-1/+1
| | | | metze
* s3-printing: no need to define struct table_node 4 times.Günther Deschner2009-05-131-0/+6
| | | | Guenther
* Remove an unused struct definitionVolker Lendecke2009-05-131-6/+0
|
* s3: return proper error code in cli_smb_req_sendBo Yang2009-05-131-1/+1
| | | | Signed-off-by: Bo Yang <boyang@samba.org>
* Fix bug 6157Volker Lendecke2009-05-121-0/+3
| | | | | This patch picks the alphabetically smallest one of the multi-value attribute "uid". This fixes a regression against 3.0 and also becomes deterministic.
* s3:proto.h: remove old param/params.c prototypeMichael Adam2009-05-121-7/+0
| | | | Michael
* Correct typos; semicolons instead of commasDerrell Lipman2009-05-111-7/+7
|
* Provide a libsmbclient interface for programs requiring threadsDerrell Lipman2009-05-101-0/+109
| | | | | | | | | - This adds two functions: smbc_thread_posix() which provides access to the internal threading implementation using pthread; and smbc_thread_impl() where the user provides each of the functions required by Samba, to give access to the thread implementation's native capabilities. Derrell
* Add wb_simple_trans_send/recvVolker Lendecke2009-05-091-0/+7
|
* s3-samr: let set_user_info_16 and 20 follow the same pattern as all other ↵Günther Deschner2009-05-081-0/+2
| | | | | | levels. Guenther
* s3-samr: support some more info levels in samr_SetUserInfo calls.Günther Deschner2009-05-081-0/+20
| | | | Guenther
* Convert lib/wb_reqtrans.c to unix calling conventionsVolker Lendecke2009-05-071-6/+6
|
* s3-auth: use full 16byte session key in make_user_info_netlogon_interactive().Günther Deschner2009-05-071-1/+1
| | | | | | | | | | | | | | | | | | | Patch from Jeremy. With this patch, I was able to join Windows 7 RC to a Samba3 DC, and login into a Samba 3 Domain. There are still two registry settings required: HKLM\System\CCS\Services\LanmanWorkstation\Parameters DWORD DomainCompatibilityMode = 1 DWORD DNSNameResolutionRequired = 0 Do *not* modify the other netlogon registry parameters that were passed around, they weaken security. Guenther (cherry picked from commit b5097d54cb74ca0ea328f9e029562f65f4a01134)
* Make cli_tcon_andx chainableVolker Lendecke2009-05-071-0/+6
|