summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-04-20lib/util/charset Always set *converted_size even on failureAndrew Bartlett1-4/+2
The caller may wish to inspect the partially converted string. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Apr 20 05:17:48 CEST 2011 on sn-devel-104
2011-04-20lib/util/charset create _handle functions for convert_string() et alAndrew Bartlett3-42/+86
This is now API compatible with the existing code in lib/util/charset lazy_initialize_conv() is no longer called as init_iconv() is called when the smb.conf is processed, and get_conv_handle() will auto-init with defaults if required. load_case_tables_library() is no longer requried as all binaries and libraries already load these in their entry points, as otherwise all the other string functions would fail. Andrew Bartlett
2011-04-20libcli/auth Move PAC parsing and verification in common.Andrew Bartlett12-689/+408
This uses the source3 PAC code (originally from Samba4) with some small changes to restore functionality needed by the torture tests, and to have a common API. Andrew Bartlett
2011-04-20libcli/auth: Move more kerberos wrapping in commonAndrew Bartlett3-229/+230
These functions are required to get the krb5 PAC parsing and verfication in common. Andrew Bartlett
2011-04-20s3-gse: Allow the GSSAPI wrapper to load a keytab using gss_krb5_import_cred()Andrew Bartlett5-24/+32
This Heimdal function does not set the global state, and allows the GSSAPI server to progress further when compiled against Heimdal (such as in the top level build). The ability to specify a keytab has been removed from the API as it is unused, and and the Heimdal function (avoiding setting global variables) works with an open keytab. Andrew Bartlett
2011-04-19tdb_backup: avoid transaction on backup file, use lockallSimo Sorce1-8/+13
Transactions have the side effect of generating bigger files. By removing the transaction files get as much as 30% smaller. Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Tue Apr 19 23:34:37 CEST 2011 on sn-devel-104
2011-04-19Fix Bug #8099 setpwent() actually does endpwent() and vice versa on FreeBSDSergey Korsak1-4/+4
Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Apr 19 19:15:14 CEST 2011 on sn-devel-104
2011-04-19tdb: make sure we skip over recovery area correctly.Rusty Russell3-17/+44
If it's really the recovery area, we can trust the rec_len field, and don't have to go groping for bitpatterns. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Tue Apr 19 14:15:22 CEST 2011 on sn-devel-104
2011-04-18tdb_expand: limit the expansion with huge recordsSimo Sorce1-5/+20
ldb can create huge records when saving indexes. Limit the tdb expansion to avoid consuming a lot of memory for no good reason if the record being saved is huge.
2011-04-18tdb: tdb_repack() only when it's worthwhile.Rusty Russell1-6/+31
tdb_repack() is expensive and consumes memory, so we can spend some effort to see if it's worthwhile. In particular, tdbbackup doesn't need to repack: it started with an empty database! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-04-18tdb: fix transaction recovery area for converted tdbs.Rusty Russell1-2/+4
This is why macros are dangerous; these were converting the pointers, not the things pointed to! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-04-19selftest Consolidate server wall clock time limitsAndrew Bartlett4-50/+44
This helps ensure that we don't have the Samba3 servers stop before the full make test is finished. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Apr 19 09:03:07 CEST 2011 on sn-devel-104
2011-04-19selftest: move warning about invalid environments up to selftest.plAndrew Bartlett2-2/+5
2011-04-19selftest: Don't specify SELFTEST_TARGET as an env variableAndrew Bartlett4-4/+2
It is much more reliable to specify it as a direct parameter, and this is needed for the combined 'make test'. Andrew Bartlett
2011-04-19selftest Test for socket_wrapper support in combined samba target as wellAndrew Bartlett1-0/+3
2011-04-19selftest: Add hooks to enable a combined selftest run.Andrew Bartlett1-1/+12
Andrew Bartlett
2011-04-19s4-selftest Rename Samba4 'member' test environment to s4memberAndrew Bartlett2-18/+18
This will avoid a conflict with the s3 'member' environment. Andrew Bartlett
2011-04-19s4-selftest: Move Samba4 test interfaces out of the way of the Samba3 tests.Andrew Bartlett1-8/+8
This avoids a conflict when we merge the test suites.
2011-04-19s3-selftest Fix interface localktest6 listens on.Andrew Bartlett1-1/+1
Andrew Bartlett
2011-04-19selftest Add combined 'Samba' target moduleAndrew Bartlett4-3/+53
To work around environment variable handling, the initialisation of NSS_WRAPPER_WINBIND_SO_PATH is pushed in to Samba3.pm (the s3 autoconf build still overrides this) Andrew Bartlett
2011-04-19s4-selftest: Avoid duplicating the servers IP in the provision() sub arguments.Andrew Bartlett1-4/+9
This should make it easier to change the IP address. Andrew Bartlett
2011-04-19s3-selftest Rename s3 DC environment to s3dcAndrew Bartlett3-56/+56
This should avoid a clash with the s4 DC environment in a future combined 'make test'. Andrew Bartlett
2011-04-19s4-selftest: Stop creating netbios aliases everywhereAndrew Bartlett2-33/+9
This reduces some of the clutter when we have quite so many server configurations starting. The one case that actually needs an alias (dc environment for the test_nmblookup.sh test) will still keep it. Andrew Bartlett
2011-04-19selftest: put the target on the environmentAndrew Bartlett1-5/+11
This will allow us to have a 'switch' target type that creates environments from Samba3 or Samba4 as required. Andrew Bartlett
2011-04-19lib/socket_wrapper: allow up to 32 interfaces for a bigger 'make test'Andrew Bartlett1-1/+4
The combined s3/s4 'make test' needs more interfaces. Andrew Bartlett
2011-04-19Fix bug 8088 - rpccli_samr_chng_pswd_auth_crap segfaults if any input blobs ↵Jeremy Allison1-12/+9
are null. Correct fix - ensure we have enough length, and correctly null out passed in structs if not. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Apr 19 00:17:08 CEST 2011 on sn-devel-104
2011-04-18s3 waf: Mimic the autoconf check for netgrentKai Blin1-3/+7
The autoconf check for netgrent headers makes sure that the compiler flag used (-Werror-implicit-function-declaration) is recognized by the compiler before using it for the test. Mimic this behaviour in the waf checks. Thanks to gd for noticing this. Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon Apr 18 16:24:15 CEST 2011 on sn-devel-104
2011-04-18s3 autobuild: Fix CFLAG check for netgrent testsKai Blin1-1/+1
In 45ac8ffd I accidently added the wrong flag check. Fix this. Thanks to gd for noticing. Signed-off-by: Günther Deschner <gd@samba.org>
2011-04-18s3: Fix the build of vfs_gpfs.cVolker Lendecke1-0/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Apr 18 14:40:07 CEST 2011 on sn-devel-104
2011-04-17samba-tool: fix machinepw command so that we use the full path to the secret ↵Matthieu Patou1-3/+6
database and raise an error if secret can't be found Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sun Apr 17 13:12:27 CEST 2011 on sn-devel-104
2011-04-17s3: Use \0 instead of NULL when 0-terminating a stringVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Apr 17 12:26:15 CEST 2011 on sn-devel-104
2011-04-16s3: guest sesssetup is only 13 wordsVolker Lendecke1-1/+1
(cherry picked from commit 69650a2aaa8649570261df7efccb35ad76d7cfc1) Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Apr 16 16:20:08 CEST 2011 on sn-devel-104
2011-04-16s3: Remove an unused variableVolker Lendecke1-3/+0
2011-04-16s3: Use tevent_req_nterror properly in a few placesVolker Lendecke1-12/+6
2011-04-16Remove broken link.Jelmer Vernooij1-4/+0
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Apr 16 14:59:15 CEST 2011 on sn-devel-104
2011-04-16util: Build samba-util without unresolved symbols.Brad Hards1-33/+60
This is useful for the Samba4 case where external users otherwise need to link to (private) libsamba-util-common. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sat Apr 16 12:29:33 CEST 2011 on sn-devel-104
2011-04-16s4-heimdal: Allow any kvno to match when searching the keytab.Andrew Bartlett1-2/+1
Windows does not use a KVNO when it checks it's passwords, and MIT doesn't check the KVNO when no acceptor identity is specified (looping over all keys in the keytab). Andrew Bartlett
2011-04-16s3-gse Allow GSSAPI wrapper to compile against HeimdalAndrew Bartlett1-1/+3
2011-04-16selftest: Allow the top level build to run the samba4 or samba3 testsAndrew Bartlett1-17/+33
This is selected with for example ./buildtools/bin/waf test --target=samba3 Andrew Bartlett
2011-04-16s4-heimdal_build: Add extra HAVE defines needed for the source3 krb5 codeAndrew Bartlett1-0/+3
2011-04-16selftest Remove selftest of the test subsystemAndrew Bartlett2-22/+0
The intereactions between selftest.pl and the target are now too complex to unit test like this any more. Andrew Bartlett
2011-04-16selftest: Move Samba4 selftest wscript to the top levelAndrew Bartlett2-2/+2
2011-04-16selftest Add binary mappings for samba3 selftestAndrew Bartlett8-32/+43
This will help us have a top level 'make test', working around the fact that the --eanble-s3build has different names for some of these binaries, without fixing the names forever (we can just change the mapping later). Andrew Bartlett
2011-04-16selftest: Start using the binary mapping at the python layer as wellAndrew Bartlett3-2/+12
2011-04-16selftest: Remove duplication between BUILDIR and BINDIRAndrew Bartlett21-32/+29
Just have BINDIR, and have it default to ./bin Andrew Bartlett
2011-04-16selftest: Remove unused BUILDDIR_ABS environment variableAndrew Bartlett1-1/+0
2011-04-16selftest: Provide a single bindir_path function across all targetsAndrew Bartlett5-62/+71
This will allow a mapping to be made between things like smbtorture4 -> smbtorture that is correct for the different build environments. Andrew Bartlett
2011-04-16Trying to track down the SMB2 error. Add an invariant test.Jeremy Allison1-1/+4
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Apr 16 02:15:38 CEST 2011 on sn-devel-104
2011-04-15Use handle based xattr set if available.Jeremy Allison1-4/+5
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Apr 15 22:11:12 CEST 2011 on sn-devel-104
2011-04-15Ensure vfs_chown_fsp() is safe against races.Jeremy Allison3-6/+74