1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
Commit Graph

93 Commits

Author SHA1 Message Date
Matthias Dieter Wallnöfer
b200d8a5ca s4:selftest - activate the lanman password changes
This is needed for a working "OemChangePasswordUser2" operation.
2010-06-28 14:51:05 +02:00
Andrew Bartlett
ff5ace20a2 s4:selftest Fix up netbios names for rpc_echo test 2010-06-23 20:10:12 +10:00
Andrew Bartlett
aba99e4464 s4:selftest For the moment the server role '2008_R2' is case sensitive 2010-06-23 20:10:11 +10:00
Andrew Bartlett
58a7b9af3f s4:selftest Change netbios aliases to shorter names.
This makes the netbios names more sensible, and the aliases shorter.

(the name localfl2008rc2dc7 was too long...)

Andrew Bartlett
2010-06-23 20:10:10 +10:00
Andrew Bartlett
1acd49c524 s4:selftest Add 2003 and 2008R2 test environments and tests
These tests were chosen particularly because they are known to test things
that vary across the functional levels.

Andrew Bartlett
2010-06-23 20:10:08 +10:00
Jelmer Vernooij
237ab66f6c selftest: Use scripted testparm. 2010-06-20 14:14:47 +02:00
Stefan Metzmacher
22eb6d7b6b selftest/Samba4: make the naming of passwords more consistent
metze
2010-06-17 09:12:00 +02:00
Stefan Metzmacher
f26c0e5456 selftest/Samba4: let localfl2000dc use 127.0.0.5
Now we have 127.0.0.6-10 available for more servers.

metze
2010-06-17 09:11:59 +02:00
Stefan Metzmacher
8aed54adbf selftest/Samba4: let localvampiredc use 127.0.0.2
metze
2010-06-17 09:11:59 +02:00
Stefan Metzmacher
6a0db03c80 selftest: use 127.0.0.11-16 for the client
This gives more room for servers.

Note: socket_wrapper currently only supports 127.0.0.1-16
      see MAX_WRAPPED_INTERFACES.

metze
2010-06-17 09:11:59 +02:00
Stefan Metzmacher
1e8d025a3c selftest/Samba3: remove unused create_clientconf() function
metze
2010-06-17 09:11:58 +02:00
Andrew Bartlett
0687a0c9dc s4:selftest Change domain name for functional level 2000 DC 2010-06-16 09:57:52 +10:00
Andrew Bartlett
f9018bc0ea s4:selftest Add test environment for functional level 2000
This required that we pass the name of the realm down as a parameter,
so we can start up two different realms.

Andrew Bartlett
2010-06-16 09:57:52 +10:00
Andrew Bartlett
697cd13978 s4:selftest Add vampire_dc test environment
This starts a domain controller, after running 'net vampire' to
populate it.  We don't use it as the 'all' environment yet, as the
rest of the code isn't quite ready to handle it.

Andrew Bartlett
2010-06-16 09:57:51 +10:00
Andrew Bartlett
0800c9e6f1 s4:selftest Remove unused basedn specification in selftest env setup 2010-06-15 10:53:43 +10:00
Günther Deschner
3854f0708e s3-selftest: Fix blackbox smbclient s3 tests during make selftest.
Guenther
2010-06-02 15:37:50 +02:00
Günther Deschner
a8d308faff s3-selftest: fix chmod commands in provisioning.
Guenther
2010-05-29 00:38:21 +02:00
Günther Deschner
5232ce56cd s3-selftest: make sure provisioned s3 looks the same in make selftest as in make test.
This fixes some tests that were previously failing.

Guenther
2010-05-29 00:12:15 +02:00
Matthieu Patou
a79b446e11 s4:smb_server: add dfs smbtorture to selftests
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-18 15:31:14 +02:00
Matthias Dieter Wallnöfer
01347844f5 s4:selftest - change test passwords
The passwords need to be more complex to meet the new complexity criteria.
2010-05-10 12:20:26 +02:00
Andrew Tridgell
3dd50b2922 s4-test: make spnupdate work without make install
thanks to metze for noticing this
2010-04-27 19:47:23 +10:00
Günther Deschner
2a2de10ac6 s3-selftest: add print$ share with two arch dirs.
Guenther
2010-04-23 13:51:02 +02:00
Andrew Bartlett
fe3d872656 s4:selftest Ensure we don't fsync() all day in the LDAP backend test
Passing this option greatly reduces the time spent in the test.

Andrew Bartlett
2010-04-22 18:37:19 +10:00
Andrew Tridgell
540d197e49 s4-test: we don't need -s set for samba_dnsupdate
this is now handled by SMB_CONF_PATH

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-19 18:21:42 +10:00
Andreas Schneider
61106c0568 s3-selftest: Don't log to stdout, use logfiles instead.
The logging to the logfiles is more verbose and they can be found in
./st/dc/logs. If you still want to log to stdout start selftest with:

