1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

600 Commits

Author SHA1 Message Date
Giampaolo Lauria
901959d9ca samba-tool: updated test suite to account for newuser change
Updated test suite invocations of newuser to "user add" as
the newuser functionality is now being moved to "user add"

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-28 15:20:51 +10:00
Giampaolo Lauria
2e082853fb samba-tool: update test suite to reflect the move from password to "user setpassword"
This is part of the work to reflect the object-action model

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-28 15:20:51 +10:00
Andrew Tridgell
88df1da2b2 s4-test: don't fix broken objects during dbcheck test
this leaves the database as-is, which makes it easier to examine the
problem
2011-07-21 11:44:33 +10:00
Andrew Tridgell
bba7dc5092 dbcheck: test the --reindex option
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-07-21 11:44:32 +10:00
Andrew Tridgell
190ec87964 s4-test: added dbcheck run to test suite
This should catch corruption that happens during a test run

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-07-21 11:44:32 +10:00
Andrew Tridgell
7d399376b8 samba-tool: use 'exportkeytab' instead of 'dumpkeys'
a 'keytab' is a particular format known to administrators, whereas
'keys' is a bit too vague

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-07-21 11:44:31 +10:00
Giampaolo Lauria
9f32f86018 samba-tool: updated test suite for the new domain dumpkeys option
The test suite has been changed to reflect the move from export to "domain dumpkeys" to reflect the object-action model

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21 10:32:23 +10:00
Giampaolo Lauria
8c7718ac16 samba-tool: update test suite for the new domain object
Changed test suite to reflect the changes from setpassword to "domain setpassword" to fit the object-action model

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21 10:32:23 +10:00
Giampaolo Lauria
c4a92292c1 samba-tool: update test suite for add setpassword
The test suite needs to change from setpassword to "user setpassword" to reflect the new cmd syntax

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21 10:32:22 +10:00
Andrew Tridgell
1ee67df307 s4-test: fixed usage message on renamedc.sh 2011-07-13 12:51:05 +02:00
Andrew Tridgell
9bd695c83f samba-tool: update tests for new 'user enable' syntax
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Jun  1 10:37:50 CEST 2011 on sn-devel-104
2011-06-01 10:37:50 +02:00
Matthieu Patou
49c99d0515 s4: add blackbox test for rename
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat May 21 09:50:34 CEST 2011 on sn-devel-104
2011-05-21 09:50:34 +02:00
Andrew Bartlett
4fd6ebf544 selftest: Remove duplication between BUILDIR and BINDIR
Just have BINDIR, and have it default to ./bin

Andrew Bartlett
2011-04-16 11:43:04 +02:00
Michael Adam
7c72ce9f48 testprogs/blackbox/subunit: add testok() for easier integration of s3 tests. 2011-02-16 12:56:40 +01:00
Andrew Tridgell
b49973404c blackbox: removed assumption of build directory
this fixes the blackbox tests for a top level build

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Stefan Metzmacher
5ae04bca01 midltests: add invalid/midltests_pipe_struct_union_01.idl
pipes with unions are not supported by midl,
so we don't need to implement them in pidl:-)

metze
2011-02-01 11:21:42 +01:00
Stefan Metzmacher
c9027b664b midltests: add todo/midltests-pipe-sync-ndr32-downgrade-02.idl
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Jan 31 19:45:41 CET 2011 on sn-devel-104
2011-01-31 19:45:41 +01:00
Stefan Metzmacher
3a9745c0b9 midltests: test encapsulated unions with 'ms_union'
metze
2011-01-31 18:40:29 +01:00
Stefan Metzmacher
fa6f3f3d0b midltests: test encapsulated unions without 'ms_union'
metze
2011-01-31 18:40:16 +01:00
Stefan Metzmacher
ea587cb642 midltests: add examples of toplevel vs. embedded unions with mixed 'ms_union'
metze
2011-01-31 18:40:01 +01:00
Stefan Metzmacher
675a5e9598 midltests: add examples of toplevel vs. embedded unions with global 'ms_union'
metze
2011-01-31 18:39:42 +01:00
Stefan Metzmacher
b586e5aabd midltests: add examples of toplevel vs. embedded unions without 'ms_union'
metze
2011-01-31 18:39:30 +01:00
Stefan Metzmacher
98febd6605 midltests: more union alignment example with ms_union
metze
2011-01-31 18:39:09 +01:00
Stefan Metzmacher
e0c2aec35a midltests: more union alignment example without ms_union
metze
2011-01-31 18:38:56 +01:00
Stefan Metzmacher
4f6857850f midltests: union alignment with enum as switch_type and 'ms_union'
metze
2011-01-31 18:38:43 +01:00
Stefan Metzmacher
ef89211a69 midltests: union alignment with enum as switch_type
metze
2011-01-31 18:38:27 +01:00
Stefan Metzmacher
1f2f7fda83 midltests: unions with enum vs. long
metze
2011-01-31 18:38:13 +01:00
Stefan Metzmacher
90b54881f8 midltests: 'ms_unions' with enum vs. long
metze
2011-01-31 18:36:59 +01:00
Stefan Metzmacher
a5f0b02221 midltests: explore 'ms_union' option.
metze
2011-01-31 18:36:16 +01:00
Stefan Metzmacher
769425662e testprogs:test_kinit: create tmp files under $PREFIX
metze
2010-12-24 17:31:06 +01:00
Günther Deschner
821b2a9d11 testprogs: testspoolss.exe: pretty print FILETIME in driver info 6 and 8.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Dec 23 23:40:21 CET 2010 on sn-devel-104
2010-12-23 23:40:21 +01:00
Jelmer Vernooij
d237698850 blackbox.ldb: Support using system ldbsearch.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Nov 27 04:32:11 CET 2010 on sn-devel-104
2010-11-27 04:32:11 +01:00
Andrew Bartlett
b8631597f5 s4-test_kinit Add tests for lowercase realm combinations
This tests that the handling of lowercase realms works in our KDC and
libraries.

Andrew Bartlett
2010-11-16 16:01:19 +11:00
Kai Blin
b73a05e4e1 s4 net: rename to samba-tool in order to not clash with s3 net
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Thu Oct 28 07:25:16 UTC 2010 on sn-devel-104
2010-10-28 07:25:16 +00:00
Stefan Metzmacher
fd628e7ae4 midltests: add more union_align examples
This demonstrates the difference between NDR32 and NDR64

