summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* build: Fix build issue on OpenBSD 5.xAmitay Isaacs2012-03-161-1/+1
| | | | | | | Do not use -Wl,-no-undefined flag on OpenBSD 5.x (tested on 5.0) Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Fri Mar 16 05:14:03 CET 2012 on sn-devel-104
* Remove more unnecessary shebang lines in python files.Jelmer Vernooij2012-03-161-2/+0
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Mar 16 02:48:52 CET 2012 on sn-devel-104
* util: Add --disable-fault-handling.Ira Cooper2012-03-153-0/+8
| | | | | | On some platforms you can not debug coredumps after the default signal handler gets done dumping core. This allows waf to have an option to disable our default signal handler.
* testtools/matchers.py: fix a comment typoMichael Adam2012-03-141-1/+1
|
* lib/util: only change umask during mkdir()Stefan Metzmacher2012-03-141-7/+4
| | | | metze
* lib/util: cope with races between lstat and mkdir in directory_create_or_exist()Stefan Metzmacher2012-03-141-2/+8
| | | | metze
* lib/util: use a helper variable in directory_create_or_exist()Stefan Metzmacher2012-03-141-2/+5
| | | | metze
* lib/util: do an early return on error directory_create_or_exist()Stefan Metzmacher2012-03-141-10/+10
| | | | metze
* lib/util: remove unneeded else branch in directory_create_or_exist()Stefan Metzmacher2012-03-141-21/+24
| | | | metze
* lib/util: don't start DEBUG output with 'error 'Stefan Metzmacher2012-03-141-1/+1
| | | | | | This confused the subunit code. metze
* lib/tdb: remove unnecessary XOPEN and FILE_OFFSET_BITS defines in test/Rusty Russell2012-03-1417-20/+0
| | | | | | | | | | These were relics: they don't need to be defined here as long as we are careful to include the replace headers before any standard headers (we are). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Wed Mar 14 10:12:26 CET 2012 on sn-devel-104
* lib/tdb2: remove unneccessary _FILE_OFFSET_BITS define in test/.Rusty Russell2012-03-141-2/+0
| | | | | | This was a relic from testing; it can interfere with compile. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/crypto: Detect CommonCrypto and use it if availableMatthieu Patou2012-03-143-1/+15
| | | | | | | | | | CommonCrypto/CommonDigest is available on Mac and there is function in the libc for MD5 calculation. MD5Final is a C define of CC_MD5_Final. Under some circumstance we have the symbol defined twice in samba binaries on Snow Leopard at least. By detecting CommonCrypto/CommonDigest we end up always using the system version if available.
* lib/tdb2: make summary handle capabilities properly.Rusty Russell2012-03-141-31/+13
| | | | | | | | | | Another PPC issue (endian?) revealed that the summary code did not handle capabilities correctly: in fact, it went into an endless loop. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Wed Mar 14 06:51:43 CET 2012 on sn-devel-104
* lib/tdb2: fix error string formatting.Rusty Russell2012-03-143-5/+7
| | | | | | | This caused a crash on PPC64 when we failed the mmap (found by failtest, reported by Amitay) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tdb2: Add gcc-style format attribute to tdb_logerr.Rusty Russell2012-03-141-4/+5
| | | | Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_wrap: Move to specific directory.Jelmer Vernooij2012-03-104-8/+9
| | | | | | | | | | It's a bit confusing to mix low-level and high-level libraries. We had multiple libraries in one directory, and there were have circular dependencies with other libraries outside that directory (in this case, samba-hostconfig). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 10 23:13:01 CET 2012 on sn-devel-104
* tevent: Install tevent.py into PYTHONARCHDIR rather than PYTHONDIR for ↵Jelmer Vernooij2012-03-101-1/+1
| | | | consistency with other Samba scripts.
* lib/tdb: fix tests for standalone out-of-tree.Rusty Russell2012-03-101-1/+2
| | | | | | | | | | | | Commit 4d58d0fa8f936e7efdc02e31c053d42a47b3e62a didn't work for lib/tdb outside the build tree: symlink was pointing to wrong place. Copy simplification from lib/tdb2, and fix the build farm. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Sat Mar 10 07:07:45 CET 2012 on sn-devel-104
* lib/util: Add a callback facility for debug messagesAndrew Bartlett2012-03-082-14/+52
| | | | | | | This will allow dlz_bind9 to put log messages somewhere useful, which may make it easier to debug. Andrew Bartlett
* failtest: don't assume FD_SETSIZE is maximum runtime fd.Rusty Russell2012-03-083-3/+68
| | | | | | | | | | | | | This breaks when rlimit is less. Unfortunately, valgrind (32 bit x86, 3.7.0.SVN, Ubuntu) fails to set the file limit properly on the test: reducing it to the obvious getrlimit/setrlimit/getrlimit works fine, so leaving diagnostics for another day. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit a85a809bb17af6b6cf6fa31b300c6622f64ee700) Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Thu Mar 8 06:30:48 CET 2012 on sn-devel-104
* addns: Fix the Solaris/Illumos build.Ira Cooper2012-03-072-0/+10
| | | | | | uuid_t is not defined without including sys/uuid.h, configure+waf checks added. Signed-off-by: Jeremy Allison <jra@samba.org>
* lib/tdb2: add --valgrind, --valgrind-log options.Rusty Russell2012-03-071-1/+13
| | | | | | | | | | Not used by default, since it slows down testing (on my laptop) from 22 seconds to 2 minutes 30 seconds. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Mar 7 04:57:21 CET 2012 on sn-devel-104
* lib/tdb2: wire up unit tests.Rusty Russell2012-03-072-1/+81
| | | | | | | | | The tests are ccan-style, so the names tell how to link them. This logic is generic, and could be moved to wafsamba, cleaned up, and used elsewhere. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tdb2: adapt unit tests to SAMBA environment.Rusty Russell2012-03-0789-147/+234
| | | | | | | | | | This means changing headers, implementing a simple tap-like wrapper, and also splitting out the helpers into those which are linked with the api* tests (which can't use non-public tdb2 functions) and those linked with the run* tests (which can). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/ccan: import failtest and required ccan modules for TDB2 unit tests.Rusty Russell2012-03-0769-0/+7608
| | | | | | | New modules: failtest, list, time, read_write_all and tlist. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3-auth: Remove security=share (depricated since 3.6).Andrew Bartlett2012-03-042-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes security=share, which Samba implemented by matching the per-share password provided by the client in the Tree Connect with a selection of usernames supplied by the client, the smb.conf or guessed from the environment. The rationale for the removal is that for the bulk of security=share users, we just we need a very simple way to run a 'trust the network' Samba server, where users mark shares as guest ok. This is still supported, and the smb.conf options are documented at https://wiki.samba.org/index.php/Public_Samba_Server At the same time, this closes the door on one of the most arcane areas of Samba authentication. Naturally, full user-name/password authentication remain available in security=user and above. This includes documentation updates for username and only user, which now only do a small amount of what they used to do. Andrew Bartlett -------------- / \ / REST \ / IN \ / PEACE \ / \ | SEC_SHARE | | security=share | | | | | | 5 March | | | | 2012 | *| * * * | * _________)/\\_//(\/(/\)/\//\/\///|_)_______
* change low FDs are handled in SambaAndrew Bartlett2012-03-043-12/+23
| | | | | | | | | | | We now only close fds 0, 1, 2 when we are a forked daemon, and take care not to close a file descriptor that we might need for foreground stdin monitoring. This should fix stdout logging in the lsa and epmapper deamons (ie in make test). Andrew Bartlett
* pyldb: Fix some more long lines, fix formatting.Jelmer Vernooij2012-03-021-14/+37
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Mar 2 05:26:56 CET 2012 on sn-devel-104
* pyldb: Avoid using PyErr_LDB_ERROR_IS_ERR_RAISE where PyErr_SetLdbError ↵Jelmer Vernooij2012-03-011-13/+16
| | | | | | | suffices. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Mar 1 23:06:55 CET 2012 on sn-devel-104
* build: look for backtrace_symbols in libexecAndrew Bartlett2012-03-011-1/+1
|
* lib/crypto: add aes_cmac_128_test.c as local.crypto.aes_cmac_128 testStefan Metzmacher2012-02-292-1/+93
| | | | metze
* lib/crypto: add aes_cmac_128* (rfc 4493)Stefan Metzmacher2012-02-294-4/+231
| | | | | | Thanks to Jeremy, Michael and Volker for the debugging! metze
* lib/crypto: fix hmac_sha256_final() prototypeStefan Metzmacher2012-02-271-1/+1
| | | | metze
* s3-param: Align lp_{max,min}protocol with lib/param namesAndrew Bartlett2012-02-271-0/+24
| | | | | | | | | | This adds an alisas to ensure that both our loadparm systems know all the names. I would like to move to the 'server ..' name as canonical, and this will be raised on the list. Andrew Bartlett
* lib/tdb2: rename tdb2.pc to tdb.pcRusty Russell2012-02-272-1/+1
| | | | | | | | | The library is called tdb, so the pc file must have the same name. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Mon Feb 27 06:59:58 CET 2012 on sn-devel-104
* lib/tdb2: 2.0.0 ABIAmitay Isaacs2012-02-211-0/+40
| | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Tue Feb 21 07:43:55 CET 2012 on sn-devel-104
* lib/tdb2: Convert tdb2 to a standalone libraryAmitay Isaacs2012-02-214-0/+99
| | | | | | | | Adds a Makefile, configure script, and tdb2.pc.in. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tdb2: Fix wscriptAmitay Isaacs2012-02-211-29/+52
| | | | | | | | Particularly fix the upcoming standalone build. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tdb2: Mark public function as suchAmitay Isaacs2012-02-219-40/+40
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tdb2: Do not include config.h in (to-be) public library, use replace.Amitay Isaacs2012-02-212-2/+22
| | | | | | | | | | | | Like tdb1, it's the caller's responsibility to set up various config options (eg. by #include "config.h") before including the public header. We use HAVE_CCAN for including the (private) CCAN headers, otherwise dummy macros are used. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tdb2: tools should use config.h, and replace where available.Rusty Russell2012-02-215-1/+28
| | | | | | | | The tdb2 tools should #include "config.h" before tdb2.h (about to become a requirement) and use libreplace where available. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/ccan: define HAVE_CCAN.Rusty Russell2012-02-211-0/+1
| | | | | | | | This allows public headers to use CCAN if available, and dummy macros if not (eg. tdb2). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* popt: Check for popt manually as well, not just using pkg-config.Jelmer Vernooij2012-02-201-1/+1
| | | | | | | Older systems don't provide a pkg-config file for popt. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Feb 20 15:13:32 CET 2012 on sn-devel-104
* build: Add libbsd as a dep for LIBREPLACE_HOSTCCAndrew Bartlett2012-02-201-4/+5
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Feb 20 02:58:20 CET 2012 on sn-devel-104
* popt: Use pkg-config file to look for popt.Jelmer Vernooij2012-02-191-1/+1
|
* lib/util: Remove unused sys_inet_makeaddr()Andrew Bartlett2012-02-172-11/+0
| | | | | | Found by callcatcher. Andrew Bartlett
* lib/util: Remove unused sys_gethostbyname()Andrew Bartlett2012-02-172-48/+0
| | | | | | Found by callcatcher. Andrew Bartlett
* lib/util: Remove sys_poll as it is no longer neededAndrew Bartlett2012-02-162-91/+0
| | | | | | | | | | | sys_poll() is only needed if the signal pipe is set up and used, but as no signal handler ever writes to the pipe, this can all be removed. signal based events are now handled via tevent. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org>
* lib/util: Remove unused sys_select_signal()Andrew Bartlett2012-02-162-19/+0
| | | | | | | | Now sys_poll needs to be cleaned up not to refer to the pipe that is now not used. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org>