summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
* s3:include: implement trans_oob() as wrapper to smb_buffer_oob()Stefan Metzmacher2011-10-261-19/+0
| | | | metze
* s3-netapi: remove pointless use_memory_krb5_ccache.Günther Deschner2011-10-262-20/+0
| | | | | | | | | This breaks the ABI. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Oct 26 13:23:58 CEST 2011 on sn-devel-104
* s3:lib: make_unix_date3() is the same as pull_dos_date3()Stefan Metzmacher2011-10-261-5/+1
| | | | | | | | | | Except for a 'void *' vs. 'uint8_t *'. As a first step let make_unix_date() call pull_dos_date(), so that we he the logic only once. We can fix the callers later. metze
* s3:lib: make_unix_date2() is the same as pull_dos_date2()Stefan Metzmacher2011-10-261-7/+1
| | | | | | | | | | Except for a 'void *' vs. 'uint8_t *'. As a first step let make_unix_date() call pull_dos_date(), so that we he the logic only once. We can fix the callers later. metze
* s3:lib: make_unix_date() is the same as pull_dos_date()Stefan Metzmacher2011-10-261-19/+1
| | | | | | | | | | Except for a 'void *' vs. 'uint8_t *'. As a first step let make_unix_date() call pull_dos_date(), so that we he the logic only once. We can fix the callers later. metze
* s3:lib/errmap_unix: map EPIPE to NT_STATUS_CONNECTION_DISCONNECTEDStefan Metzmacher2011-10-251-1/+1
| | | | | | | | | This lets map_nt_error_from_unix() return the same value as map_nt_error_from_unix_common(). There are no callers relying on NT_STATUS_PIPE_BROKEN. metze
* s3:lib/addrchange.h: include libreplace headers before othersStefan Metzmacher2011-10-251-2/+2
| | | | | | Also we typically don't use an explicit "lib/replace/" prefix. metze
* build: always include tevent with <tevent.h>Andrew Bartlett2011-10-251-1/+1
| | | | | | | | | This ensures we do the right thing if we are built against the system tevent. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* build: always include talloc with <talloc.h>Andrew Bartlett2011-10-251-1/+1
| | | | | | | | | This ensures we do the right thing if we are built against the system talloc. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-waf: only compile common.c in netapi examples code once.Günther Deschner2011-10-211-2/+8
| | | | Guenther
* s3-netapi: use NetApiBufferAllocate() for returned buffer in getdc calls.Günther Deschner2011-10-211-2/+30
| | | | Guenther
* s3-netapi: fix missing include in examples code.Günther Deschner2011-10-211-0/+2
| | | | Guenther
* s3:include: make smb_setlen() a macroStefan Metzmacher2011-10-211-14/+0
| | | | metze
* build: compile (but do not install) netapi examplesAndrew Bartlett2011-10-211-0/+64
| | | | | | | | | The only example not yet built is the GTK domain join gui. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Oct 21 01:31:55 CEST 2011 on sn-devel-104
* s3-netapi Compile (but do not install) netapi testsAndrew Bartlett2011-10-201-0/+6
|
* s3:libsmb/smb_seal: move smb_set_enclen() to smb_seal.c and make it static thereStefan Metzmacher2011-10-191-13/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Oct 19 19:06:35 CEST 2011 on sn-devel-104
* First part of fix for bug #8419 - Make VFS op "streaminfo" stackable.Frank Lahm2011-10-171-1/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Oct 17 21:39:32 CEST 2011 on sn-devel-104
* s3:dbwrap_ctdb: return the number of records in db_ctdb_traverse() for ↵Stefan Metzmacher2011-10-141-3/+15
| | | | | | | | | persistent dbs metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Oct 14 20:59:37 CEST 2011 on sn-devel-104
* Fix sys_fseek wrapperBrad Smith2011-10-141-0/+2
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3:dbwrap_ctdb: fix the build after changing signature of tdb_wrap_open()Michael Adam2011-10-131-1/+7
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Oct 13 18:50:47 CEST 2011 on sn-devel-104
* lib/util: Add back control of mmap and hash size in tdb for top level buildAndrew Bartlett2011-10-134-7/+46
| | | | | | | | This passes down a struct loadparm_context to allow these parameters to be checked. This may be s3 or s4 context, allowing the #if _SAMBA_BUILD_ macro to go away safely. Andrew Bartlett
* s3:smbcontrol: let smbd pass the idmap msg to its children for convenienceGregor Beck2011-10-122-12/+24
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3: fix id_cache_kill to delete the the id-mappig from cachesGregor Beck2011-10-122-2/+4
| | | | | | | | The intendet and documented behavior of smbcontrol smbd idmap kill is to delete the mapping from caches and additionally kill the smbd if an affected id is in use. Signed-off-by: Michael Adam <obnox@samba.org>
* s3:dbwrap_ctdb: improve the check for skipping the __db_sequence_number__ ↵Michael Adam2011-10-121-2/+1
| | | | | | record in traverse It did not compare the last charcter (usually '\0')
* s3:dbwrap_ctdb: fix check for skipping the __db_sequence_number__ in traverseMichael Adam2011-10-121-1/+1
| | | | | Brown paperbag. This omitted the "== 0" hand hence skipped all keys of the same length as __db_sequence_number__ but different from it...
* s3-dbwrap_ctdb: fix the build.Günther Deschner2011-10-121-1/+4
| | | | | | | | | Michael, please check. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Oct 12 15:25:56 CEST 2011 on sn-devel-104
* s3:dbwrap: remove m_all marshall buffer from ctdb transaction.Gregor Beck2011-10-121-23/+1
| | | | | | | | | it was only used by ctdb_replay_transaction and was a actually write only Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Oct 12 05:20:36 CEST 2011 on sn-devel-104
* s3:dbwrap: traverse records created within this transaction.Gregor Beck2011-10-121-1/+39
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:dbwrap: change dbwrap_store_uint32() to NTSTATUS return typeMichael Adam2011-10-112-4/+6
| | | | | | | for consistency and better error propagation Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Oct 11 15:51:00 CEST 2011 on sn-devel-104
* s3:dbwrap: change dbwrap_store_int32() to NTSTATUS return typeMichael Adam2011-10-113-13/+21
| | | | for consistency and better error propagation
* s3:dbwrap: change dbwrap_fetch_uint32() to NTSTATUS return type (instead of ↵Michael Adam2011-10-112-7/+11
| | | | | | bool) for consistency and better error propagation
* s3:dbwrap: convert dbwrap_fetch_int32() to NTSTATUS return codeMichael Adam2011-10-113-10/+23
| | | | | | Return the int32 value retrieved from the db by reference. Before this, return value "-1" was used as a error indication, but it could also be a valid value from the database.
* s3:dbwrap: move definitions of db_record and db_contect structs to ↵Michael Adam2011-10-115-35/+40
| | | | | | dbwrap_private.h The API and callers now only need the forward declarations.
* s3:messages: convert to use only dbwrap wrapper functionsMichael Adam2011-10-111-1/+1
| | | | Avoid direct use of the db_record and db_context structs.
* s3:conn_tdb: convert connections tdb to only use dbwrap wrapper functionsMichael Adam2011-10-111-13/+45
| | | | Avoid direct use of the db_record and db_context structs.
* s3:privileges: convert privileges.c to use dbwrap wrapper functions.Michael Adam2011-10-111-8/+22
| | | | Avoid direct use of the db_record and db_context structs.
* s3:g_lock: convert to use only dbwrap wrapper functions.Michael Adam2011-10-111-15/+30
| | | | Avoid direct use of the db_record and db_context structs.
* s3:talloc_dict: change to only use dbwrap wrapper functionsMichael Adam2011-10-111-17/+39
| | | | Avoid direct use of the db_record and db_context structs.
* s3:sharesec: convert sharesec.c to use dbwrap wrapper functionsMichael Adam2011-10-111-18/+24
| | | | Avoid direct use of the db_record and db_context structs
* s3:sessionid: convert to using dbwrap wrapper functions onlyMichael Adam2011-10-111-9/+18
| | | | Avoid direct use of the db_record and db_context structs.
* s3:sessionid: use dbwrap_travers_read() in sessionid_travers_read()Michael Adam2011-10-111-6/+9
| | | | | This also changes the return code of sessionid_traverse_read() to NTSTATUS. It also uses traverse_read instead of traverse.
* s3:sessionid: use dbwrap_travers() in sessionid_traverse()Michael Adam2011-10-111-6/+8
| | | | This also changes sessionid_traverse to NTSTATUS return type.
* s3:serverid: convert to using dbwrap wrapper functions onlyMichael Adam2011-10-111-16/+24
| | | | Avoid direct use of the db_record and db_context structs.
* s3:serverid: use dbwrap_traverse_read() in serverid_traverse_read()Michael Adam2011-10-111-1/+5
| | | | | | This also fixes the return value: originally the int return value of traverse_read which is a count of the records traversed or negative upon failure, was simply casted into a bool return value.
* s3:serverid: use dbwrap_traverse() in serverid_traverse()Michael Adam2011-10-111-1/+4
| | | | | | This also fixes the return value: Originally, the int returned by the traverse method, which is the count of the traverse was casted into a bool return value.
* s3:dbwrap: convert dbwrap_util.c to use dbwrap wrapper functionsMichael Adam2011-10-111-33/+41
|
* s3:dbwrap: use dbwrap_fetch_bystring() in dbwrap_fetch_[u]int32()Michael Adam2011-10-111-2/+6
|
* s3:dbwrap: convert dbwrap_fetch(), dbwrap_fetch_bystring() and ↵Michael Adam2011-10-115-25/+28
| | | | dbwrap_fetch_bystring_upper() to NTSTATUS
* s3:dbwrap: add dbwrap_fetch_locked(), a wrapper for db->fetch_lockedMichael Adam2011-10-112-0/+10
|
* s3:dbwrap: add dbwrap_record_delete(), a wrapper for record->delete_recMichael Adam2011-10-112-0/+6
|