metze
2010-10-24 19:04:08 +02:00
Andrew Tridgell
006111646c s4-test: fixed a typo in test_kinit.sh
too many Ts

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Oct 15 10:14:27 UTC 2010 on sn-devel-104
2010-10-15 10:14:27 +00:00
Andrew Tridgell
d59a342c71 s4-test: fixed test_kinit.sh time command test
passing -W breaks -k yes
2010-10-15 09:32:03 +00:00
Günther Deschner
229f5443b7 testprogs: print architecture used in win32 spoolss testsuite.
Guenther
2010-10-01 22:30:22 +02:00
Stefan Metzmacher
77d959fb15 midltests: add midltests-pipe-sync-ndr32-downgrade-02.idl
metze
2010-09-29 10:49:41 +02:00
Stefan Metzmacher
45e3e54e08 midltests: support for fragmented RPC traffic
metze
2010-09-29 10:49:40 +02:00
Stefan Metzmacher
6c0a4b6477 midltests: print out the alloc_hint for requests and responses
metze
2010-09-29 10:49:40 +02:00
Stefan Metzmacher
25e19287f0 midltests: improve NDR64 downgrade
metze
2010-09-29 10:49:39 +02:00
Stefan Metzmacher
437db14522 midltests: revert to a simple default midltests.idl
metze
2010-09-29 10:49:39 +02:00
Stefan Metzmacher
e2c305deb1 midltests/todo: add some random idl files I had tested month ago
metze
2010-09-29 03:08:25 +02:00
Stefan Metzmacher
ad99711f49 midltests: add midltests-pipe-sync-ndr32-downgrade-01.idl example
metze
2010-09-29 03:08:25 +02:00
Stefan Metzmacher
c5e221c5f8 midltests: add some usefull defines to midltests.idl
metze
2010-09-29 03:08:24 +02:00
Stefan Metzmacher
06108687e8 midltests: make it possible to allow downgrades to NDR32
metze
2010-09-29 03:08:24 +02:00
Stefan Metzmacher
115ad60125 midltests: add a midltests_tcp.exe tool
This uses a man in the middle approach in order to dump the
request and response pdus.

It also tests NDR32 and NDR64.

metze
2010-09-29 01:42:28 +02:00
Stefan Metzmacher
cf4e57281b midltests: move the current implementation to midltests_simple.exe
metze
2010-09-29 01:42:27 +02:00
Stefan Metzmacher
d8a0436fb4 testprogs/win32: add vs2010-metze.cmd
metze
2010-09-29 01:42:26 +02:00
Günther Deschner
b772f4cdff testprogs: skip two tests in spoolss tester.
Guenther
2010-09-17 10:06:16 +02:00
Stefan Metzmacher
6fe216642a testprogs/midltests: add some example IDL files and there midltests.exe output
metze
2010-08-12 14:31:15 +02:00
Stefan Metzmacher
34692556be s4:blackblock/ktpass: use test specific user name
metze
2010-07-31 11:22:15 +02:00
Matthieu Patou
e461e29cd9 s4 unittests: add blackblox test for ktpass 2010-07-17 17:56:16 +04:00
Andrew Bartlett
0e212acd32 s4:testprogs Operate the blackbox kinit and net tests using the :local config
This :local tells selftest.pl to use the local smb.conf for the test
environment, not the generic client smb.conf

This then makes the rest work properly - otherwise, it may attempt to
connect to the wrong KDC for example.

The only problem is that we can't test the 'net join' with this set,
so this is removed from the test.  The member server test environment
checks this anyway.

Andrew Bartlett
2010-07-16 07:08:41 +10:00
Andrew Bartlett
8769e75a61 s4:testprogs Show that we no longer delete the old keytab entries
By using a CCACHE obtained while the old password was still valid, we
can tell if the server still accepts incoming Kerberos connections
with the old password.

Andrew Bartlett
2010-07-15 22:08:22 +10:00
Andrew Bartlett
5d61b477c6 s4:testprogs Prove kerberos still works after a password change
Changing the machine account password should not prevent connections
with a current, valid CCACHE.  This is because when the password is
changed, the server-side keytab keeps one old password around.

Andrew Bartlett

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15 22:08:22 +10:00
Matthieu Patou
0496af8341 s4: Unit test update_machine_account_password through kinit
This patch is for testing the chgdcpass script which is mostly a call to
update_machine_account_password.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15 22:08:20 +10:00
Stefan Metzmacher
22dfb16d73 testprogs/blackbox/subunit.sh: initialize failed to 0
This is a short-term workarround for broken scripts,
which use "exit $failed", without initializing failed.

We need a discussion on the mailing list how to handle this
in a nicer way.

This should fix some random failures in the blackbox tests.

metze
2010-07-10 09:35:04 +02:00
Matthias Dieter Wallnöfer
518232d457 s4:kinit blackbox test - set/reset also here the "minPwdAge" 2010-07-03 16:08:24 +02:00
Matthias Dieter Wallnöfer
73c69a195a s4:blackbox/test_passwords.sh - perform also here the adaptions for "minPwdAge" != 0 2010-07-03 11:38:49 +02:00
Andrew Bartlett
48c8896f2e s4:selftest Split out PKINIT tests from test_kinit.sh and test enc types
This allows us to run the PKINIT tests only against the main DC (for
which the certificates were generated), while testing the available
encryption types in each functional level.

In particular, we need to assert that AES encryption is available in
the 2008 functional level.

Andrew Bartlett
2010-06-29 16:59:31 +10:00
Stefan Metzmacher
df96f18e8f testprogs/win32: add prepare_dcpromo tool
This tool can set the DOMAIN-SID and nextRid counter in
the local SAM on windows servers (tested with w2k8r2)

dcpromo will use this values for the ad domain it creates.

This might be useful for upgrades from a Samba3 domain.

metze
2010-06-22 10:47:39 +02:00
Stefan Metzmacher
d18fbda0d0 testprogs/win32: make it possible to specify MINGW_CC
metze
2010-05-19 13:59:45 +02:00
Stefan Metzmacher
4ce04f6f6f testprogs/win32/spoolss: we don't need absolute pathes to mingw locations
metze
2010-05-19 13:58:26 +02:00
Stefan Metzmacher
38d1776c79 testprogs/win32/npecho: use 'rm -f' instead of 'del' on unix
metze
2010-05-19 13:57:04 +02:00
Stefan Metzmacher
d133ef997d testprogs/win32: explain how to use nmake with NMakefile
metze
2010-05-19 13:56:54 +02:00
Stefan Metzmacher
64fa63c3e9 testprogs/win32/spoolss: rename Makefile.mingw GNUmakefile
metze
2010-05-19 11:12:53 +02:00
Stefan Metzmacher
b00acc81fb testprogs/win32/spoolss: rename Makefile => NMakefile
metze
2010-05-19 11:12:53 +02:00
Günther Deschner
f754942862 testprogs: update Makefile.mingw (although mingw current cant build it).
Guenther
2010-05-10 11:50:29 +02:00
Günther Deschner
86ec5fe3ee testprogs: update README to reflect the util rename.
Guenther
2010-05-10 11:50:28 +02:00
Günther Deschner
cda0c75e18 testprogs: add readme for testspoolss.exe.
Patch from Kurt Pfeifle <Kurt.Pfeifle@ricoh.de>.

