summaryrefslogtreecommitdiff
path: root/selftest/target/Samba4.pm
AgeCommit message (Collapse)AuthorFilesLines
2013-03-11Revert "Ensure the masks don't conflict with the ACL checks."Andrew Bartlett1-2/+1
This reverts commit 78594909b8b22bd07978922b1c85dfd6f6456963 which was needed by 7622aa16adeb00bf161a6dd07664c37125391272. This change masked bug #9462 which was fixed by 2013bb9b4dbed747921df2591068e2765428f57d. The issue was that the defaults for the substituted parameters did not match the old parameter. Changing the values in our test suite hid the issue, but did not fix the issue. (Additional change in the revert is to correct the expected ACL value in posixacl.py due to changed implied inherited permissions). Andrew Bartlett Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Mon Mar 11 19:46:24 CET 2013 on sn-devel-104
2013-03-09Add testcase for idmap_rfc2307 moduleChristof Schmitt1-0/+6
Create a new test environment with 'idmap config DOMAIN : backend = rfc2307'. A new test script adds LDAP records and queries them again for the mapped uid and gid. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat Mar 9 08:18:43 CET 2013 on sn-devel-104
2013-03-06selftest: Fix specification of --machinepass to actually set a unique passwordAndrew Bartlett1-6/+6
Because perl does not assert on dereferencing an invalid hash key we did not notice that the passwords were being set to machine, not machineloCalMemberPass. Andrew Bartlett Reviewed-by: Jeremy Allison <jra@samba.org>
2013-02-20ntdb: switch between secrets.tdb and secrets.ntdb depending on 'use ntdb'Rusty Russell1-1/+1
Since we open with dbwrap, it auto-converts old tdbs (which it will rename to secrets.tdb.bak once it's done). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date(master): Wed Feb 20 07:09:19 CET 2013 on sn-devel-104
2013-01-27selftest: rename 'promoted_vampire_dc' to 'promoted_dc'Stefan Metzmacher1-9/+9
Unix domain socket are limited to 104 characters on Linux. Using something like this fails as it uses more than 104 characters: '/memdisk/autobuild/flakey/b232141/samba/bin/ab/promoted_vampire_dc/private/smbd.tmp/msg/msg.482379.2147483647' Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2013-01-10selftest: Add test for rfc2307 mapping handlingAndrew Bartlett1-1/+7
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2012-12-22Recent coverity changes added directory_create_or_exist() checks to many ↵Jeremy Allison1-0/+6
directories. These may not be needed, but in the meantime - ensure "make test" works again by chmod'ing the created test directories from 0777 to 0755. Reviewed-By: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Dec 22 02:08:33 CET 2012 on sn-devel-104
2012-11-30s4:dsdb/acl_read: enable acl checking on search by default (bug #8620)Stefan Metzmacher1-3/+0
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2012-11-06selftest: check that samba-tool gpo works for basic operationsAndrew Bartlett1-1/+1
Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-10-05Ensure the masks don't conflict with the ACL checks.Jeremy Allison1-1/+2
Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Oct 5 00:36:40 CEST 2012 on sn-devel-104
2012-10-03selftest: Always build a linux-style nss_winbind for nss_wrapperAndrew Bartlett1-1/+1
2012-09-12selftest: let provision_plugin_s4_dc use SMB3Stefan Metzmacher1-1/+1
metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Sep 12 18:30:48 CEST 2012 on sn-devel-104
2012-09-12lib/param: change the default for 'allow dns updates' to 'secure only'Stefan Metzmacher1-3/+2
metze
2012-09-12selftest:Samba4: don't provision with BIND9_DLZStefan Metzmacher1-21/+34
metze
2012-09-12s4 dns: Run python tests in fl2003dc envKai Blin1-2/+2
2012-09-11selftest/Samba4: make use of samba-tool domain provisionStefan Metzmacher1-1/+3
metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Sep 11 10:15:23 CEST 2012 on sn-devel-104
2012-09-08selftest/knownfail: we pass some samba3.smb2.durable-* tests nowStefan Metzmacher1-0/+6
metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Sat Sep 8 23:18:39 CEST 2012 on sn-devel-104
2012-09-04s3-passdb: Rename pdb_samba4 to samba_dsdb and autoconfigure when we are a AD DCAndrew Bartlett1-2/+0
The name samba_dsdb is not ideal, but it matches the primary ldb module we use, and more importantly it avoids having '4' in the name. We should slowly avoid using the term samba4 in long-term places like the smb.conf because it is confusing to users given we are shipping Samba 4.0 as an AD DC as well as all the other supported roles (domain member/standalone server/classic DC) Additionally, samba4 will be an odd name when we eventually release Samba 5.0! samba4 remains accepted as an alias to ensure existing smb.conf files load, but to allow changes here in the future, we set the value during the smb.conf load, and not during the provision when we are an AD DC. This simplifies the default smb.conf for the vast majority of our users and reduces the number of things listed in smb.conf files that we later have to work around if we wish to change the name/implementation of the passdb glue module again. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Sep 4 04:45:16 CEST 2012 on sn-devel-104
2012-08-31Add a comment showing where to set log level in tests.Jeremy Allison1-0/+3
2012-08-30selftest: Add missing printing options for plugin_s4_dc.Andreas Schneider1-0/+24
2012-08-30selftest: Define the log directory for s3fs.Andreas Schneider1-0/+3
2012-08-29selftest: Add a test for smbclient --machine-pass without secrets.tdbAndrew Bartlett1-0/+9
Errors in handling the upgrade case without a matching secrets.tdb caused segfaults in the server. This essentially tests both sides. Andrew Bartlett
2012-08-23s4-selftest: Always set vfs objects in selftest smb.confAndrew Bartlett1-2/+2
This sets it for all enviornments, as it is harmless if ntvfs is used and critical if the provision script runs in s3fs mode. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Aug 23 16:42:41 CEST 2012 on sn-devel-104
2012-08-23s4-provision: set POSIX ACLs to for use with the smbd file server (s3fs)Andrew Bartlett1-1/+2
This handles the fact that smbd will rarely override the POSIX ACL enforced by the kernel. This has caused issues with the creation of group policies by other members of the Domain Admins group. Andrew Bartlett
2012-08-23file_server: Move default VFS module settings to loadparm.cAndrew Bartlett1-1/+1
This means that any utility that calls into the VFS layer will get the right modules. Because we use the fake_acls backend we need to override this whole list in Samba4.pm however. Andrew Bartlett
2012-08-23selftest: Set --use-ntvfs for rodc, vampire_dc, promoted_vampire_dc and ↵Andrew Bartlett1-4/+4
subdom_dc
2012-08-23selftest: Specify --use-ntvfs for the chdcpass environmentAndrew Bartlett1-1/+1
2012-08-22selftest: Specify --use-ntvfs to provision in test scriptsAndrew Bartlett1-18/+20
Because these run as non-root, we need to avoid doing things that will fail during the provision. The main test of the s3fs provision is the plugin_s4_dc environment with a smb.conf that specifies vfs_fake_acls. Andrew Bartlett
2012-08-20selftest: Use new fake_acls moduleAndrew Bartlett1-1/+1
This isolates us from the OS ACL library, and allows chown to 'work' when we are non-root. In turn, this ensures that we can test the SMB -> POSIX layer even when the OS would refuse the set due to non-root or simply not having acls enabled on this particular file system. This should make a number of build farm tests much more reliable, and allows a number more tests to pass. Andrew Bartlett
2012-08-17s3:selftest: add some tests against a share the requires encryptionStefan Metzmacher1-0/+4
metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Aug 17 16:34:26 CEST 2012 on sn-devel-104
2012-07-06s4-selftest: Test samba-tool domain dcpromoAndrew Bartlett1-1/+130
This needs a new environment to test it properly. This requires a raise in the number of socket wrapper interfaces. Andrew Bartlett
2012-07-03selftest: Give Samba4 processes a little longer to clean upAndrew Bartlett1-1/+1
This may help write out gcov data correctly. Andrew Bartlett
2012-06-27selftest: Add extra users to nss_wrapperAndrew Bartlett1-1/+1
These will be used for a test using pdbtest and to run the client test environment under nss_wrapper. Andrew Bartlett
2012-06-20s4-provision: Remove last unused remenants of the 'sid generator' configurationAndrew Bartlett1-9/+0
This was part of the now-abandoned S4 AD LDAP backend project. Andrew Bartlett
2012-06-16s4-lib/param: FLAG DAY for the default FILE SERVERAndrew Bartlett1-1/+2
This commit changes the default file server to be s3fs. Existing installs wishing to keep the ntvfs file server need to set this in their smb.conf: server services = +smb -s3fs dcerpc endpoint services = +winreg +srvsvc Andrew Bartlett
2012-06-05Tests for bug #8972 - Add a posix_share definition to s4 so we can do raw ↵Jeremy Allison1-0/+8
posix permissions checks.
2012-05-31selftest:Samba4: use the nmblookup4 binary mappingMichael Adam1-1/+1
2012-05-24s4-provision: Make s3fs the default way to install a new Samba4 DCAndrew Bartlett1-0/+1
With s3fs now well settled into master, we now throw the swtich and make it the default. There is still much to do, but we need to be using s3fs by default to find out exactly what that is. Andrew Bartlett
2012-05-11samba4: When running samba_dnsupdate during tests, use the testJelmer Vernooij1-7/+7
smb.conf. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri May 11 18:18:53 CEST 2012 on sn-devel-104
2012-05-02selftest: 'store dos attributes = yes' is now set in fileserver.confAndrew Bartlett1-4/+0
As such, there is no need to set it or the permissions-based mappings here as well. Andrew Bartlett
2012-05-02selftest: Do not start samba4 srvsvc in plugin_s4_dc modeAndrew Bartlett1-1/+1
2012-05-02selftest: add hooks required for printing to Samba4.pmAndrew Bartlett1-0/+16
2012-05-02selftest: Use same pattern for path to share as Samba3.pmAndrew Bartlett1-13/+15
This helps as we declare tests that were previously targetted at Samba3 only. Andrew Bartlett
2012-05-02selftest: Add hideunread share to plugin_s4_dcAndrew Bartlett1-0/+3
2012-05-02selftest: run plugin_s4_dc with 'acl_xattr xattr_tdb streams_depot' VFS modulesAndrew Bartlett1-0/+1
2012-05-02selftest: prepare to run smbtorture tests against plugin_s4_dcAndrew Bartlett1-10/+47
2012-04-18s3fs: Use xattr_tdb format for xattr storageAndrew Bartlett1-1/+1
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Apr 18 05:39:01 CEST 2012 on sn-devel-104
2012-04-03file_server: Move vfs objects initialisation into file_server.c smb.conf wrapperAndrew Bartlett1-3/+0
2012-03-15s4:selftest: make the use of writetimeupdatedelay consistent across all testsMichael Adam1-3/+3
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Mar 15 20:20:13 CET 2012 on sn-devel-104
2012-03-11s3 selftest: Allow DNS updates during testingKai Blin1-1/+3