summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* talloc: fix a comment typoMichael Adam2011-10-261-1/+1
|
* lib/util/charset Remove unused header smb_common.hAndrew Bartlett2011-10-241-1/+0
| | | | | | | | This should fix a compile issue on hosts without gssapi/gssapi.h. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* talloc: simplifiy the logic to build talloc_testsuite in the standalone buildStefan Metzmacher2011-10-221-8/+6
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Oct 22 13:15:52 CEST 2011 on sn-devel-104
* lib/util: remove the "includes.h" dependeny from xfile.cStefan Metzmacher2011-10-221-5/+2
| | | | metze
* lib/util: remove the "includes.h" dependeny from util_file.cStefan Metzmacher2011-10-221-5/+4
| | | | metze
* talloc/testsuite: remove #if _SAMBA_BUILD_==3Stefan Metzmacher2011-10-221-9/+0
| | | | | | We don't include "includes.h" anymore... metze
* ldb: ldb_errstring() takes ldb_contxt as an argumentAmitay Isaacs2011-10-201-1/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-dns: Added DCERPC dns server for DNS managementAmitay Isaacs2011-10-201-1/+1
| | | | | | | | | | dnsserver.h - typedefs and prototypes dnsserver.c - RPC API and implementation methods dnsdb.c - samdb operations dnsdata.c - functions to manipulate dns structures dnsutils.c - function for serverinfo and zoneinfo structures Signed-off-by: Andrew Tridgell <tridge@samba.org>
* ldb-samba: Added handler to decode dnsProperty attributeAmitay Isaacs2011-10-202-0/+22
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* dsdb: improve debug messageAndrew Tridgell2011-10-202-6/+6
| | | | | | | show the reply type in "Invalid reply type" messages Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Oct 20 00:57:05 CEST 2011 on sn-devel-104
* lib/util: skip single hex digit at the end of the input sting - fix ↵Michael Adam2011-10-181-1/+2
| | | | | | | | | | | potential segfault The second of two digits was read without checking for the length of the input string. For a non-zero-terminated input string, this might have caused a segfault. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Oct 18 22:32:59 CEST 2011 on sn-devel-104
* lib/util: fix function header comment to strhex_to_str()Michael Adam2011-10-181-9/+8
| | | | The description did not match the function's behaviour.
* lib/util: untangle assignent from check in strhex_to_str()Michael Adam2011-10-181-2/+6
|
* lib/param: Remove parameters for wins and spoolss databasesAndrew Bartlett2011-10-181-30/+0
| | | | | | | | | | | | | | | | | This removes the smb.conf parameters per-database, replacing these with hard-coded database names in well known (and configurable) directories. The wins.ldb is now always in the "state dir", rather than being in both state and lock dir (ie, a bug). Less smb.conf parameters means less parameters to try and sync up between the loadparm subsystems. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 18 05:39:54 CEST 2011 on sn-devel-104
* ldb: Output more error information when a connect failsAndrew Bartlett2011-10-182-1/+6
|
* credentials: Prioritise command-line specified options above defaults from ↵Andrew Bartlett2011-10-182-0/+22
| | | | | | | | | | | | | | smb.conf If a user specified -W or --realm on the command line, then this is of level SPECIFIED, not UNINITIALISED, despite it going via the loadparm system. This helps us to ensure that -W server -Ulocaluser is parsed the same as -Userver\localuser. This matters as otherwise we might instead attempt to use kerberos to the realm from the smb.conf. Andrew Bartlett
* ldb: fixed a race in ldb initialisationAndrew Tridgell2011-10-181-1/+9
| | | | | | | | | | | This fixes a race when two processes initialise the same ldb database at the same time. One of them could fail due to the other creating the @BASEINFO record first. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Oct 18 03:54:42 CEST 2011 on sn-devel-104
* Fix const warnings.Jeremy Allison2011-10-141-4/+4
|
* Fix const warnings.Jeremy Allison2011-10-141-3/+3
|
* Fix bug with Samba not recognising an 6to4 IPv6 interface.Matthieu Patou2011-10-141-0/+13
| | | | | | | | | "The 6to4 interface has the flags IFF_POINTTOPOINT interface but no ifa_dstaddr as it's not at the IPv6 level a point to point interface (at least from my understanding), as we don't have a IFF_BROADCAST flag set (I have the impression that this flag is only set on a interface that has also an IPv4 address) the first test is not valid also, which result in a skipped interface."
* libreplace: add a missing "eval" to the AC_VERIFY_C_PROTOTYPE macroMichael Adam2011-10-141-1/+1
| | | | | | | Without this eval, upon test success the corresponding actions (like defining corresponding variables) are not taken. Found by Timur I. Bakeyev, and based on his patch for 3.5.
* Update to newer version of subunit.Jelmer Vernooij2011-10-133-1/+10
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Oct 13 20:37:18 CEST 2011 on sn-devel-104
* lib/param reduce the cost of loadparm_init_s3()Andrew Bartlett2011-10-131-1/+1
| | | | | | The parameter redirection covers most things now, so this should be safe. Andrew Bartlett
* lib/util: Add back control of mmap and hash size in tdb for top level buildAndrew Bartlett2011-10-133-15/+13
| | | | | | | | 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
* lib/param Print error when mkdir of lock path failsAndrew Bartlett2011-10-131-1/+3
| | | | | | This matches the s3 code for lock_path(). Andrew Bartlett
* lib/param Add 'use mmap' parameter to control tdb use of mmapAndrew Bartlett2011-10-131-0/+12
|
* config.h: define HAVE_LIBREPLACERusty Russell2011-10-132-0/+3
| | | | | | | | | tdb2 wants to know if it should use replace.h. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Thu Oct 13 08:58:35 CEST 2011 on sn-devel-104
* s3:utils change data_blob_dup_talloc() to take a DATA_BLOB by valueGregor Beck2011-10-121-1/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s4/param: Expose lpcfg_smb_ports and lpcfg_socket_options, which are both ↵Jelmer Vernooij2011-10-111-0/+1
| | | | required by winexe.
* param: Expose lpcfg_smb_ports, required by winexe.Jelmer Vernooij2011-10-111-0/+1
|
* lib/param: fix typo _SAMBA_BUILD => _SAMBA_BUILD_ causing segfaultsStefan Metzmacher2011-10-111-1/+1
| | | | | | | | | If lpcfg_dns_update_command() returns NULL 'samba' segfaults on startup. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Oct 11 17:25:19 CEST 2011 on sn-devel-104
* ldb:ldb_autotransaction_request - error string shouldn't be set hereMatthias Dieter Wallnöfer2011-10-111-5/+0
| | | | | | | | | | | A generic error string should be set independently of the access mechanism to an LDB operation. Hence it should be handled in "ldb_wait" and "ldb_request" Signed-off-by: Andrew Tridgell <tridge@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Oct 11 10:15:18 CEST 2011 on sn-devel-104
* ldb:pyldb.c - py_ldb_* modification calls - error string shouldn't be set hereMatthias Dieter Wallnöfer2011-10-111-17/+1
| | | | | | | | As discussed with Jelmer, we shouldn't be setting a generic LDB error string only for the Python bindings alone. This should be done in "ldb_request" and "ldb_wait" - the common place for all possible LDB access mechanisms. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* ldb:ldb.c/"ldb_wait" - make "ldb_wait" always return an error stringMatthias Dieter Wallnöfer2011-10-111-4/+39
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* ldb:ldb.c/"ldb_wait" - change "ldb_wait" slightly in order to introduce ↵Matthias Dieter Wallnöfer2011-10-111-3/+5
| | | | | | | | | | | | | | | error messages In this occasion remove a redundant check for "LDB_ASYNC_DONE": if (handle->state == LDB_ASYNC_DONE || if (handle->state == LDB_ASYNC_DONE) handle->status != LDB_SUCCESS) { return handle->status; return handle->status; == if (handle->status != LDB_SUCCESS) } return handle->status; ... ... return LDB_SUCCESS; return LDB_SUCCESS; Signed-off-by: Andrew Tridgell <tridge@samba.org>
* ldb:ldb.c/"ldb_request" - make "ldb_request" always return an error stringMatthias Dieter Wallnöfer2011-10-111-1/+15
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* ldb:ldb.c - "ldb_set_errstring" can be implemented by using ↵Matthias Dieter Wallnöfer2011-10-111-10/+7
| | | | | | "ldb_asprintf_errstring" Signed-off-by: Andrew Tridgell <tridge@samba.org>
* ldb:ldb_autotransaction_request - fix a typo in a commentMatthias Dieter Wallnöfer2011-10-111-1/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/param Avoid dyn_ defines that are not provided by the autoconf buildAndrew Bartlett2011-10-111-3/+5
| | | | | | | The autoconf build will never use these parameters or load the smb.conf with these defaults, so the defaults are not important. Andrew Bartlett
* lib/param Use strcasecmp_m rather than strcasecmp as this is banned in the ↵Andrew Bartlett2011-10-111-2/+2
| | | | s3 includes.h
* lib/param Use talloc_strdup rather than strdup as strdup is banned in the s3 ↵Andrew Bartlett2011-10-111-3/+3
| | | | includes.h
* lib/param Avoid the name string_set as this is already used in the s3 param codeAndrew Bartlett2011-10-111-14/+14
|
* lib/param Avoid the use of the name service_ok() which is used in the s3 ↵Andrew Bartlett2011-10-111-4/+4
| | | | param code
* lib/param: Remove unused #include of lib/socket/socket.hAndrew Bartlett2011-10-111-1/+0
|
* libcli/smb Move CSC_POLICY_* definition to smb_constants.hAndrew Bartlett2011-10-111-6/+0
| | | | | | | This removes the duplicate definition between smb.h and lib/param/loadparm.c which in turn allows this file to be compiled with the s3 includes.h Andrew Bartlett
* lib/param move source4 param code to the top levelAndrew Bartlett2011-10-116-0/+4652
| | | | | | | | | | | | This is done so that the lpcfg_ functions are available across the whole build, either with the struct loadparm_context loaded from an smb.conf directly or as a wrapper around the source3 param code. This is not the final, merged loadparm, but simply one step to make it easier to solve other problems while we make our slow progress on this difficult problem. Andrew Bartlett
* ldb: change version to 1.1.3 after pyldb changesldb-1.1.3Stefan Metzmacher2011-10-103-1/+259
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 10 14:24:25 CEST 2011 on sn-devel-104
* Revert "ldb: support raw OIDs in control string parsing"Stefan Metzmacher2011-10-072-19/+0
| | | | | | | | This reverts commit ea41860d32d38448e08cefd79d30ee1150317a9e. This is not needed, because we already have the 'local_oid' magic. metze
* ldb/ldb_controls: allow oid up to 255 charsStefan Metzmacher2011-10-071-1/+1
| | | | | | We have char oid[256], so allow sscanf() to consume 255 chars. metze
* uid_wrapper: Add uwrap_setresuid().Andreas Schneider2011-10-072-0/+17
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Fri Oct 7 12:04:05 CEST 2011 on sn-devel-104