summaryrefslogtreecommitdiffstats
path: root/source3/include
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug #7700 - Improvement of return code of smbclientJeremy Allison2010-10-291-3/+3
| | | | | | | | | | Based on an initial patch from H Hasegawa <hasegawa.hiroyuki@fujixerox.co.jp>. Convert cli_list and associated functions to take calls that return NTSTATUS. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 29 19:40:16 UTC 2010 on sn-devel-104
* s3: Add async cli_setpathinfoVolker Lendecke2010-10-241-0/+9
|
* s3:include: move debug.c prototypes to debug.hStefan Metzmacher2010-10-242-21/+21
| | | | metze
* s3:include: move MAX_DEBUG_LEVEL from local.h to debug.hStefan Metzmacher2010-10-242-9/+9
| | | | metze
* s3: Replace cli_qfileinfo_test with a call to cli_qfileinfoVolker Lendecke2010-10-241-1/+0
|
* s3: Convert cli_qfileinfo_basic to cli_qfileinfoVolker Lendecke2010-10-241-7/+7
|
* s3: Convert cli_qfilename to cli_qfileinfoVolker Lendecke2010-10-241-1/+2
|
* s3: Add async cli_qfileinfoVolker Lendecke2010-10-241-0/+12
|
* s3: Rename cli_fileinfo() to cli_fileinfo_basic()Volker Lendecke2010-10-241-7/+7
|
* Revert "Wrap security_token_has_privilege() with a check for ↵Jeremy Allison2010-10-221-1/+0
| | | | | | | | | | | | lp_enable_privileges(). Needed" Not needed - privileges code prevents "enable privileges = no" from adding privileges anyway. This reverts commit a8b95686a7bde3f96f141b6938e24e101567ef54. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 22 23:41:36 UTC 2010 on sn-devel-104
* Wrap security_token_has_privilege() with a check for lp_enable_privileges(). ↵Jeremy Allison2010-10-221-0/+1
| | | | | | | | | | | Needed to maintain compatibility with smb.conf manpage. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 22 18:15:48 UTC 2010 on sn-devel-104
* s3: Make "unpack_pjob" staticVolker Lendecke2010-10-201-1/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Oct 20 16:51:04 UTC 2010 on sn-devel-104
* s3: Add any_nt_status_not_okVolker Lendecke2010-10-201-0/+1
| | | | | This helps avoid quite a bit of repetitive code when looking at dcerpc_xx_recv results.
* Make getpwnam_alloc() static to lib/username.c, and ensure all username ↵Jeremy Allison2010-10-201-7/+3
| | | | | | | | | | | | lookups go through Get_Pwnam_alloc(), which is the correct wrapper function. We were using it *some* of the time anyway, so this just makes us properly consistent. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Oct 20 16:02:12 UTC 2010 on sn-devel-104
* Add make_default_filesystem_acl() function to be used in following change to ↵Jeremy Allison2010-10-151-0/+4
| | | | acl_xattr and acl_tdb module.
* s3-rpc_server: Make auth_serversupplied_info const.Andreas Schneider2010-10-151-3/+3
|
* libcli/auth Merge source4/libcli/security and util_sid.c into the common codeAndrew Bartlett2010-10-142-44/+0
| | | | | | | | | This should ensure we only have one copy of these core functions in the tree. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* libcli/security Define traditional constants in terms of IDL macrosAndrew Bartlett2010-10-141-65/+0
| | | | | | | | | | | The source3/ code uses these constants in a lot of places, and it will take time and care to rename them, if that is desired. Linking the macros here will at least allow common code to use the IDL based macros, and preserve a documentary link between the constants (other than just their value) Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* libcli/security Move source3/lib/util_seaccess.c into the common codeAndrew Bartlett2010-10-141-8/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth Use security_token_debug() from common codeAndrew Bartlett2010-10-141-1/+0
| | | | | | | | | This prints the security token including the privileges as strings instead of just a bitmap. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3 Replace is_sid_in_token() with security_token_has_sid() from common codeAndrew Bartlett2010-10-141-1/+0
| | | | | | | | The two routines are identical, so there is no need to keep both. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* More neccessary const.Jeremy Allison2010-10-091-1/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Oct 9 01:47:25 UTC 2010 on sn-devel-104
* s3: Move #define VALGRIND to config.hVolker Lendecke2010-10-031-10/+0
| | | | This fixes the valgrind overrun in the tdb jenkins hash
* s3: Attempt to fix a ton of warnings on the build farmVolker Lendecke2010-10-032-12/+10
|
* s3:events: Call all ready fd event handlers on each iteration of the main loopSteven Danneman2010-10-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, only one fd handler was being called per main message loop in all smbd child processes. In the case where multiple fds are available for reading the fd corresponding to the event closest to the beginning of the event list would be run. Obviously this is arbitrary and could cause unfairness. Usually, the first event fd is the network socket, meaning heavy load of client requests can starve out other fd events such as oplock or notify upcalls from the kernel. In this patch, I have changed the behavior of run_events() to unset any fd that it has already called a handler function, as well as decrement the number of fds that were returned from select(). This allows the caller of run_events() to iterate it, until all available fds have been handled. I then changed the main loop in smbd child processes to iterate run_events(). This way, all available fds are handled on each wake of select, while still checking for timed or signalled events between each handler function call. I also added an explicit check for EINTR from select(), which previously was masked by the fact that run_events() would handle any signal event before the return code was checked. This required a signature change to run_events() but all other callers should have no change in their behavior. I also fixed a bug in run_events() where it could be called with a selrtn value of -1, doing unecessary looping through the fd_event list when no fds were available. Also, remove the temporary echo handler hack, as all fds should be treated fairly now.
* samba: share readline wrappers among all buildsystems.Günther Deschner2010-10-011-8/+0
| | | | Guenther
* s3-readline: move cmd_history to smbclient, the only user.Günther Deschner2010-10-011-1/+0
| | | | Guenther
* samba: share select wrappers.Günther Deschner2010-10-011-6/+0
| | | | Guenther
* s3-spoolss: dont overwrite location change notify.Günther Deschner2010-10-011-0/+3
| | | | Guenther
* s3-spoolss: Fix servername/printername handling which turns out to be very ↵Günther Deschner2010-09-301-1/+1
| | | | | | important to get right. Guenther
* s3-printing: remove unused old structs.Günther Deschner2010-09-281-60/+0
| | | | Guenther
* s3: Remove talloc_autofree_context() from files.cVolker Lendecke2010-09-281-1/+1
|
* s3: Lift smbd_server_conn from file_find_fdVolker Lendecke2010-09-281-1/+1
|
* s3: Lift smbd_server_conn from file_find_di_firstVolker Lendecke2010-09-281-1/+2
|
* s3: Lift smbd_server_conn from file_find_difVolker Lendecke2010-09-281-1/+2
|
* s3: Remove smbd_server_conn from files_forallVolker Lendecke2010-09-281-0/+1
|
* s3: Remove smbd_server_conn from file_close_userVolker Lendecke2010-09-281-1/+1
|
* s3: Remove smbd_server_conn from file_close_pidVolker Lendecke2010-09-281-1/+2
|
* s3: Make file_fnum staticVolker Lendecke2010-09-271-1/+0
|
* s3: Remove some unused codeVolker Lendecke2010-09-271-3/+0
|
* s3: Remove talloc_autofree_context() from notify_internal_parent_init()Volker Lendecke2010-09-261-1/+1
|
* Fix bug #7698 - Assert causes smbd to panic on invalid NetBIOS session request.Jeremy Allison2010-09-261-3/+3
| | | | | | | | | | | | | | Found by the CodeNomicon test suites at the SNIA plugfest. http://www.codenomicon.com/ If an invalid NetBIOS session request is received the code in name_len() in libsmb/nmblib.c can hit an assert. Re-write name_len() and name_extract() to use "buf/len" pairs and always limit reads. Jeremy.
* s3: Remove talloc_autofree_context() from serverid_parent_init()Volker Lendecke2010-09-261-1/+1
|
* s3: Remove talloc_autofree_context() from messaging_tdb_parent_init()Volker Lendecke2010-09-261-1/+1
|
* s3: Lift talloc_autofree_context() from make_auth_context_fixed()Volker Lendecke2010-09-261-1/+3
|
* s3: Lift talloc_autofree_context() from make_auth_context_subsystem()Volker Lendecke2010-09-261-1/+2
|
* s3-dcerpc: remove auth_data_free_funcSimo Sorce2010-09-231-2/+0
| | | | | | | Everything is using a talloc pointer now, no need to have an accessor function to free data anymore. Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: make auth context opaqueSimo Sorce2010-09-231-6/+1
| | | | | | | | | This way we always double check in advance that the context is of the right type with talloc_get_type_abort instead of potentially accessing random memory by addressing the wrong structure in the union. Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: finally remove the legaqcy spnego_type variable from pipe_auth_dataSimo Sorce2010-09-231-7/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: add spnego server helpersSimo Sorce2010-09-231-0/+10
| | | | | | squashed: add michlistMIC signature checks Signed-off-by: Günther Deschner <gd@samba.org>