Guenther
2010-05-10 11:50:28 +02:00
Günther Deschner
e94825d159 testprogs: add vcproj and sln files for testspoolss.exe.
Patch from Kurt Pfeifle <Kurt.Pfeifle@ricoh.de>.

Guenther
2010-05-10 11:50:28 +02:00
Günther Deschner
eb28a761e9 testprogs: rename spoolss.exe to testspoolss.exe.
Patch from Kurt Pfeifle <Kurt.Pfeifle@ricoh.de>.

Guenther
2010-05-10 11:50:25 +02:00
Matthias Dieter Wallnöfer
088a25912e s4:blackbox/test_kinit.sh - Test the new "net user add <user> [<password>]" syntax 2010-05-09 19:14:47 +02:00
Andrew Tridgell
48330c828e s4-test: check that a weak password is rejected by kpasswd
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-16 14:12:44 +10:00
Stefan Metzmacher
16d4d0346d testprogs/blackbox/test_kinit: reorder arguments to "net time" to fix make test
metze
2010-04-13 10:09:18 +02:00
Andrew Bartlett
df7fbf28ee s4:testprogs Update test to match current Heimdal 2010-03-27 12:23:21 +11:00
Andrew Bartlett
6798543842 s4:testprogs Fix kinit test for updated Heimdal 2010-03-27 11:53:49 +11:00
Andrew Bartlett
0a65bb57a1 s4:selftest Add testing of kpasswd password set on servicePrincipalName 2010-03-25 16:32:04 +11:00
Günther Deschner
6f36e9d504 testprogs: add EnumPrinterData test to win32 spoolss test.
Guenther
2010-03-15 17:27:12 +01:00
Günther Deschner
a319eb9700 testprogs: add test_PrinterDataW.
Guenther
2010-03-04 10:10:02 +01:00
Günther Deschner
55946ddd1d testprogs: use dump_data in dump_printer_data.
Guenther
2010-03-04 10:10:02 +01:00
Günther Deschner
74ba0b7189 testprogs: add print_printer_dataw and dump_data to printlib.
Guenther
2010-03-04 10:10:02 +01:00
Günther Deschner
66b4463fc1 testprogs: add some multibyte versions of PrinterData calls.
Guenther
2010-03-04 10:10:02 +01:00
Günther Deschner
892213c7b7 testprogs: fix boolean return code of test_PrinterData.
Guenther
2010-03-03 14:42:31 +01:00
Günther Deschner
74703e4897 testprogs: make sure to do the same tests as in smbtorture in test_PrinterData().
Guenther
2010-03-02 19:03:17 +01:00
Günther Deschner
f73c27116c testprogs: fix REG_SZ in print_printer_data.
Guenther
2010-03-02 19:03:16 +01:00
Günther Deschner
8919a58583 testprogs: test result of GetPrinterDataEx against SetPrinterDataEx args.
Guenther
2010-03-02 15:29:38 +01:00
Günther Deschner
cf12d4556a testprogs: better usage text.
Guenther
2010-03-01 21:15:34 +01:00
Günther Deschner
36d3aa69f1 testprogs: add very basic PrinterData test for printers.
This very basically tests SetPrinterDataEx, GetPrinterDataEx and
DeletePrinterDataEx.

Guenther
2010-03-01 21:15:33 +01:00
Günther Deschner
0d0d778b21 testprogs: rename test_PrinterData to test_PrinterData_Server.
Guenther
2010-03-01 21:15:33 +01:00
Günther Deschner
d44dd1005b testprogs: add SetPrinterDataEx test.
Guenther
2010-03-01 21:15:33 +01:00
Günther Deschner
b797481b8d testprogs: add DeletePrinterKey test.
Guenther
2010-03-01 21:15:33 +01:00
Günther Deschner
1b6f1e8c30 testprogs: add DeletePrinterDataEx test.
Guenther
2010-03-01 21:15:33 +01:00
Günther Deschner
61568cf4c8 testprogs: allow to test a single printer when given on the cmdline. 2010-03-01 21:15:33 +01:00
Günther Deschner
32371e9ba6 testprogs: add RPC_X_NULL_REF_POINTER error code 2010-03-01 21:15:33 +01:00
Günther Deschner
274baba4ab testprogs: print the directory paths as well in spoolss test.
Guenther
2010-02-26 11:07:57 +01:00
Andrew Bartlett
a9d9447d5a s4:credentials Add hooks to extract a named Kerberos credentials cache
This allows the integration of external tools that can't be linked
into C or python, but need to authenticate as the local machine
account.

The machineaccountccache script demonstrates this, and debugging has
been improved in cli_credentials_set_secrets() by passing back and
error string.

Andrew Bartlett
2010-02-20 17:58:07 +11:00
Günther Deschner
e40310a64b testprogs: ignore GetJob level 3 and 4 against samba for now.
Guenther
2010-02-19 10:12:07 +01:00
Günther Deschner
77164a8a5d testprogs: add tests for GetJob() to spoolss test.
Guenther
2010-02-18 22:01:04 +01:00
Günther Deschner
0bf9c5ecf6 testprogs: add RPC_S_PROCNUM_OUT_OF_RANGE error.
Guenther
2010-02-18 16:41:59 +01:00
Günther Deschner
9ff2c1ea64 testprogs: print SDDL string of printer security descriptors 2010-02-18 02:18:59 +01:00
Günther Deschner
77fc30b481 testprogs: add rather simple device mode tests to spoolss test.
Guenther
2010-02-16 17:28:02 +01:00
Günther Deschner
351f694d61 testprogs: add "samba3" and "architecture=" options to spoolss tester.
Guenther
2010-02-15 23:05:05 +01:00
Günther Deschner
1988f4274c testprogs: fix EnumJobs debug output in spoolss test.
Found by Kai, thanks!

