summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* s3-libnetapi: add DS request flags to public header.Günther Deschner2010-09-151-0/+21
| | | | Guenther
* s3-libnetapi: add DS_X_FLAGs to public header.Günther Deschner2010-09-151-0/+16
| | | | Guenther
* s3-nltest: convert server input argument into --server.Günther Deschner2010-09-151-24/+19
| | | | Guenther
* s3-nltest: rename print_result to print_netlogon_info_result.Günther Deschner2010-09-151-4/+17
| | | | Guenther
* Ensure incoming timespec values correctly wrap at nsecs.Jeremy Allison2010-09-141-0/+4
| | | | Jeremy.
* s3-util_sid Use the NDR parser to parse struct dom_sidAndrew Bartlett2010-09-141-14/+8
| | | | | | | The manual parser failed to constrain the maximum number of sub-authorities to 15, allowing an overflow of the array. Andrew Bartlett
* libcli/security Merge source3/ string_to_sid() to common codeAndrew Bartlett2010-09-141-106/+0
| | | | | | | | The source3 code repsects the limit of a maximum of 15 subauths, while the source4 code does not, creating a security issue as we parse string-form SIDs from clients. Andrew Bartlett
* s3-util_sid use ARRAY_SIZE() to ensure we never overflow the dom_sidAndrew Bartlett2010-09-141-1/+1
| | | | | | | This ensures that this, unlike the MAXSUBAUTHS macro, can't get out of sync with the structure. Andrew Bartlett
* s3-util_sid Accept S-1-5 as a SIDAndrew Bartlett2010-09-141-2/+10
|
* s3-dom_sid Use C99 types in dom_sid handlingAndrew Bartlett2010-09-141-7/+7
| | | | Andrew Bartlett
* s3/profiling: don't use CLOCK_PROCESS_CPUTIME_IDBjörn Jacke2010-09-141-17/+0
| | | | that clock is a CPU burnometer but we need a chronometer for profiling.
* libcli/security Move 'private' privileges functions to another headerAndrew Bartlett2010-09-111-0/+1
| | | | | | | | | These functions work on the bitmap, and are only exposed because the source3/ privileges storage uses the bitmap in account_policy.tdb Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* libcli/security Remove 'always true' return from se_priv_put_all_privilegesAndrew Bartlett2010-09-111-3/+1
| | | | | | Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-util_sid Tidy up global struct security_tokenAndrew Bartlett2010-09-112-14/+6
| | | | | | | | | This no longer needs to be global, and should be const. We now also init it with the C99 style initialisers. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-privs Add constAndrew Bartlett2010-09-111-3/+3
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-privs Remove extra pointer on privilege maskAndrew Bartlett2010-09-111-4/+4
| | | | | | Now that this is a scalar, this isn't required. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-privileges: add handling of both old and new formats in databaseAndrew Tridgell2010-09-111-28/+48
| | | | | | | | | | We update privileges on a per-record basis instead of all at once, as this maintains maximum compatibility is someone uses old tools with a new version of Samba. The also auto-detects the byte order of the old entries in the database, and copes with either native or reversed byte order. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s3-privs Remove unused functionAndrew Bartlett2010-09-111-30/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-privs Overhaul PRIVILEGE_SET handling, avoid dealing with the bitmapAndrew Bartlett2010-09-111-50/+17
| | | | | | | | | | This avoids us dealing with the privilege bitmap in the LSA server, and overhauls much of the rest of the handling to be currnet with the modern world of talloc. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-privs Hide the bitmap-based grant_privilege and revoke_privilegeAndrew Bartlett2010-09-111-7/+33
| | | | | | | | | The new wrappers avoid anything but the core privileges code dealing with the bitmap values directly. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-privs Make privilege_enum_sids() take an LUID, not a bitmapAndrew Bartlett2010-09-111-2/+2
| | | | | | | | This moves one more privileges call away from direct bitmap manipuation. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-privs Rework privilege enumeration to also use new DB formatAndrew Bartlett2010-09-111-5/+18
| | | | | | Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-privs Directly manipulate the privileges bitmap.Andrew Bartlett2010-09-112-13/+6
| | | | | | | | | There is no longer any reason to go via the se_ functions to manipulate this bitmap. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>