SMBD_OPTIONS="-S -d10" make selftest
2010-03-29 11:35:07 +02:00
Günther Deschner
d3a22fc62b s3-selftest: set "lpq cache time = 0" in server configuration.
This fixes currently broken spoolss tests.

Guenther
2010-03-26 23:01:19 +01:00
Andrew Tridgell
525a4fb2c4 util: on FreeBSD true is in /usr/bin. Use execvp to find it 2010-03-26 19:03:22 +11:00
Günther Deschner
f84f653066 s3-selftest: move printing config to global section.
Guenther
2010-03-25 00:55:13 +01:00
Günther Deschner
20d73f768d s3-selftest: rearrange uid/gid calculation to achieve correct membership.
Guenther
2010-03-19 10:23:39 +01:00
Günther Deschner
a949c70ed8 s3-selftest: fix Samba3.pm provisioning after uid/gid changes.
Guenther
2010-03-18 15:12:07 +01:00
Günther Deschner
05cad2ea2f s3-selftest: make sure we do not have duplicate uids/gids in nsswrapper.
Also make sure we only add root user when needed, Jeremy please check.

Guenther
2010-03-18 15:08:27 +01:00
Günther Deschner
3efaf5e6ba s3-selftest: setup initial eventlog infrastructure.
Guenther
2010-03-17 22:59:20 +01:00
Andrew Bartlett
ca67768b66 s4:selftest Add file based DNS resolver to selftest environment
This will in future allow us to test 'net vampire' in the test
environment, using the file based DNS lookups to avoid us hitting real
DNS.
2010-03-12 13:22:21 +11:00
Endi S. Dewata
02533c9f1b s4:provision - Use netbios name for FDS instance name.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-03-02 14:07:01 +11:00
Andrew Tridgell
394a7ceeeb s4-selftest: disable rndc and dns update in build farm 2010-02-23 13:48:21 +01:00
Andrew Bartlett
a8b2088a0e s4:selftest Add infrastructure for testing against an RPC proxy
This also changes the 'testenv' code to use a new environment 'all'
(we may wish to make other complex tests depend on this in future),
and exports more names in more namespaces.

Andrew Bartlett
2010-02-19 16:32:49 +11:00
Günther Deschner
34ad5da5cd s3-selftest: include addprinter/deleteprinter command.
Guenther
2010-02-18 02:27:04 +01:00
Andrew Tridgell
1e1b081189 s4-selftest: don't run rndc reload in selftest
We don't want rndc calls on the build farm
2010-02-11 21:04:15 +11:00
Matthieu Patou
3471d3677a selftest-s4: set the posix:eadb at the global level 2010-01-21 07:11:21 +13:00
Kai Blin
a4f21d5dc8 s3 selftest: Allow the enumeration of users and groups
This fixes the WINBINDD_GETPWENT test.
2010-01-14 15:18:34 +01:00
Endi S. Dewata
e035433bab s4 - SID allocation using FDS DNA plugin 2009-11-02 16:36:54 +11:00
Andrew Tridgell
0fca2b078c s4-selftest: lower some of the timeouts during make test
This speeds up some of the delay based tests by a lot. There is no
need to have long delays during testing.
2009-10-23 15:38:54 +11:00
Andrew Bartlett
5255ba3c4f s4:selftest Confirm that there isn't a listener on the ldapi:// socket
This should help debug problems with 'make test' of the LDAP backend,
if a stray listener is still around.

Andrew Bartlett
2009-08-17 09:51:00 +10:00
Andrew Bartlett
f87811f6b3 s4:provision Rework provision-backend into provision
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
2009-08-17 09:50:58 +10:00
Andrew Tridgell
ad542a630e Allow selection of the samba4 process model for 'make test'
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.
2009-08-12 14:41:44 +10:00
Andrew Tridgell
0ae3912f32 print server log on stderr as well as to log file
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.
2009-08-12 14:38:55 +10:00
Andrew Bartlett
69fa901bca s4:selftest Don't start the slapd for the provision, only for the run
The provision-backend script now starts slapd for us

Andrew Bartlett
2009-08-12 10:01:49 +10:00
Andrew Bartlett
4921a5853b s4:selftest Make OpenLDAP guess it's own modules from now on
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
2009-08-12 10:01:48 +10:00
Oliver Liebel
28bcdf5266 s4:provision Rework and further automate setup of OpenLDAP backend
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)
2009-08-12 10:01:48 +10:00
Andrew Tridgell
fd43e0ee09 added a uid_wrapper library
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
2009-08-05 10:51:00 +10:00