Guenther
2010-02-15 22:12:34 +01:00
Günther Deschner
89621d8d19 testprogs: print all printerinfo levels in spoolss test.
Guenther
2010-02-12 20:46:44 +01:00
Günther Deschner
5e1dd19221 testprogs: one more error code for spoolss test.
Guenther
2010-02-11 13:26:13 +01:00
Günther Deschner
4f8a4cb81b testprogs: print secdesc->Control in spoolss test.
Guenther
2010-02-11 13:24:41 +01:00
Günther Deschner
490e1f84fe testprogs: use ConvertSidToStringSid in order to print sids in spoolss test.
Guenther
2010-02-11 13:24:41 +01:00
Günther Deschner
1cd9df8da2 testprogs: add more error codes for spoolss test.
Guenther
2010-02-10 14:07:31 +01:00
Günther Deschner
7c95d559c3 testprogs: regenerate printlib prototypes for spoolss test.
Guenther
2010-02-09 16:39:37 +01:00
Günther Deschner
73e6212a32 testprogs: print job info levels in EnumJobs() spoolss tests.
Guenther
2010-02-09 16:39:35 +01:00
Günther Deschner
bf7156b6dd testprogs: print datatypes info levels in EnumPrintProcessorDatatypes() spoolss tests.
Guenther
2010-02-09 16:39:35 +01:00
Günther Deschner
dcad5447cf testprogs: print printprocessor info levels in EnumPrintProcessors() spoolss tests.
Guenther
2010-02-09 16:39:34 +01:00
Günther Deschner
5db64e88c7 testprogs: print monitor info levels in EnumMonitors() spoolss tests.
Guenther
2010-02-09 16:39:34 +01:00
Günther Deschner
5afae25724 testprogs: print port info levels in EnumPorts() spoolss tests.
Guenther
2010-02-09 16:39:30 +01:00
Günther Deschner
8088a17128 testprogs: print form info levels in EnumForms(),GetForm() spoolss tests.
Guenther
2010-02-09 16:38:04 +01:00
Günther Deschner
55ae3d1729 testprogs: also print printer info during GetPrinter spoolss test.
Guenther
2010-01-31 20:41:17 +01:00
Günther Deschner
818fb00381 testprogs: print all driver info levels in spoolss testsuite.
Guenther
2010-01-25 11:20:06 +01:00
Günther Deschner
f2999157f9 testprogs: add tests for GetPrinterData{Ex} and EnumPrinterDataEx.
Guenther
2010-01-18 13:41:02 +01:00
Günther Deschner
ecd35d7ea6 testprogs: add tests for GetForm.
Guenther
2010-01-18 13:41:02 +01:00
Günther Deschner
ca646a82f8 testprogs: pass down LPPRINTER_DEFAULTS in spoolss test.
Guenther
2010-01-18 13:41:02 +01:00
Günther Deschner
0ae4cc839d testprogs: remove unused test_EachDriver from spoolss test.
Guenther
2010-01-12 12:12:05 +01:00
Günther Deschner
3c1b51795d testprogs: add EnumPrinterKey test to spoolss test.
Guenther
2010-01-12 12:12:05 +01:00
Günther Deschner
403dc10e8f testprogs: fix driver levels in spoolss test.
Guenther
2010-01-11 12:43:07 +01:00
Günther Deschner
9a1b298e3d testprogs: test each printer, do not abort after first failure.
Guenther
2010-01-11 12:43:07 +01:00
Günther Deschner
3e7b7bfd27 testprogs: fix EnumPrintProcessorDatatypes spoolss test.
Guenther
2010-01-11 12:43:07 +01:00
Günther Deschner
4aefb33b9f testprogs: add more error codes to spoolss test.
Guenther
2010-01-11 12:43:07 +01:00
Günther Deschner
339afda877 testprogs: add support for "print" option in win32 spoolss torture test.
Guenther
2010-01-08 01:04:19 +01:00
Günther Deschner
9185fd0a93 testprogs: pass down architecture in spoolss test.
Guenther
2010-01-08 01:03:34 +01:00
Günther Deschner
487a03a158 testprogs: add win32 spoolss testsuite.
Guenther
2010-01-08 01:03:34 +01:00
Stefan Metzmacher
1525e59886 blackbox/test_export_keytab.sh: correctly remove temporary files
metze
2010-01-04 09:36:25 +01:00
Stefan Metzmacher
5df8b33ddc blackbox/test_export_keytab.sh: use VALGRIND for samba4kinit
metze
2010-01-04 09:36:25 +01:00
Andrew Tridgell
9d6411d9dd s4-testpasswords: fixed CONFIG and quoting
Need to pass correct config file to tests
2009-12-31 17:33:34 +11:00
Jelmer Vernooij
9e5ef916d4 net: Move 'newuser' to 'net newuser'
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:27 +11:00
Jelmer Vernooij
73594c248f net: Fix tests and documentation of setexpiry.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:25 +11:00
Jelmer Vernooij
b531696a5b net: Move 'setpassword' to 'net setpassword'.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:22 +11:00
Jelmer Vernooij
797977ac53 blackbox.passwords: Use convenience variable for net.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:19 +11:00
Jelmer Vernooij
18d221342b Fix commands in password tests.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:18 +11:00
Matthias Dieter Wallnöfer
0af3b06824 Revert "blackbox:test_kinit - Remove the "-H" (hive) parameter"
This reverts commit d4389a230b.

This revert changed the behaviour which I didn't expect. Thanks abartlet to
point this out!
2009-09-21 11:33:13 +02:00
Matthias Dieter Wallnöfer
d4389a230b blackbox:test_kinit - Remove the "-H" (hive) parameter
The "enableaccount" script works only on local LDB anymore - therefore remove
this parameter.
2009-09-20 23:07:22 +02:00
Stefan Metzmacher
c5d38fd45a blackbox/test_ldb.sh: test searching using OIDs instead of names for attributes and classes
metze
2009-09-20 06:44:19 +02:00
Andrew Kroeger
e3a2a22451 s4:pwsettings: Added blackbox tests.
The added tests include basic validation that the script runs and accepts all
custom arguments.  The tests also verify changes to the password complexity,
minimum password length, and minimum password length settings.
2009-09-10 01:09:56 +02:00
Andrew Kroeger
67a8a8c9e6 testprogs:subunit.sh: Add function for expected failures.
The testit_expect_failure() function is like the testit() function, with
reversed error detection logic.  This reversal only affects the pass/fail logic
and logging - the original return code from the command is still returned to the
calling script.
2009-09-10 01:09:56 +02:00
Andrew Bartlett
8ff1f50b0c s4:kerberos Add support for user principal names in certificates
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
2009-07-28 14:10:47 +10:00
Andrew Bartlett
cdd7a5208f s4:kerberos Add test to show that we actually export the keytab
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
2009-07-27 22:41:43 +10:00
Andrew Bartlett
89a074b784 s4:heimdal Allow KRB5_NT_ENTERPRISE names in all DB lookups
The previous code only allowed an KRB5_NT_ENTERPRISE name (an e-mail
list user principal name) in an AS-REQ.  Evidence from the wild
(Win2k8 reportadely) indicates that this is instead valid for all
types of requests.

