summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix uninitialized variable frees on error paths.Jeremy Allison2011-11-231-11/+11
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Nov 23 22:38:13 CET 2011 on sn-devel-104
* Ensure we don't free uninitialized variables.Jeremy Allison2011-11-231-2/+2
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Nov 23 02:27:53 CET 2011 on sn-devel-104
* s3 libaddns: Prevent a crash when dns_create_update failsKai Blin2011-11-221-1/+1
| | | | | | | | | | | | When dns_create_update() fails, it does not initialize *req, and then TALLOC_FREE(req) in the error handling crashes if we're lucky. Instead of going into the generic error handling, treat the failure in dns_create_update() like dns_create_update_request() and just pass on the error. Thanks to Harry Mason for reporting this issue. Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Tue Nov 22 14:29:07 CET 2011 on sn-devel-104
* Fix a bunch of "warning: variable ‘XXXX’ set but not used ↵Jeremy Allison2011-11-212-5/+2
| | | | | | | [-Wunused-but-set-variable]" warnings from the new gcc. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Nov 21 23:39:08 CET 2011 on sn-devel-104
* lib/param: add "SMB2_22" to enum_protocolStefan Metzmacher2011-11-201-0/+1
| | | | metze
* socket_wrapper/py_socket_wrapper.c - include Python 2.4 compatiblity codeMatthias Dieter Wallnöfer2011-11-191-0/+7
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Nov 19 14:53:43 CET 2011 on sn-devel-104
* socket_wrapper: Added python interface to socket_wrapperAmitay Isaacs2011-11-173-0/+938
| | | | | | | | | | | The socket_wrapper does not support setting blocking flag or timeouts on the sockets. To use socket module in python, use from samba import socket Signed-off-by: Kai Blin <kai@samba.org>
* ldb: Add handy macros for reporting error inside ldb moduleAmitay Isaacs2011-11-171-0/+2
| | | | | | | Pair-Programmed-With: Andrew Tridgell <tridge@samba.org> Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Thu Nov 17 05:24:46 CET 2011 on sn-devel-104
* lib/param simplify server role values specified in smb.confAndrew Bartlett2011-11-171-5/+1
| | | | | | | | | The pdc/bdc split is only in smb.conf for Samba3 DCs, and so is too confusing to document in this paramter. It will be clearer to sort out "domain master" into a "pdc emulator" paramter to conver this distinction. Andrew Bartlett
* param: use lp_is_security_and_server_role_valid()Andrew Bartlett2011-11-171-5/+11
| | | | | | | This also permits a few more valid combinations, due to the layer at which this is being used. Andrew Bartlett
* param: Check if server role and security parameters are conflictingAmitay Isaacs2011-11-172-0/+40
|
* param: Connect lp_security to the lib/param code to allow testsAndrew Bartlett2011-11-171-0/+10
| | | | Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
* param: Move enum values into a common (included) .c fileAndrew Bartlett2011-11-172-81/+113
| | | | | | | | | This #include hack is required as it is not possible to declare a compile-time sized array in a header file. Andrew Bartlett Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
* param: move server role helpers into loadparm.hAndrew Bartlett2011-11-174-33/+5
| | | | Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
* param: calculate server role from security, and security from server roleAndrew Bartlett2011-11-174-7/+201
| | | | | | | | | | | | | This allows smb.conf files from either the samba3 or samba4 tradition to come to the same value of server role, using the information in the smb.conf file. This is important so that tools like 'net getlocalsid' work against a Samba4 AD installation (yes, users have tried this). Andrew Bartlett Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
* s3-param remove lp_domain_logons(), always use IS_DCAndrew Bartlett2011-11-171-1/+1
| | | | | | | | This makes the code internally consistant. Andrew Bartlett Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
* param: make server role list common and include auto (for the new default)Andrew Bartlett2011-11-171-1/+9
| | | | Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
* param: Add "domain logons" and "domain master" parametersAmitay Isaacs2011-11-171-0/+20
| | | | | This makes parsing of config files with s3 loadparm code and s4 loadparm code consistent.
* lib/util/debug: with log level = 10 we should be more verboseStefan Metzmacher2011-11-161-3/+9
| | | | | | | | | | | | | | log level = 10 already impacts performance, so we can turn on more details and print the pid, [e][u|g]id and class information. So it implies "debug pid = yes", "debug uid = yes" and "debug class = yes". This generates a lot more useful log files. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Nov 16 12:25:02 CET 2011 on sn-devel-104
* s3: allow to set TCP_NODELAYACK socket option on AIXBjörn Jacke2011-11-151-0/+3
| | | | | | | | this is the AIX way to disable delayed ACKs, the same like TCP_QUICKACK on Linux Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Tue Nov 15 21:00:07 CET 2011 on sn-devel-104
* waf: Factor checking for undefined symbol flags out into separate method.Jelmer Vernooij2011-11-134-0/+8
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Nov 13 19:38:38 CET 2011 on sn-devel-104
* pytdb: Shorter description which fits on a single line.Jelmer Vernooij2011-11-131-1/+2
|
* testtools: Import new upstream snapshot.Jelmer Vernooij2011-11-136-8/+30
|
* subunit: Import new upstream snapshot.Jelmer Vernooij2011-11-137-22/+92
|
* ldb: Only check for pkg-config file when checking for system ldb.Jelmer Vernooij2011-11-131-2/+2
|
* tevent: Only check for pkg-config file when checking for system tevent.Jelmer Vernooij2011-11-131-1/+1
|
* tdb: Only check for pkg-config file when checking for system tdb.Jelmer Vernooij2011-11-131-1/+1
|
* talloc: Only check for pkg-config file when checking for system talloc.Jelmer Vernooij2011-11-131-2/+2
|
* subunit: Only check for pkg-config file and use proper pkg-config file name.Jelmer Vernooij2011-11-131-1/+1
|
* tevent: Only build pytevent if the system doesn't provide it.Jelmer Vernooij2011-11-131-5/+8
|
* ldb: Use pyembed rather than pyext for ldb-util library.Jelmer Vernooij2011-11-131-1/+1
|
* tevent: remove unnecessary enablement.Jelmer Vernooij2011-11-131-1/+0
|
* pytalloc-util: Don't mark as python extension, use pyembed instead.Jelmer Vernooij2011-11-131-1/+1
|
* ldb: Re-apply pyldb fixes from Tridge and Amity, using unittest ratherJelmer Vernooij2011-11-101-33/+37
| | | | than samba.tests.
* Revert "pyldb: fixed ldb API test"Jelmer Vernooij2011-11-101-36/+39
| | | | | | This reverts commit 333248f08c83cc5b18f8e7e84cb19d79a8309d6e. This commit made the pyldb tests depend on the Samba testsuite.
* Fix -Wunused-but-set-variable compiler warnings in tevent_signal.cMartin Schwenke2011-11-101-4/+2
| | | | | | | | | | | | | | | | | | | | The results of some read(2) and write(2) calls are assigned into a variable that is never used. Presumably this used to avoid compiler warnings or similar. However, from (approximately) GCC 4.6 this produces some warnings: [ 609/3910] Compiling lib/tevent/tevent_signal.c ../lib/tevent/tevent_signal.c: In function ‘tevent_common_signal_handler’: ../lib/tevent/tevent_signal.c:85:10: warning: variable ‘res’ set but not used [-Wunused-but-set-variable] ../lib/tevent/tevent_signal.c: In function ‘signal_pipe_handler’: ../lib/tevent/tevent_signal.c:183:10: warning: variable ‘res’ set but not used [-Wunused-but-set-variable] The simplest thing to do is remove the variables and cast the function return to void. There is already a comment above each call. Signed-off-by: Martin Schwenke <martin@meltin.net> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* pyldb: fixed ldb API testAndrew Tridgell2011-11-101-39/+36
| | | | it was failing previously, but the failure wasn't being noticed
* pyldb: enhanced get() method on msg objectAndrew Tridgell2011-11-101-14/+33
| | | | | | | get() now takes a default value and an idx, allowing for much easier usage Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* util/time: Make some functions explicitly public.Jelmer Vernooij2011-11-031-3/+3
|
* util/time: Remove unnecessary _PUBLIC_ - that's implicit for things in ↵Jelmer Vernooij2011-11-031-44/+40
| | | | header files.
* param: Remove duplicate initialization of 'share backend' parameterAmitay Isaacs2011-11-081-2/+0
|
* torture: add torture_assert_guid_equal() macro.Günther Deschner2011-11-031-0/+10
| | | | Guenther
* lib/param: use SMB_SIGNING_IF_REQUIRED instead of SMB_SIGNING_SUPPORTEDStefan Metzmacher2011-11-031-6/+7
| | | | metze
* lib/param: map "* signing = auto" to SMB_SIGNING_SUPPORTEDStefan Metzmacher2011-11-031-1/+1
| | | | metze
* s4:smb_server: change the default for "server signing" to "default"Stefan Metzmacher2011-11-031-1/+1
| | | | metze
* lib/param: change the default for "client signing" to "default"Stefan Metzmacher2011-11-031-1/+2
| | | | metze
* pyldb: Remove duplicate definition of SYNTAX_DN.Jelmer Vernooij2011-11-021-1/+0
|
* ldb: fix compiler warningDavid Disseldorp2011-11-021-1/+1
| | | | | | | Mixed declarations and code. Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Wed Nov 2 16:51:24 CET 2011 on sn-devel-104
* tdb2: don't be fascist when TDB_VERSION1 is specified.Rusty Russell2011-11-022-5/+40
| | | | | | | | | | | | | | | We currently insist that a tdb file be a version1 file if tdb_open() is passed the TDB_VERSION1 flag; we fail if it's actually a tdb2. But that makes generic wrappers harder, and is unlikely to be what the user wants: if they do, they can check tdb_get_flags() & TDB_VERSION1 after opening. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 9691464a16ef22d6acadfef209666381dfe22b2f) Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Wed Nov 2 08:38:38 CET 2011 on sn-devel-104
* tdb2: use HAVE_LIBREPLACE instead of _SAMBA_BUILD_.Rusty Russell2011-11-013-5/+5
| | | | | | | | | | | This is what lib/tdb2 really wants: to know if it should use normal headers or replace.h. It currently uses _SAMBA_BUILD_, which is wrong for ldb, for example. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Tue Nov 1 03:19:58 CET 2011 on sn-devel-104