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

4389 Commits

Author SHA1 Message Date
Kamen Mazdrashki
8dedb4d06e s4/test: remove local impl for open_domain and use common one 2010-05-28 22:30:09 +03:00
Kamen Mazdrashki
fce427134d s4/test: remove torture/libnet/utils.h as we are using proto.h now 2010-05-28 22:30:09 +03:00
Kamen Mazdrashki
1118c7b0e4 s4/test: change prototype for test_opendomain()
- name changed to test_domain_open to be more alike athore functions
  in utils.c file
- output parameters moved to the end param list definition just
  after mem_ctx so it is somehow more clear those params are OUT
2010-05-28 22:30:08 +03:00
Kamen Mazdrashki
8e3a433f93 s4/test: Refactor test_opendomain to address following
- param names made more clear what they stand for
- dom_sid out param is now optional, so that this function may
  be used in cases where we don't need dom_sid
- SAMR connection handle is closed as it is not used further
2010-05-28 22:30:08 +03:00
Kamen Mazdrashki
3a899e24d5 s4/test: make samr_close handle functio public
It is to be used further for closing opened handles when testing
using SAMR interface
2010-05-28 22:30:08 +03:00
Kamen Mazdrashki
cf79435545 s4/test: refactor NET-USERINFO test to be more 'torture' friendly
Test may be further refactored to be converted as a test case
(what it is actually)
2010-05-28 22:30:07 +03:00
Kamen Mazdrashki
2053403045 s4/test: test_userinfo/_async tests should use passed user_name param value 2010-05-28 22:30:07 +03:00
Günther Deschner
667716d204 s4-smbtorture: finally test all levels in rap_NetUserGetInfo RAP-SAM test.
Guenther
2010-05-28 00:22:40 +02:00
Günther Deschner
7803bcdae6 s4-smbtorture: remove obsolete handmarshalled rap code.
Guenther
2010-05-28 00:22:18 +02:00
Günther Deschner
82982bd480 s4-smbtorture: we can fully use autogenerated code to pull info unions now.
Guenther
2010-05-28 00:17:45 +02:00
Günther Deschner
a1fc7aebfc s4-smbtorture: create the user to test in test_usergetinfo() in RAP-SAM.
Guenther
2010-05-27 13:37:28 +02:00
Günther Deschner
66e9b8c888 s4-smbtorture: add usergetinfo to RAP-SAM.
Guenther
2010-05-26 22:58:36 +02:00
Günther Deschner
b86666ab53 s4-smbtorture: add smbcli_rap_netusergetinfo().
Guenther
2010-05-26 22:20:13 +02:00
Kamen Mazdrashki
c2021e4211 s4/test: Connect SAMR and LDARPC pipes before calling libnet_ functions
In multi-DC environment, NBT name resolution may resolv
domain name to any of DCs.
This make this test to fail, as we are modifying the user account
on one DC and query user info immediately after that on another DC.
2010-05-26 14:36:15 +03:00
Kamen Mazdrashki
de60cbb6e7 s4/test: remove unused code
There is no need anymore to modify samAccountName
of the testing user to original value as test_cleanup()
will spot the right samAccountName to delete
2010-05-26 14:36:14 +03:00
Kamen Mazdrashki
5444272f89 s4/test: make test_cleanup() in libnet_user library more robust
test_cleanup() is called always with RDN name of the user to be deleted.
When modify-user test fails however, we end up with a user
with RDN = libnetusertest and samAccountName = random_name.
This way we can not delete the user and the error message is
quite misleading (I've spent a *lot* of time trying to figure out
if the database is corrupted because of this error).
2010-05-26 14:36:13 +03:00
Kamen Mazdrashki
bbdb838422 s4/test: rename enum test_fields{} member names to be more descriptive 2010-05-26 14:36:13 +03:00
Kamen Mazdrashki
644593d30e s4/test: Replace hand-made field count to test
This patch replaces hand-make count of fields to be tested
with defines for FIRST-LAST value for corresponding fields
to test with.

As a side-effect, 'acct_flags' is now included in tests.
2010-05-26 14:36:12 +03:00
Matthias Dieter Wallnöfer
abf2764361 s4:torture/rpc/samr.c: Fix the "ValidatePassword" test
It was failing randomly due to an uninitialised "status" variable.
2010-05-25 12:09:32 +02:00
Simo Sorce
8040bc608a torture: fix typos 2010-05-22 12:40:42 -04:00
Matthias Dieter Wallnöfer
6af5e7cde1 s4:torture/rap/rap.c - quiet discard const warning 2010-05-21 23:35:58 +02:00
Matthias Dieter Wallnöfer
bd3e70c1be s4:torture/raw/open.c - remove unused variables and fix error handling 2010-05-21 23:35:58 +02:00
Günther Deschner
dd3c367153 s4-smbtorture: Fix NetUserPasswordSet2 RAP tests.
Guenther
2010-05-21 18:11:10 +02:00
Günther Deschner
94d41ddc8f s4-smbtorture: fix smbcli_rap_netuserpasswordset2().
Guenther
2010-05-21 18:11:04 +02:00
Andreas Schneider
b6b3822289 s4-torture: Improved the winreg symlink test.
This test is still disabled as we don't know how to remove a symbolic
link. It looks like there only DeleteKey functions which can work on a
handle are able to delete a symbolic link.