While this is now handled in heimdal/kdc/misc.c, a flag is now defined
in Heimdal's hdb so that we can take over this handling in future (once we start
using a system Heimdal, and if we find out there is more to be done
here).

Andrew Bartlett
2009-06-30 12:11:14 +10:00
Andrew Bartlett
1e6fb7d730 s4: Add tests and 'must change password' flags in setpassword and newuser
In particular, ensure that we can acutally change the password under
these circumstances.

Andrew Bartlett
2009-06-18 13:49:30 +10:00
Andrew Bartlett
033e25fdce s4:testprogs Don't specify a username/password when checking the ccache
The purpose of this test is to ensure that the Kerberos credentials
cache is valid.  If the username and password is specified, this
overrides the very thing we are trying to test.

Andrew Bartlett
2009-06-18 13:49:30 +10:00
Stefan Metzmacher
d52e813117 s4:blackbox/test_ldb: make use of the $VALGRIND envvar
metze
2009-03-04 08:32:32 +01:00
Stefan Metzmacher
3ce895181b testprogs/win32: add an option to trigger small reads in npecho_client2.c
metze
2009-02-09 13:32:11 +01:00
Stefan Metzmacher
1bf51ea262 testprogs/win32: make it possible to run in byte or message mode in npecho_server2
metze
2009-02-09 12:09:01 +01:00
Stefan Metzmacher
5438d7dad8 testprogs/win32: add npecho_*2.c
This exlores some details of message type named pipes.

metze
2009-02-09 11:57:13 +01:00
Stefan Metzmacher
8b408f7819 s4:selftest: avoid hardcoded pathes in blackbox tests
metze
2009-02-03 16:31:04 +01:00
Stefan Metzmacher
bb45bf6347 s4:blackbox: don't remove newlines in the subunit failure output
metze
2009-01-08 15:59:09 +01:00
Andrew Bartlett
fc7e41d6ff s4:testprogs: improve extended dn testing of the ldb blackbox tests
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-17 12:29:30 +11:00
Andrew Bartlett
22eb64f056 Actually test the kpasswd server
This uses kpasswd operated as a blackbox, assisted by the newly
imported rkpty tool.

Andrew Bartlett
2008-10-20 20:07:09 +11:00
Stefan Metzmacher
1cf404fcb5 testprogs/win32/midltests: add missing Makefile
metze
2008-10-16 10:29:07 +02:00
Stefan Metzmacher
bb4e9d72dd s4:blackbox/test_ldb: test search by <GUID=...> and <SID=...>
metze
2008-10-06 09:07:37 +02:00
Andrew Tridgell
e13270d7ac fixed the ldb blackbox test to work with non-bourne shells (as needed
by ubuntu)

fixed spelling of 'wellknown'
2008-10-03 17:08:39 -07:00
Stefan Metzmacher
a25fac13eb s4:blackblox/test_ldb: test searches via wellknownObjects
metze
2008-10-02 18:56:09 +02:00
Jelmer Vernooij
8fd66feb88 Remove remaining obsolete EJS tests. 2008-09-21 05:43:39 +02:00
Jelmer Vernooij
163292f325 Merge branch 'master' of ssh://git.samba.org/data/git/samba into noejs 2008-09-19 16:26:00 +02:00
Jelmer Vernooij
62b5f1886d Make sure modify operations succeed. 2008-09-19 10:56:35 +02:00
Jelmer Vernooij
729ffbae08 Merge branch 'master' of ssh://git.samba.org/data/git/samba into noejs
Conflicts:
	source4/main.mk
2008-09-18 20:29:05 +02:00
Jelmer Vernooij
d7a0c26af4 Move torture/ blackbox tests closer to code they're testing. 2008-09-16 18:30:24 +02:00
Jelmer Vernooij
aa09d8a75f Move ndrdump tests closer to the code they test. 2008-09-16 18:16:49 +02:00
Jelmer Vernooij
f3a517a92e Remove minschema js tests. 2008-09-16 18:13:56 +02:00
Jelmer Vernooij
f594044d79 Remove remaining JavaScript code. 2008-09-16 18:09:34 +02:00
Stefan Metzmacher
b295dca7a0 blackbox: fix source => source4
metze
2008-09-14 23:08:45 +02:00
Andrew Bartlett
aa14b40c5c Fix the build on Win32, and use NEGOTIATE security (to allow kerberos)
(This used to be commit f0bde093d7)
2008-08-27 16:22:45 +10:00
Andrew Bartlett
16112762e7 Generate the subSchema in cn=Aggregate
This reads the schema from the in-memory structure, when the magic
attributes are requested.  The code is a modified version of that used
in the ad2oLschema tool (now shared).

The schema_fsmo module handles the insertion of the generated result.

As such, this commit also removes these entries from the setup/schema.ldif

Metze's previous stub of this functionality is also removed.

Andrew Bartlett
(This used to be commit c7c32ec7b4)
2008-08-15 20:40:57 +10:00
Jelmer Vernooij
26e9194e3a Move blackbox tests closer to what they're testing.
(This used to be commit c9b2e2aa86)
2008-06-26 10:56:59 +02:00
Andrew Bartlett
48100ca5c6 Remove old ldap.js test, we have replicated it in python now.
This will soon allow the removal of smbscript, once the samba3sam test
conversion is complete.

Andrew Bartlett
(This used to be commit 60c93b9777)
2008-06-19 14:53:14 +10:00
Jim McDonough
f3fb381952 Missed these on the last commit
(This used to be commit 0e8f946ed0)
2008-06-12 07:06:07 -04:00
Jim McDonough
0410dcb32d Initial automated wintest.
Added a blackbox test which looks for $WINTEST_CONF_DIR,
gets configuration vars from *.conf in that dir, disables
smbwrapper, and runs RAW-OPEN torture test.

Scripts are coming to startup/shutdown vm's.
(This used to be commit 74a0a9bb54)
2008-06-12 07:02:14 -04:00
Andrew Bartlett
446748bfe1 Align the Python and EJS ldap tests.
We should now (need to review and compare them once more) be able to
remove ldap.js (and once samba3sam.js is done, smbscript).

