summaryrefslogtreecommitdiffstats
path: root/selftest/target
Commit message (Collapse)AuthorAgeFilesLines
* selftest-s4: set the posix:eadb at the global levelMatthieu Patou2010-01-211-3/+1
|
* s3 selftest: Allow the enumeration of users and groupsKai Blin2010-01-141-0/+2
| | | | This fixes the WINBINDD_GETPWENT test.
* s4 - SID allocation using FDS DNA pluginEndi S. Dewata2009-11-021-1/+13
|
* s4-selftest: lower some of the timeouts during make testAndrew Tridgell2009-10-231-5/+5
| | | | | This speeds up some of the delay based tests by a lot. There is no need to have long delays during testing.
* s4:selftest Confirm that there isn't a listener on the ldapi:// socketAndrew Bartlett2009-08-171-1/+5
| | | | | | | This should help debug problems with 'make test' of the LDAP backend, if a stray listener is still around. Andrew Bartlett
* s4:provision Rework provision-backend into provisionAndrew Bartlett2009-08-171-46/+14
| | | | | | | | | | | | | | | This removes a *lot* of duplicated code and the cause of much administrator frustration. We now handle starting and stopping the slapd (at least for the provision), and ensure that there is only one 'right' way to configure the OpenLDAP and Fedora DS backend We now run OpenLDAP in 'cn=config' mode for online configuration. To test what was the provision-backend code, a new --ldap-dryrun-mode option has been added to provision. It quits the provision just before it would start the LDAP binaries Andrew Bartlett
* Allow selection of the samba4 process model for 'make test'Andrew Tridgell2009-08-121-1/+10
| | | | | | | | | To choose the process model, set the environment variable SAMBA_PROCESS_MODEL to the desired model. This will allow us to enable the standard process model for some machines in the build farm without enabling it for all of them. I don't want to just enable it universally as I am concerned with total memory using during some of the tests.
* print server log on stderr as well as to log fileAndrew Tridgell2009-08-121-2/+5
| | | | | | | I think we are missing some important messages from the server during 'make test' because we don't show the log file contents during runs. This patch uses tee to put the log messages to stderr so we can see any server messages associated with the test that caused them.
* s4:selftest Don't start the slapd for the provision, only for the runAndrew Bartlett2009-08-121-17/+12
| | | | | | The provision-backend script now starts slapd for us Andrew Bartlett
* s4:selftest Make OpenLDAP guess it's own modules from now onAndrew Bartlett2009-08-121-46/+0
| | | | | | | In the releases of OpenLDAP we require (2.4.17) it can guess this much itself, so no need for us to do it. Andrew Bartlett
* s4:provision Rework and further automate setup of OpenLDAP backendOliver Liebel2009-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | heres the summary of all changes/extensions: - Andrew Bartlett's patch to generate indext - Howard Chu's idea to use nosync on the DB included, but made optional - slaptest-path is not needed any more (slapd -Ttest is used instead) and is therefore removed. slapd-path is now recommended when openldap-backend is chosen. its also used for olc-conversion - slapd-detection is now always done by ldapsearch (ldb module), looking anonymous for objectClass: OpenLDAProotDSE via our ldapi_uri. - if ldapsearch was not successfull, (no slapd listening on our socket) slapd is started via special generated slapdcommand_prov (ldapi_uri only) - slapd-"provision-process" startup is done via pythons subprocess. - the slapd-provision-pid is stored under paths.ldapdir/slapd_provision_pid. - after provision-backend is finished: --- slapd.pid is compared with our stored slapd_provision_pid. if the are unique, slapd.pid will be read out, and the slapd "provison"-process will be shut down. --- proper slapd-shutdown is verified again with ldb-search -> ldapi_uri -> rootDSE. --- if the pids are different or one of the pid-files is missing, slapd will not be shut down, instead an error message is displayed to locate slapd manually --- extended help-messages (relevant to slapd) are always displayed, e.g. the commandline with which slapd has to be started when everythings finished (slapd-commandline is stored under paths.ldapdir/slapd_command_file.txt)) - upgraded the content of the mini-howto (howto-ol-backend-s4.txt)
* added a uid_wrapper libraryAndrew Tridgell2009-08-051-3/+2
| | | | | | | | | | | | | | | | | | | | This library intercepts seteuid and related calls, and simulates them in a manner similar to the nss_wrapper and socket_wrapper libraries. This allows us to enable the vfs_unixuid NTVFS module in the build farm, which means we are more likely to catch errors in the token manipulation. The simulation is not complete, but it is enough for Samba4 for now. The major areas of incompleteness are: - no emulation of setreuid, setresuid or saved uids. These would be needed for use in Samba3 - no emulation of ruid changing. That would also be needed for Samba3 - no attempt to emulate file ownership changing, so code that (for example) tests whether st.st_uid matches geteuid() needs special handling
* s4:kerberos Add support for user principal names in certificatesAndrew Bartlett2009-07-281-7/+35
| | | | | | | | | | | | | | This extends the PKINIT code in Heimdal to ask the HDB layer if the User Principal Name name in the certificate is an alias (perhaps just by case change) of the name given in the AS-REQ. (This was a TODO in the Heimdal KDC) The testsuite is extended to test this behaviour, and the other PKINIT certficate (using the standard method to specify a principal name in a certificate) is updated to use a Administrator (not administrator). (This fixes the kinit test). Andrew Bartlett
* s4:kerberos Add test to show that we actually export the keytabAndrew Bartlett2009-07-271-1/+1
| | | | | | | | | | While it is hard to prove it is correct, at least the new 'nettestuser' principal and the Administrator principal are correct. We had to fix the case of 'Administrator' in the selftest code to match the DB, as the keytab lookup is case sensitive. Andrew Bartlett
* s3-selftest: forward NSS_WRAPPER_WINBIND_SO_PATH env to tests.Günther Deschner2009-06-081-0/+4
| | | | Guenther
* s3-selftest: Fix invalid /etc/group file used with nss_wrapper.Günther Deschner2009-05-301-0/+1
| | | | | | Found by torture test. Guenther
* s3-selftest: use nss_wrapper.pl as "add user to group" and "delete user from ↵Günther Deschner2009-05-281-5/+7
| | | | | | group" script. Guenther
* s3-selftest: add add and delete group scripts using nss_wrapper.Günther Deschner2009-05-201-0/+2
| | | | Guenther
* s3-printing: Fix vlp testprinter application.Günther Deschner2009-05-121-7/+7
| | | | | | | | | | Jeremy, we cannot just access cache_path() here without calling lp_load and friends as well as parsing configfile from the commandline in order to make "make test/selftest" find the correct conffile with path, etc. I just changed it to pass the target tdbfilename as an argument, ok ? Guenther
* s3-selftest: need to enable lanman auth in order make RPC-SAMR-PASSWORDS pass.Günther Deschner2009-05-081-0/+1
| | | | Guenther
* Specify explicit path to vlp, for those not having vlp in $PATH.Jelmer Vernooij2009-04-221-1/+9
|
* s4 selftest: Export the WINBINDD_SOCKET_DIR env varKai Blin2009-04-221-0/+1
|
* selftest: add a fake root user to nss_wrapper_passwd in s3.Günther Deschner2009-04-081-0/+1
| | | | | | | Needed to make some server calls to get_root_nt_token() succeed. make selftest/make test gurus, please check. Guenther
* selftest/Samba3: Test smb signing against the member serverStefan Metzmacher2009-03-231-0/+1
| | | | metze
* selftest/Samba3: always use the same timeout for all serversStefan Metzmacher2009-03-211-17/+15
| | | | metze
* s4:selftest: rename SMBD_VALGRIND => SAMBA_VALGRINDStefan Metzmacher2009-03-211-4/+4
| | | | metze
* selftest/Samba3: use the same sequence of signals to shutdown samba3 as with ↵Stefan Metzmacher2009-03-201-1/+4
| | | | | | | | | the shell scripts When we kill the timelimit process with SIGKILL, it can't kill its children... metze
* Make the 'modules.conf' generation in the LDAP selftest simplerAndrew Bartlett2009-02-241-52/+7
| | | | | | | The versions of OpenLDAP that we require don't need us to specify the location any more - slaptest knows this from it's build time. Andrew Bartlett
* Fix GDB_PROVISION modeSimo Sorce2009-02-231-1/+1
|
* selftest/Samba4: pass down the kdc address down to provision_raw_*()Stefan Metzmacher2009-02-101-13/+16
| | | | metze
* selftest/Samba4: split out ldap specific stuff from provision_raw_*()Stefan Metzmacher2009-02-101-60/+85
| | | | metze
* selftest/Samba4: split out share configurations of provision_raw*()Stefan Metzmacher2009-02-101-57/+67
| | | | metze
* selftest/Samba4: split provision() into provision_raw_prepare() and ↵Stefan Metzmacher2009-02-101-131/+184
| | | | | | | | | provision_raw_run() This functions will be reused soon for a Samba34.pm used by a 'make selftest34' metze
* selftest: s/SMBD/SAMBA/ in Samba.pmStefan Metzmacher2009-02-101-18/+18
| | | | metze
* selftest: allow "skip" as max runtime for smbd, nmbd and winbinddStefan Metzmacher2009-02-101-1/+31
| | | | metze
* selftest: Samba3 protect against removing /*Stefan Metzmacher2009-02-101-0/+3
| | | | metze
* selftest: add target::TemplateStefan Metzmacher2009-02-101-0/+52
| | | | metze
* selftest/Samba3: use the same logic for make test and make selftestStefan Metzmacher2009-02-041-5/+0
| | | | | | See also commit 484c4a5955d0365beb9587bb15c73fe3ed3301ce metze
* selftest: don't use hardcoded path to nmblookup in Samba4.pmStefan Metzmacher2009-02-031-12/+13
| | | | metze
* selftest: pass down the path to python for provisioning samba4Stefan Metzmacher2009-01-301-0/+3
| | | | metze
* selftest: allow environment optionsStefan Metzmacher2009-01-301-7/+4
| | | | | | | | | We support "local" and "client" (default) now. We can decide if we want to run a client against the server (with a special client.conf) or if we want to run tests localy on the server with the same config as the server. metze
* selftest: add "member" environment for Samba3Stefan Metzmacher2009-01-291-0/+48
| | | | metze
* selftest: fix Samba3 bugsStefan Metzmacher2009-01-291-16/+18
| | | | metze
* selftest: Samba4 remove unused variableStefan Metzmacher2009-01-281-1/+0
| | | | metze
* selftest: abstract Samba3 provision a bitStefan Metzmacher2009-01-281-14/+20
| | | | metze
* s3:selftest: fix 'make selftest'Stefan Metzmacher2009-01-281-28/+100
| | | | metze
* s3: try to make 'make selftest' work againStefan Metzmacher2009-01-281-20/+20
| | | | metze
* selftest: add --exeext parameterStefan Metzmacher2009-01-211-4/+6
| | | | metze
* selftest:Samba4: add bindir_path() utility function to construct the binary ↵Stefan Metzmacher2009-01-211-12/+23
| | | | | | pathes metze
* s4:selftest: lower debug level for slapdAndrew Bartlett2008-12-171-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>