summaryrefslogtreecommitdiff
path: root/selftest/selftest.pl
Commit message (Collapse)AuthorAgeFilesLines
* CVE-2020-25719 CVE-2020-25717: selftest: remove "gensec:require_pac" settingsStefan Metzmacher2021-11-091-2/+0
| | | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=14799 BUG: https://bugzilla.samba.org/show_bug.cgi?id=14556 BUG: https://bugzilla.samba.org/show_bug.cgi?id=14561 [jsutton@samba.org Added knownfail entries] Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: use SAMBA_DEPRECATED_SUPPRESS=1 for all testsStefan Metzmacher2021-07-141-0/+2
| | | | | | | | | | The deprecation warnings are filling the logs and make it hard to find/see real problems. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Jul 14 21:57:11 UTC 2021 on sn-devel-184
* selftest: Allow to set the 'log level' for clientsAndreas Schneider2021-03-311-1/+2
| | | | | | | | | | | | This allows to set the 'log level' for clients on the command line: make test TESTS=wurst CLIENT_LOG_LEVEL=10 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Mar 31 21:20:23 UTC 2021 on sn-devel-184
* selftest: Fix libasan preloadAndreas Schneider2021-02-031-1/+1
| | | | | | | | libasan.so needs to be the first library which is preloaded or it wont work. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: make/use a copy of GNUPGHOMEStefan Metzmacher2021-01-271-1/+4
| | | | | | | That makes it possible to run tests from a read only source tree. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* selftest: allow a prefix under /m/username/Stefan Metzmacher2021-01-271-1/+1
| | | | | | | We only want to match/replace only a '.' pathname component not any single character pathname compoment! Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftest: set pid directory in client's smb.confSamuel Cabrero2020-09-161-0/+2
| | | | | | | | | Set a pid file directory to avoid the following testparm error: ERROR: pid directory /usr/local/samba/var/run does not exist Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
* selftest: Create client directories in a loopSamuel Cabrero2020-09-161-50/+22
| | | | | Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
* selftest: use 10.53.57.0/8 instead of 127.0.0.1/8Stefan Metzmacher2020-03-271-0/+1
| | | | | | | | | | This makes our testing much more realistic and allows the removal of some knowfail entries. It also means the testing with network namespaces on Linux can use the same addresses as our socket wrapper testing. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftest: always explicitly use RESOLV_CONFStefan Metzmacher2020-03-271-0/+4
| | | | | | | By default point RESOLV_CONF to a non-existing file and use the per environment RESOLV_CONF explicitly where needed. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftest: Set KRB5RCACHETYPE to none for selftestAndreas Schneider2020-03-101-0/+1
| | | | | | | | This is required that out tests work with MIT KRB5 1.18. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Reviewed-by: Isaac Boukris <iboukris@samba.org>
* selftest: move {setup,cleanup}_pcap() to selftest/target/Samba.pmStefan Metzmacher2020-02-061-33/+7
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftest: force LC_ALL=en_US.utf8 LANG=en_US.utf8Stefan Metzmacher2020-02-061-0/+2
| | | | | | | | That makes sure we have the same as on gitlab runners (see bootstrap/config.py). Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftest: simplify logic in setup_envDouglas Bagnall2020-02-041-8/+10
| | | | | | Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: avoid redeclaring perl variablesDouglas Bagnall2020-02-041-1/+1
| | | | | | | | | None of these ones are doing any harm, we just want to silence these warnings. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: enable perl warningsDouglas Bagnall2020-02-041-0/+1
| | | | | | | | | After this we will see more noise with each test run, and these warnings will be addressed in following commits. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3:mdssvc: add unit tests for the Spotlight to Elasticsearch parserRalph Boehme2019-10-091-0/+1
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Noel Power <noel.power@suse.com>
* selftest: Remove obsolete LDAP backend hooks from selftest.pl et alAndrew Bartlett2019-08-301-19/+1
| | | | | | | | This removes some quite complex logic that has not been used since the LDAP backend project was shelved prior to 2011. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
* selftest: explicitly set "client min protocol = CORE"Stefan Metzmacher2019-07-081-0/+1
| | | | | | | | | This is the current default and what 'make test' assumes currently. The next commit will change the default to disable SMB1. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* selftest: Add linux namespace support (USE_NAMESPACES=1)Tim Beale2019-05-311-0/+10
| | | | | | | | | | | | | | | | | | | | | | This hooks up the selftest/ns/* scripts added earlier with the selftest system, so developers can optionally run a testenv or test using linux namespaces instead of socket-wrapper. The idea is this is experimental functionality that we can extend further in future, in order to make testing Samba more versatile. + The top-level WAF script now does an 'unshare' to create a new top-level 'selftest' namespace in which to create the testenv(s). + selftest.pl creates a common 'selftest0' bridge to connect together the individual DCs. + Update Samba.pm so it can use real IPs instead of loopback addresses. In fork_and_exec(), we add a couple of hooks so that the binary gets started in a different namespace (using unshare/start_in_ns.sh), and the parent process connects the new child namespace up to the common selftest0 bridge (using add_bridge_iface.sh). Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Allow for wider range of terminals (besides xterm)Tim Beale2019-05-311-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow developers to override the default @term_args, as well as the terminal itself. Currently, due to the nature of the args we pass to xterm (i.e. 'echo -e "blah.." && bash'), it doesn't make it very flexible for use with other terminals. By dropping these additional @term_args, it makes it much easier to slot in an alternative terminal. For example, these commands now work (more or less). TERMINAL="terminator" TERMINAL_ARGS="-x bash" \ SELFTEST_TESTENV=ad_dc make testenv TERMINAL="bash" TERMINAL_ARGS="" \ SELFTEST_TESTENV=nt4_dc make testenv TERMINAL="bash" TERMINAL_ARGS="--norc" \ SELFTEST_TESTENV=none make testenv bash is usable, but a little weird because its output is still being piped. Also bash with ad_dc is a little weird because we're using tee for the DC's stdout. (I'd also recommend --norc, as it makes it easier to differentiate between the testenv shell). Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Restore IPs 12-16 for selftest clientTim Beale2019-03-271-1/+4
| | | | | | | | | | | | | | | The assumption that tests only used the .11 IP was wrong. The winsreplication test tries to use multiple different IPs - CI doesn't fail when we remove the additional IPs, but it starts to skip test cases. + Update get_interfaces_config() and get_ipv4_addr() so we can add multiple different IPs for the same host. + Update selftest.pl so the client gets 6 IP addresses. + Update comments to better reflect this dependency. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Increase nss_wrapper max host entries handlingAndreas Schneider2019-03-221-0/+3
| | | | | | | | The logs are spammed with: nwrap_ed_inventarize_add_new: Hash table is full (Cannot allocate memory)! Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* selftest: Use new helper function for client's smb.conf IPTim Beale2019-03-141-1/+1
| | | | | | | | | This has the side-effect of giving the client an IPv6 address, which it hasn't had up until now. But it at least makes the client and server interfaces settings consistent, and gets rid of a hard-coded IP address. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Remove secondary client interfacesTim Beale2019-03-141-6/+1
| | | | | | | | | | | | | I can't see anything in the tests that ever tries to use these other IP addresses. While it makes sense that we might want the tests to simulate multiple different clients (with different IPs), we don't appear to do this currently. Removing the spare client addresses minimizes the number of hard-coded IP addresses in selftest. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Move @exported_envvars into Samba.pmTim Beale2019-03-121-98/+4
| | | | | | | | This brings it closer to the code that actually sets these variables (i.e. Samba3/4.pm). Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Remove unused SELFTEST_INTERFACESTim Beale2019-03-121-5/+0
| | | | | | | This doesn't appear to be used anywhere and dates back to 2008. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: force running with TZ=UTCStefan Metzmacher2019-02-271-0/+3
| | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Feb 27 11:24:59 UTC 2019 on sn-devel-144
* selftest: Abort if we fail to startup testenv with '--one' optionTim Beale2019-02-201-1/+5
| | | | | | | | | | The --one selftest.pl option means abort when the first test fails. However, when 'make test' fails to startup a testenv, it'll try to continue and run other tests by default. When '--one' is used, selftest.pl can just die() at that point. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Remove need for $RODC_DC_SERVER env variableTim Beale2019-02-181-3/+0
| | | | | | | | Same deal as earlier patch - we can use the $SERVER env variable instead and avoid the need for this extra variable. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Remove unused environment variablesTim Beale2019-02-181-40/+0
| | | | | | | | | | | | | | | | | | We only really want generic environment variables. For 2+ DC environments, we have the $SERVER and $DC_SERVER (aka PDC) variables. However, lots of testenvs also export really specific environment variables, e.g. VAMPIRE_2000_DC_SERVER_IP (despite that testenv being only used for a single test case). Previously the <testenv>_SERVER variable was used for DRS tests, but we can avoid the need to do this now. The other variables are not used at all. The RODC and TRUST environment variables are still used by a few tests. SUBDOM_DC_SERVER is only used within Samba4.pm and not exported. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Export DC conf path for special casesTim Beale2019-02-181-0/+7
| | | | | | | | | | | | | | | | | | | | | In a few rare cases, a test needs to assert aspects both client-side and server-side aspects. A typical example would be the audit logging, which is exercising client-side behaviour, but also asserting the server-side logging. Usually this has involved a kludge in tests.py to either use socket-wrapper explicitly, or hardcode in the server smb.conf path. This patch exposes the existing SERVERCONFFILE env variable to the tests. DC_SERVERCONFFILE has been added for 2 DC testenvs, where we need the PDC's smb.conf. The benefit of doing this way is the filepath/testenv-dependency logic is all self-contained with the Perl code, and it doesn't bleed out into tests.py as well. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Add new test to run krb5.kdc.canon against a user with an SPN for ↵Andrew Bartlett2018-09-051-0/+1
| | | | | | | | | | a UPN The failures in this test compared with Windows Server 1709 are added to knownfail. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* selftest: Remove excption for NSS_WRAPPER_HOSTS and RESOLV_WRAPPER_HOSTSAndrew Bartlett2018-09-031-5/+1
| | | | | | | These must be set correctly for each command in provision also. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* selftest: Allow make test to run with --address-sanitizerAndrew Bartlett2018-05-031-0/+11
| | | | | | | | Recent GCC versions enforce that the library must be in LD_PRELOAD if linked to a plugin (like a python module). Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* selftest: consistently produce high-res UTC timeJamie McClymont2018-03-221-3/+4
| | | | | | | | | | | | | | | Currently some subunit reporters throughout the codebase provide low-res time, meaning timestamps jump back and forth in the subunit file. Also, some subunit reporters produce UTC timestamps while others produce local time. UTC was chosen as the standard for this commit since all of the timestamps end with a Z (= Zulu = UTC). Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu Mar 22 13:26:44 CET 2018 on sn-devel-144
* selftest: Clear environment before provisionJamie McClymont2018-03-221-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, if an environment is being provisioned after a test which used ad_member_rfc2307, the provisioning process has all of the following in its environment: { 'DC_NETBIOSNAME' => 'LOCALDC', 'DC_PASSWORD' => 'locDCpass1', 'DC_SERVER_IP' => '127.0.0.21', 'DC_SERVER_IPV6' => 'fd00:0000:0000:0000:0000:0000:5357:5f15', 'DC_SERVER' => 'localdc', 'DC_USERNAME' => 'Administrator', 'DOMAIN' => 'SAMBADOMAIN', 'LOCAL_PATH' => '/.../st/ad_member_rfc2307/share', 'LOCK_DIR' => '/.../st/ad_member_rfc2307/lockdir', 'NETBIOSNAME' => 'RFC2307MEMBER', 'NMBD_SOCKET_DIR' => '/.../st/ad_member_rfc2307/nmbd', 'NSS_WRAPPER_GROUP' => '/.../st/ad_member_rfc2307/private/group', 'NSS_WRAPPER_HOSTNAME' => 'rfc2307member.samba.example.com', 'NSS_WRAPPER_HOSTS' => '/.../st/hosts', 'NSS_WRAPPER_MODULE_FN_PREFIX' => 'winbind', 'NSS_WRAPPER_MODULE_SO_PATH' => '/.../bin/default/nsswitch/libnss-wrapper-winbind.so', 'NSS_WRAPPER_PASSWD' => '/.../st/ad_member_rfc2307/private/passwd', 'PASSWORD' => 'loCalMemberPass', 'REALM' => 'SAMBA.EXAMPLE.COM', 'RESOLV_WRAPPER_HOSTS' => '/.../st/dns_host_file', 'SELFTEST_WINBINDD_SOCKET_DIR' => '/.../st/ad_member_rfc2307/winbindd', 'SERVER_IP' => '127.0.0.34', 'SERVER_IPV6' => 'fd00:0000:0000:0000:0000:0000:5357:5f22', 'SERVER' => 'RFC2307MEMBER', 'USERID' => '55668', 'USERNAME' => 'jamiemcclymont', } Unsurprisingly, some of these can cause issues for the provisioning process, if a reduced subset of tests is being run which causes the provision to encounter never-before-seen pairs of adjacent environments. For example, a run with only TESTS='--include-env=vampire_dc --include-env=ad_member_rfc2307' would fail to start up the vampire_dc with: Could not find machine account in secrets database: Failed to fetch machine account password from secrets.ldb: Could not find entry to match filter: '(&(flatname=SAMBADOMAIN)(objectclass=primaryDomain))' base: 'cn=Primary Domains': No such object: dsdb_search at ../source4/dsdb/common/util.c:4641 Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftest: generate a ramdon domain sid during provision and export as ↵Stefan Metzmacher2018-03-191-0/+3
| | | | | | | | | | | SAMSID/[TRUST_]DOMSID This will be useful for future tests. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13300 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftest: Fail testsuite on unknown environmentJamie McClymont2018-02-241-2/+2
| | | | | | | | | | | | | | The status quo was that tests in typo'd/unknown environments would be skipped. This was a side effect of the mechanism by which samba3 tests were run, which has now been changed. For an example of this being a problem in the past, see commit 523bd03f (which fixes an issue I noticed when reading subunit logs, and which did not fail the test). Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* selftest: change technique for running specific envsJamie McClymont2018-02-211-27/+7
| | | | | | | | | | | | | | | | | | | Currently testsuites excluded with --exclude/--include-env are skipped when encountered in the middle of a run, so they are included in progress reporting, and the @todo list does not accurately show what will be done. This change skips them earlier, preventing them from being added to @todo, as is done with pattern-based including/excluding. As well as making the progress indicator more accurate, this means that selftest.pl can use @todo to determine when we are finished with an environment. Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Feb 21 07:47:58 CET 2018 on sn-devel-144
* selftest: move to declaratively specifying environments and their dependenciesJamie McClymont2018-02-211-6/+8
| | | | | | | | | | | | | | This removes the tangle of code for starting up dependencies, and allows selftest.pl to query dependencies (hence it can know when things can be shut down early and how to order environments for optimal memory usage - that patch not yet submitted). It also removes the slightly hacky special-casing of the ad_members, and sets $target->{vars} centrally (so each setup_ function does not need to). Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: remove prototypes from some subroutine templatesJamie McClymont2018-02-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rationale, as sent to samba-technical: > Why do you remove the explicit argument declarations for so many functions? > These declarations help catch usage errors, i.e. wrong number of calling > arguments, especially when you add arguments to functions. My understanding is that because these are object methods, the prototypes actually were not providing the checking benefits [see PERLSUB(1) (section "Prototypes")] -- this is evidenced by the fact that some of the prototypes I removed actually had the wrong number of arguments! Now that the subroutines are being dynamically called by function references, the checking also appears not to apply [see the same source]. There was also a more concrete reason: the setup code will automatically set up multiple environment dependencies and pass each of their vars as an individual parameter. Accomplishing this was [seemingly] impossible with the prototypes in place. Additionally, there seems to be a consensus among perl devs that prototypes are generally harmful: see this post (by my colleague) for example: http://www.perlmonks.org/?node_id=406231 Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Add RODC variables to list of those exportedGarming Sam2018-02-151-0/+6
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13269 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: allow more time for testsDouglas Bagnall2017-12-291-2/+2
| | | | | | | | | | | Maybe make test *should* run in under 4 hours, but it currently doesn't. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Dec 29 02:48:59 CET 2017 on sn-devel-144
* selftest: apply NSS_WRAPPER_HOSTNAME to child processesJamie McClymont2017-12-201-0/+1
| | | | | | | | | | | | | | | | | Currently, Samba3.pm returns a value for NSS_WRAPPER_HOSTNAME in provision, but selftest.pl does not apply it, so Samba3.pm /also/ sets it in its own environment. This breaks a command like this: make test TESTS="samba3.blackbox.smbclient_ntlm.plain samba3.rpc.samba3.netlogon" ... since samba3.blackbox.smbclient_ntlm.plain runs in an nt4_member env, thereby setting ENV{NSS_WRAPPER_HOSTNAME} to the value for a member, and samba3.rpc.samba3.netlogon depended on NSS_WRAPPER_HOSTNAME as a username (until previous commit). Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Make location of log file available in testsChristof Schmitt2017-12-151-0/+1
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13189 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:bind_dlz: Use the 'binddns dir' if possibleAndreas Schneider2017-09-051-0/+7
| | | | | | | | | | | The code makes sure we are backwards compatible. It will first check if we still have files in the private directory, if yes it will use those. If the the file is not in the private directory it will try the binddns dir. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org>
* selftest: Make --include-env and --exclude-env use the base env nameAndrew Bartlett2017-07-241-3/+3
| | | | | | | | | | | | | | | | | | | | The code as deployed would have required (eg) '--include-env=ktest --include-env=ktest:local' which was not done in autobuild, causing tests to be skipped. This patch restores the intended behaviour. This causes 33 testsuites to run, one more test (the newly added samba.tests.ntlmauth) than the old regex provided (before 602772159dfd1213385f42ecbf31136f57693b63). (The regression dropped us down to matching only 7 tests). BUG: https://bugzilla.samba.org/show_bug.cgi?id=12922 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Mon Jul 24 03:33:01 CEST 2017 on sn-devel-144
* selftest: Allow selftest.pl to run just some environmentsAndrew Bartlett2017-06-301-1/+33
| | | | | | | | This makes it easier to declare that some autobuild environments only run some selftest environments. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* selftest: Use 'ad_dc' as the default for testenvAndreas Schneider2017-06-201-1/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>