Andrew Bartlett
(This used to be commit f65e43e945)
2008-06-03 23:27:22 +10:00
Jelmer Vernooij
4e9ca6caf9 Remove unused EJS net bindings.
(This used to be commit 3923414849)
2008-05-26 14:00:28 +02:00
Jelmer Vernooij
9e37d25a92 Remove unused scripts.
(This used to be commit 3d22b72bb7)
2008-05-26 13:34:36 +02:00
Jelmer Vernooij
fb7e359561 Remove unused echo ejs script.
(This used to be commit 3a6b009d50)
2008-05-23 04:20:52 +02:00
Jelmer Vernooij
27005cb7a2 Convert samr test to python.
(This used to be commit 88d473b202)
2008-05-23 04:20:45 +02:00
Jelmer Vernooij
c6132465d1 Remove unused EJS testprogs.
(This used to be commit e14c930200)
2008-05-23 03:34:57 +02:00
Andrew Kroeger
fe17acfa82 subunit.sh: Properly capture and pass on the command output.
Previously, the output from $cmdline was never captured.  In case of a
failure, there was no output being passed to the subunit_fail_test() function,
but that function contains a call to "cat -".  This caused the script to hang
indefinitely waiting for input.

We now capture $cmdline output (including mapping stderr to stdout) using
backticks, and then pipe that output to the subunit_fail_test() if there is
a failure.
(This used to be commit c0234d1319)
2008-05-21 20:46:14 -05:00
Jelmer Vernooij
1929675813 Fix reference to removed smbpython.
(This used to be commit 58f956dc45)
2008-05-21 15:39:00 +02:00
Andrew Bartlett
9586462b8f Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit 18dd8120cc)
2008-04-16 16:12:58 +02:00
Andrew Bartlett
008c8adfe3 Fix wbinfo --trusted-domains.
The problems here were that we did not bind to the LSA pipe, and we
did not consider it possible to have 0 trusted domains.

Andrew Bartlett
(This used to be commit 86694d429d)
2008-04-16 16:10:16 +02:00
Jelmer Vernooij
228f342b1f Use the subunit shell library.
(This used to be commit 49367e044e)
2008-04-16 14:52:29 +02:00
Jelmer Vernooij
f540669c48 Use library for subunit test functions.
(This used to be commit 690924dc7f)
2008-04-16 12:34:53 +02:00
Jelmer Vernooij
83c8d6cc89 Fix -r test, knownfailure return code.
(This used to be commit 4f0954905a)
2008-04-16 01:10:20 +02:00
Jelmer Vernooij
f5c0be9208 Merge branch 'wbinfo-test' of git://git.samba.org/kai/samba/kai-work-in-progress into v4-0-selftest
(This used to be commit 56340a5fa1)
2008-04-16 00:05:36 +02:00
Jelmer Vernooij
edc9b35f1e Fix executable bit on blackbox ndrdump tests.
(This used to be commit a3f0e4151b)
2008-04-16 00:05:12 +02:00
Kai Blin
3413cfefb8 blackbox: Add many more tests for wbinfo
(This used to be commit 0a2942f6e9)
2008-04-15 23:36:41 +02:00
Andrew Bartlett
c7d9596764 Test password change with 'net password change'.
Andrew Bartlett
(This used to be commit 695cee0349)
2008-04-15 10:40:06 +02:00
Andrew Bartlett
5a18f0d82b Test a few more bits of smbclient
(This used to be commit 24a2409d72)
2008-04-15 10:05:29 +02:00
Andrew Bartlett
afaba23131 Add blackbox test for ndrdump, to ensure it at least does not
segfault.

Andrew Bartlett
(This used to be commit d2fe61a13a)
2008-04-15 09:13:32 +02:00
Andrew Bartlett
142fbfb3c1 Fix and test python scripts and kerberos
This fixes up the python credentials interface in a number of areas,
with the aim of supporting '-k yes' as a command line option.  (This
enables the use of kerberos).

As such, I've had to change the get_credentials call to take a
loadparm context, so that the credentials can be initialised
correctly.

The test_kinit script has been modified to prove that this continues
to work, as well as to provide greater code coverage of the kerberos
paths.

Andrew Bartlett
(This used to be commit 727ef40c2b)
2008-03-28 21:57:15 +11:00
Andrew Bartlett
3cdf0c64dd Extend the ldap.js test to prove faults with the LDAP backend.
Try to provide more information to see why OpenLDAP isn't quite up to
being a Samba4 Backend.

Andrew Bartlett
(This used to be commit 89458c7d8b)
2008-03-19 12:12:24 +11:00
Andrew Bartlett
736ae6a566 Don't hardcode objectCategory into the schema, even in the schema.
We now load the schema early enough that we can generate this too!

Andrew Bartlett
(This used to be commit 1adc74c65a)
2008-03-04 11:27:57 +11:00
Andrew Bartlett
0b2a762519 Extend the ldap.js test
Now we verify sAMAccountType and userAccountControl, as well as rename and
DN mismatch semantics.

Andrew Bartlett
(This used to be commit 0a5fa41dd7)
2008-02-28 08:37:11 +11:00
Andrew Tridgell
054bc11876 added blackbox testing of gentest
(This used to be commit 716345fd38)
2008-02-15 16:42:22 +11:00
Andrew Tridgell
c09f70608c added a blackbox test for masktest
(This used to be commit 05a110123d)
2008-02-15 15:33:10 +11:00
Andrew Tridgell
66e8bc9dac converted locktest to use popt and cmdline utility code
(This used to be commit 625ea49a95)
2008-02-15 14:55:31 +11:00
Andrew Tridgell
63c099c51a added blackbox testing for locktest
(This used to be commit af6484f78d)
2008-02-15 14:27:06 +11:00
Jelmer Vernooij
f44dbc296e Reintroduce samba3sam EJS test, at least until the Python test is ready.
(This used to be commit 13deb25214)
2008-02-12 01:42:58 +01:00
Jelmer Vernooij
0a6dc21955 Remove tests for Samba 3 EJS code.
(This used to be commit 7aff2ddd8c)
2008-02-11 13:38:07 +01:00
Jelmer Vernooij
b5bfabf152 Move nmblookup blackbox test closer to the code it tests.
(This used to be commit 3f24136b56)
2008-02-09 17:17:21 +01:00
Andrew Bartlett
655ec1aa06 A couple more ipsec classes for the schema.
Andrew Bartlett
(This used to be commit 41309dc862)
2008-02-09 14:48:56 +11:00
Andrew Bartlett
b2d47f9794 From a request from Peter Huang, include IPsec sechema.
(We may need to include more defaults in the template, but I want to
start small for now).

