summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
* s3: Pass tdb_flags to ctdbd when attaching to a dbVolker Lendecke2010-10-261-1/+1
| | | | This is required to make ctdb create databases with INCOMPATIBLE_HASH
* s3: Add any_nt_status_not_okVolker Lendecke2010-10-201-0/+13
| | | | | 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-203-90/+74
| | | | | | | | | | | | 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
* libcli/auth Merge source4/libcli/security and util_sid.c into the common codeAndrew Bartlett2010-10-141-313/+1
| | | | | | | | | 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 Move source3/lib/util_seaccess.c into the common codeAndrew Bartlett2010-10-141-251/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-acl Use uint32_t for counting the ACEsAndrew Bartlett2010-10-141-1/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-acl Merge source4-supported privileges into se_access_checkAndrew Bartlett2010-10-141-5/+9
| | | | | | | | This will shortly be the common se_access_check function. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-util_nttoken.c Also copy the rights_mask when copying a security_tokenAndrew Bartlett2010-10-141-0/+4
| | | | | | | | | These are unused in source3/ code at the moment, but it would be unfortunate if that were to change, and this function not be updated. 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-142-15/+4
| | | | | | | | The two routines are identical, so there is no need to keep both. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-1215-5/+15
| | | | | | | | | | | | | | This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
* 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
* samr: for correctness, rename samr_RidTypeArray to samr_RidAttrArray.Günther Deschner2010-10-071-3/+3
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Oct 7 12:04:32 UTC 2010 on sn-devel-104
* s3: Adding TCP_KEEPALIVE_THRESHOLD and TCP_KEEPALIVE_ABORT_THRESHOLD to ↵Ira Cooper2010-10-071-0/+6
| | | | | | | | | the list of accepted socket settings. These are both exclusive to Solaris/OpenSolaris. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Oct 7 00:26:39 UTC 2010 on sn-devel-104
* s3: Attempt to get the Tru64 build a bit furtherVolker Lendecke2010-10-041-1/+0
|
* s3: Attempt to fix bug 7665Volker Lendecke2010-10-0211-136/+295
| | | | | | | Quite a few of our internal routines put stuff on talloc_tos() these days. In top-level netapi routines, properly allocate a stackframe and clean it again. Also, don't leak memory in the rpccli_ callers onto the libnetapi context.
* s3:events: Call all ready fd event handlers on each iteration of the main loopSteven Danneman2010-10-011-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-174/+0
| | | | Guenther
* s3-readline: move cmd_history to smbclient, the only user.Günther Deschner2010-10-011-21/+0
| | | | Guenther
* samba: share select wrappers.Günther Deschner2010-10-016-207/+5
| | | | Guenther
* s3: Remove talloc_autofree_context() from myhostname()Volker Lendecke2010-09-281-3/+1
| | | | No destructor needed, so we can as well use the NULL context
* Change to using TDB_INCOMPATIBLE_HASH (the jenkins hash) on allJeremy Allison2010-09-276-11/+11
| | | | | | | | | | TDB_CLEAR_IF_FIRST tdb's. For tdb's like gencache where we open without CLEAR_IF_FIRST and then with CLEAR_IF_FIRST if corrupt this is still safe to use as if opening an existing tdb the new hash will be ignored - it's only used on creating a new tdb not opening an old one. Jeremy.
* s3: Remove talloc_autofree_context() from nametouid()Volker Lendecke2010-09-261-1/+1
| | | | pass is freed a few lines down
* s3: Remove talloc_autofree_context() from getpwnam_alloc()Volker Lendecke2010-09-261-1/+1
| | | | This is given to the memcache a few lines down
* s3: Remove talloc_autofree_context() from serverid_db()Volker Lendecke2010-09-261-2/+2
| | | | | If we needed an explicit tdb_close() in the destructor, we'd be hosed long ago.
* s3: Remove talloc_autofree_context() from serverid_parent_init()Volker Lendecke2010-09-261-3/+2
|
* s3: Remove talloc_autofree_context() from messaging_tdb_parent_init()Volker Lendecke2010-09-261-3/+2
|
* s3: Remove talloc_autofree_context() from ctdb_read_req()Volker Lendecke2010-09-261-1/+2
|
* s3-dsgetdcname: always pass in messaging context.Günther Deschner2010-09-233-4/+22
| | | | | | Volker, please check. Guenther
* s3-registry: fix some c++ build warnings.Günther Deschner2010-09-221-2/+2
| | | | Guenther
* s3:registry: remove unneeded TALLOC_CTX argument from reg_deletekey_recursiveMichael Adam2010-09-221-3/+2
|
* s3-lib: add srprs, primitives to build simple recursive parsersGregor Beck2010-09-222-0/+366
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-lib: add cbuf, a talloced character bufferGregor Beck2010-09-222-0/+522
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3: Remove a global variable in bugfix for bug 7665Volker Lendecke2010-09-212-7/+11
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3:registry: move prototype from reg_init_smbconf.c to its own header.Michael Adam2010-09-211-0/+1
|
* s3:registry: move the reg_api prototypes to their own header.Michael Adam2010-09-211-0/+1
|
* s3-libnetapi: Fix Bug #7665, memory leak in netapi connection manager.Günther Deschner2010-09-201-30/+65
| | | | Guenther
* s3-lib/util Remove unused smb_uuid_unpack()Andrew Bartlett2010-09-201-31/+0
| | | | | | Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3-uuid Remove unused smb_uuid_pack()Andrew Bartlett2010-09-201-9/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3: Replace sid_binstring and sid_guidstring with PIDL-based alternativesAndrew Bartlett2010-09-202-33/+0
| | | | | | | | | This reduces the manual marshalling of these structures by removing the duplication here. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3-util: use shared dom_sid_dup.Günther Deschner2010-09-204-30/+13
| | | | Guenther
* s3-util_sid: use shared dom_sid_compare_auth and dom_sid_equal_X functions.Günther Deschner2010-09-204-90/+15
| | | | Guenther
* s3-build: only include ctdbd_conn.h where needed.Günther Deschner2010-09-203-0/+3
| | | | Guenther
* s3-build: only include async headers where needed.Günther Deschner2010-09-201-0/+1
| | | | Guenther
* Really enable core dumps in LinuxRusty Russell2010-09-201-8/+8
| | | | | | | | | | | | | | | | | commit e1f1ce68e1f685400a8c68bcec14018e3d1fc29d Author: Rusty Russell <rusty@rustcorp.com.au> Date: Mon Sep 20 13:33:30 2010 +0930 source3: dump core on Linux, even after seteuid/etc. The "dumpable" flag is reset on every call to set*uid, so we need to reset it to 1 in the signal handler itself. This code dates back to commit ac01fda2b97b 6 years ago :( Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:registry: move higher level function reg_open_path to new module reg_api_utilMichael Adam2010-09-201-0/+1
| | | | | The reg_api.c code should just export functions that direclty relate to winreg api calls.
* s3-nltest: add dsregdns command to nltest.Günther Deschner2010-09-191-1/+21
| | | | Guenther
* s3-libnetapi: support NETLOGON_CONTROL_FORCE_DNS_REG in I_NetLogonControl().Günther Deschner2010-09-191-0/+4
| | | | Guenther
* s3/s4: merge msleep and smb_msleepBjörn Jacke2010-09-161-49/+0
| | | | | the merged variant is renamed to smb_msleep as some platforms already have a msleep function.
* s3-nltest: add dsgetdc command.Günther Deschner2010-09-151-3/+181
| | | | Guenther
* s3-libnetapi: try using netr_DsRGetDCNameEx() in DsGetDcName().Günther Deschner2010-09-151-0/+13
| | | | Guenther