Pair-Programmed-With: Michael Adam <obnox@samba.org>
2010-05-21 15:59:23 +02:00
Andreas Schneider
74d0fc10fd s4-torture: Disable the security descriptor tests. 2010-05-21 15:59:10 +02:00
Andreas Schneider
225bd02dab s4-torture: Try to fix the winreg tests. 2010-05-21 15:59:00 +02:00
Michael Adam
124047877d s4:torture:winreg: improve error messages in test_HKLM_wellknown 2010-05-21 11:24:27 +02:00
Michael Adam
67439d4297 s4:torture:winreg: improve error messages in test_QueryValue_full
So that one has a chance to tell what part of the test failed. And why.
2010-05-21 11:24:15 +02:00
Andrew Bartlett
cba7f8b827 s3:dom_sid Global replace of DOM_SID with struct dom_sid
This matches the structure that new code is being written to,
and removes one more of the old-style named structures, and
the need to know that is is just an alias for struct dom_sid.

Andrew Bartlett

Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-21 10:39:59 +02:00
Andrew Bartlett
c8a23147fe s4:libcli/ldap Rename ldap.h to libcli_ldap.h
It is a problem if a samba header is called ldap.h if we also want
to use OpenLDAP's ldap.h

Andrew Bartlett
2010-05-21 17:39:15 +10:00
Günther Deschner
783cd32a75 s4-smbtorture: add kernel_mode_registry_path().
Guenther
2010-05-21 01:31:26 +02:00
Günther Deschner
e6047c1634 s4-smbtorture: Fix volatile test in RPC-WINREG.
Guenther
2010-05-21 01:31:22 +02:00
Günther Deschner
7c6be166d0 s4-smbtorture: use push_reg_sz/push_reg_multi_sz in spoolss tests.
Guenther
2010-05-20 22:49:51 +02:00
Günther Deschner
393e1495af s4-smbtorture: pass down hkey to main keytest in RPC-WINREG.
Guenther
2010-05-20 22:49:50 +02:00
Günther Deschner
ff3d2bef11 s4-smbtorture: print local_machine name in RemoteFindFirstPrinterChangeNotifyEx test.
Guenther
2010-05-20 22:49:50 +02:00
Günther Deschner
7370d03627 s4-smbtorture: use push_reg_sz()/push_reg_multi_sz() in RPC-WINREG.
Guenther
2010-05-20 22:49:50 +02:00
Günther Deschner
9c7d47fdad s4-smbtorture: take a TODO note for RAP-PRINTING.
Guenther
2010-05-20 11:08:14 +02:00
Andrew Bartlett
4fa9aa3099 s4:torture Add tests to demonstrate S2U4Self in the RPC-PAC test
We also compare against SamLogon to try and validate the whole thing.
Note that we must represent NULL as "" when comparing between the PAC
and SamLogon, due to different marshalling of the structures.

Andrew Bartlett
2010-05-20 17:39:09 +10:00
Matthieu Patou
9f01e7af6b s4 torture: Add tests for dfs referrals handling in SMB/trans2 requests
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-18 15:31:13 +02:00
Matthieu Patou
0e4e39c7f5 s4 torture test: Adapt ndr-dfsblobs torture test to new idl
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-18 15:31:12 +02:00
Jelmer Vernooij
c0fb7b8180 s3: Fix some more iconv convenience usages. 2010-05-18 11:45:31 +02:00
Jelmer Vernooij
390ada6ec7 Remove more usages of iconv_convenience in files which were apparently not recompiled by waf. 2010-05-18 11:45:31 +02:00
Jelmer Vernooij
b8268cf7b0 s3: Remove use of iconv_convenience. 2010-05-18 11:45:31 +02:00
Jelmer Vernooij
f9ca9e46ad Finish removal of iconv_convenience in public API's. 2010-05-18 11:45:30 +02:00
Jeremy Allison
0d51bab61e Now we behave as Windows does, remove a Samba3 specific test return.
Jeremy.
2010-05-13 21:27:24 -07:00
Günther Deschner
73d654ec2f s4-smbtorture: create/delete testusers via SAMR in RAP-SAM.
Unless we spent time researching the RAP useradd calls (and implement them in
s3) it is far more easy to use existing SAMR calls to create and delete test
users that are used for RAP change password operations.

Guenther
2010-05-12 00:21:20 +02:00
Günther Deschner
b73b237a6b s4-smbtorture: add test_oemchangepassword to RAP-SAM.
Guenther
2010-05-12 00:21:06 +02:00
Günther Deschner
931b7fcc8a s4-smbtorture: add RAP-SAM testsuite with a rap_NetUserPasswordSet2 test.
Guenther
2010-05-12 00:20:41 +02:00
Günther Deschner
84ab762fd5 s4-smbtorture: getting serious about checking rap status return codes.
Guenther
2010-05-12 00:17:24 +02:00