Andrew Bartlett
(This used to be commit a466dda118)
2008-02-09 09:59:45 +11:00
Jelmer Vernooij
066912ba80 Put temporary test files in test directory.
(This used to be commit 16382999be)
2008-02-08 00:34:29 +01:00
Stefan Metzmacher
c6a6fa1841 win32-tests: add a very usefull w32 programm to explore midl features
You have to define idl, call the client function
and add a server implementation.

Then you need to compile midltests.exe
and run it, it will dump the generated NDR on the
screen.

metze
(This used to be commit dc15c88335)
2008-02-06 16:34:36 +01:00
Andrew Bartlett
2eab4abf25 Make ranged results tests in ldap.js easier to debug.
This adds some extra information to the failure message, to chase down
which test is failing.

Andrew Bartlett
(This used to be commit 281bc76d3d)
2008-01-23 09:00:00 +11:00
Andrew Bartlett
85c7021216 Test the behaviour of mixed domain_scope and search_options controls.
Andrew Bartlett
(This used to be commit 89053bc564)
2008-01-16 08:58:07 +11:00
Andrew Bartlett
0ec60cfd83 Make ldap.js test easier to re-run in failure cases, by deleting more
things that we will create later.

Andrew Bartlett
(This used to be commit 9b47b551a3)
2008-01-16 08:57:28 +11:00
Jelmer Vernooij
7b06161904 Remove accidently committed debugging statement.
(This used to be commit 9ad2de6e99)
2008-01-13 04:50:33 +01:00
Jelmer Vernooij
95f83d9040 tests.blackbox: Avoid my local Kerberos setup from interfering with the blackbox.smbclient test.
(This used to be commit 1d703dcf3a)
2008-01-13 02:45:55 +01:00
Andrew Bartlett
dfc27ff863 r26488: Implement tests for the ranged_results module.
Untested code is broken code, so rework the module until it passes...

It turns out that AD puts search attributes onto the wire in the
reverse order to what Samba does.  This complicates exact value
matching, so this is skipped for now.

Andrew Bartlett
(This used to be commit 91bcb60d31)
2007-12-21 05:50:45 +01:00
Andrew Bartlett
449c681d5b r26479: Further test behaviour of 'attribute or value exists'.
Andrew Bartlett
(This used to be commit 11c153163c)
2007-12-21 05:50:37 +01:00
Andrew Bartlett
f8bc24065b r26420: Don't print a blow-by-blow description of every search we do, just the
errors that occour.

Andrew Bartlett
(This used to be commit bf5b2f467f)
2007-12-21 05:49:48 +01:00
Andrew Bartlett
9d4d41f65d r26419: Add a module to implement 'ambigious name resolution' by munging the
incoming LDAP filter.

Warning: Any anr search will perform a full index search.  Untill ldb
gets substring indexes, this is unavoidable.

Also implement a testsutie to show we match AD behaviour for this
important extension (used in the Active Directory Users and Computers
MMC plugin, as a genereral 'find').

This will also be useful to OpenChange, as their server needs to
implement this.

Andrew Bartlett
(This used to be commit 044b509472)
2007-12-21 05:49:48 +01:00
Andrew Bartlett
364266e22a r26192: Handle, test and implement the style of extended_dn requiest that MMC uses.
It appears that the control value is optional, implying type 0 responses.

Failing to parse this was causing LDAP disconnects with 'unavailable
critical extension'.

Andrew Bartlett
(This used to be commit 833dfc2f2a)
2007-12-21 05:46:44 +01:00
Andrew Bartlett
37fdef233e r26182: Extend our linked attribute testsuite to cover many more possible
modifications, and then extend our implementation to match.

Andrew Bartlett
(This used to be commit 65d17f0ad7)
2007-12-21 05:46:38 +01:00
Andrew Bartlett
470043bf7a r26140: Add a new test for searches by distinguieshedName and dn, and
implement these in the simple ldap mapping module.

We still don't pass this test, because we must get linked attributes
into OpenLDAP.

Andrew Bartlett
(This used to be commit d41f34e979)
2007-12-21 05:46:20 +01:00
Andrew Bartlett
3b6ff04631 r25961: Add new tests to verify basedn validation in LDAP searches.
Andrew Bartlett
(This used to be commit e178df4a18)
2007-12-21 05:45:19 +01:00
Andrew Bartlett
58f9b5702a r25948: Fix up the samba3sam test (which is very fragile) to work with the new
restrictions imposed by the samldb module.

This module is worth keeping, because when we go back to do more
extensive backend mapping, the testing of this module shows it is
still possible.

Andrew Bartlett
(This used to be commit a10d2554dc)
2007-12-21 05:45:13 +01:00
Andrew Bartlett
27c9f6c235 r25891: Test that we get the correct return value when we attempt to reference
invalid entries with a linked attribute.

Make Samba4 pass that test, by fixing a silly bug in the
linked_attributes module.  (By passing down the 'original' request
structure, tdb would override our handle, and therefore we would never
be called for the 'wait', which collects the errors).

Fix up the provision templates to handle the newly required
referential integrity.

Andrew Bartlett
(This used to be commit 0377d85bbd)
2007-12-21 05:44:41 +01:00
Andrew Bartlett
c112597ba7 r25826: Prove that adding a user or computer via LDAP doesn't magicly give
them any more group memberships.

Andrew Bartlett
(This used to be commit c805934017)
2007-12-21 05:44:15 +01:00
Andrew Bartlett
b98169884b r25788: Use a single routine to handle the creation of modify requests in the
linked_attributs code.

This drasticly reduces the code duplication here.

Andrew Bartlett
(This used to be commit c66e188e67)
2007-12-21 05:43:59 +01:00
Andrew Bartlett
96116b7f84 r25787: Assert that we handle the group membership updating correctly,
including when we delete members from the DB.

Andrew Bartlett
(This used to be commit 2c95274e25)
2007-12-21 05:43:58 +01:00
Andrew Bartlett
8a8948a17a r25781: Handle and test linked attribute renames.
Andrew Bartlett
(This used to be commit 56d9dd5140)
2007-12-21 05:43:56 +01:00
Andrew Bartlett
a4c79f06ae r25762: This test belongs best with the other checks for a valid parent, in
the objectclass module.

Andrew Bartlett
(This used to be commit 16a292fcb1)
2007-12-21 05:43:47 +01:00
Andrew Bartlett
464dd2ada1 r25761: Rename to be a DN to be a child of itself wasn't being checked for.
This prevents CN=test,dc=samba,dc=example,dc=com being renamed into
CN=test2,cn=test,dc=samba,dc=example,dc=com

Andrew Bartlett
(This used to be commit 958a92ed0c)
2007-12-21 05:43:47 +01:00
Andrew Bartlett
dbb3c74464 r25760: Test out relative distinguished name behaviour under renames.
Andrew Bartlett
(This used to be commit 0019596b71)
2007-12-21 05:43:47 +01:00
Andrew Bartlett
46210e11f1 r25754: More work on normal forms for ldb input.
This patch is to ensure that all attributes are in the same case as
the schema specifies.  In the process, I ensure that all attributes
are indeed in the schema.

This ensures we use the schema case, not the user supplied case for
future responses, which assists any (incorrect, but possible) case
sensitive processing on a client.

I've also removed more of the subtle 'schema &&' that metze objected
to in the for loops, moving to a much more explicit 'if (schema)'.

Andrew Bartlett
(This used to be commit bfc96fff06)
2007-12-21 05:43:45 +01:00
Andrew Bartlett
47f6988c6d r25753: Move cn=rootdse to @ROOTDSE to avoid being caught up in schema restrictions.
Andrew Bartlett
(This used to be commit f3390c9054)
2007-12-21 05:43:45 +01:00
Andrew Bartlett
16d0395047 r25750: Update the objectclass module to improve consistency in Samba4.
The aim here is to ensure that if we have

CN=Users,DC=samba,DC=example,DC=com

that we cannot have a DN of the form

cn=admin ,cn=useRS,DC=samba,DC=example,DC=com

This module pulls apart the DN, fixes up the relative DN part, and
searches for the parent to copy the base from.

I've used the objectclass module, as I intend to also validate the
placement of child objects, by reading the allowedChildClasses virtual
attribute.

In the future, I'll also force the attribute names to be consistant
(using the case from the schema).

Andrew Bartlett
(This used to be commit c0a0c69ac5)
2007-12-21 05:43:43 +01:00
Andrew Bartlett
5cfa773202 r25710: Finally fix subtree renames. Untested code is broken code and in this
case an oddity of the javascript caused the test to 'pass'.

For the same oddity, we have a failure in ldb's handling of spaces in
DNs.  We need to resolve that too.

Andrew Bartlett
(This used to be commit e8cbac1a46)
2007-12-21 05:43:24 +01:00
Andrew Bartlett
c64116e158 r25218: After discussion with Simo, remove the subclass support from LDB.
Subclass support was designed to avoid needing to spell out the full
list of objectClasses that an entry was in.  However, Samba4 now
enforces this restriction in the objectClass module, and the way
subclass matching was handled was complex and counter-intuitive in my
opinion (and did not match LDAP).

Andrew Bartlett
(This used to be commit f5ce04b904)
2007-10-10 15:06:56 -05:00
Andrew Bartlett
6a9a1bd913 r25204: Patch by Andrew Kroeger <andrew@sprocks.gotdns.com> fixing bug #4958 -
rename of ldb entries for a case change (only).

I've modified the testsuite to verify this.

Andrew Bartlett
(This used to be commit 9cccd00dac)
2007-10-10 15:06:52 -05:00
Jelmer Vernooij
bf4f1307ab r24876: Use more absolute paths to samba4 binaries.
(This used to be commit 8616bfa0ae)
2007-10-10 15:03:26 -05:00
Andrew Bartlett
4e1d0cc8e3 r24761: Permit subtree renames in Samba4.
The module is scary: On a rename, it does a search for all entries
under that entry (including itself), and fires off a seperate rename
call for each result.  This will fail miserably on an LDAP backend,
but I'll need to work on using hdb for OpenLDAP, and hope Fedora DS
can implement subtree renames at some point.

Andrew Bartlett
(This used to be commit 13908a8cb4)
2007-10-10 15:03:05 -05:00
Jelmer Vernooij
a73a8d4b9d r24706: Move nmblookup tests to separate blackbox testsuite.
(This used to be commit aeb2e714f2)
2007-10-10 15:02:52 -05:00
Andrew Bartlett
666a833d2e r24693: Test search options in ldb blackbox testing.
Andrew Bartlett
(This used to be commit 9f45b5553a)
2007-10-10 15:02:47 -05:00
Jelmer Vernooij
8d6b9f2b88 r24691: All smbclient blackbox tests pass.
(This used to be commit c3a1386274)
2007-10-10 15:02:46 -05:00
Andrew Bartlett
0eb3ee3204 r24459: Fix up ldap.js and test_ldb.sh to test the domain_scope control, and
to test the behaviour of objectCategory=user searches.

It turns out (thanks to a hint on
http://blog.joeware.net/2005/12/08/147/) that objectCategory=user maps
into objectCategory=CN=Person,... (by the defaultObjectCategory of
that objectclass).

Simplify the entryUUID module by using the fact that we now set the DN
as the canoncical form of objectCategory.

Andrew Bartlett
(This used to be commit b474be9507)
2007-10-10 15:01:53 -05:00
Jelmer Vernooij
4da477d4fa r24339: Move output functions to separate files.
(This used to be commit f4ff4c5f61)
2007-10-10 15:01:40 -05:00
Jelmer Vernooij
f1f4f665b0 r24335: Fix -N support.
(This used to be commit 18ea767d39)
2007-10-10 15:01:39 -05:00
Andrew Bartlett
c4e5fcc349 r24263: Fix bug 4846 (unable to copy users in MMC Active Directory Users and
Computers).

We now generate a security descriptor for each object, when it is
created.  This seems to keep MMC happy.  The next step is to honour
it.

Andrew Bartlett
(This used to be commit 72f4ae8246)
2007-10-10 15:01:32 -05:00
Andrew Bartlett
ae7819d715 r24262: Set the objectCategory by default in the objectclass module, rather than using templates.
Modify the samba3sam test to be less fussy, and not use the
objectclass module (which requires proper schema stuff now).

Andrew Bartlett
(This used to be commit 53c248c264)
2007-10-10 15:01:32 -05:00
Andrew Bartlett
63c20026c4 r24076: Make ldap.js pass against Win2k3 again (looks like we don't match AD
on this error code, but allow both for now).

Also prove that bug #4829 needs a different solution: we can't fix
this by changing the template.  I think this fix needs to be in the
SAMR server.

Andrew Bartlett
(This used to be commit c3554e3ee7)
2007-10-10 15:01:22 -05:00