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

347 Commits

Author SHA1 Message Date
Andrew Tridgell
9539e2b508 major upgrade to the ldb attribute handling
This is all working towards supporting the full WSPP schema without a
major performance penalty.

We now use binary searches when looking up classes and attributes. We
also avoid the loop loading the attributes into ldb, by adding a hook
to override the ldb attribute search function in a module. The
attributes can thus be loaded once, and then saved as part of the
global schema. 

Also added support for a few more key attribute syntaxes, as needed
for the full schema.
2009-04-02 16:42:21 +11:00
Kai Blin
855d2a927e s4 libnet: Add support for groupinfo by sid lookup 2008-12-29 12:52:27 +01:00
Jelmer Vernooij
dcc4081f75 Fix more compiler warnings. 2008-12-23 23:22:57 +01:00
Günther Deschner
bb1d7684d2 s4-samr: merge samr_LookupDomain from s3 idl. (fixme: python)
Guenther
2008-11-10 21:46:30 +01:00
Günther Deschner
61391d0ade s4-samr: merge samr_LookupNames from s3 idl. (fixme: python)
Guenther
2008-11-10 21:46:30 +01:00
Günther Deschner
3206f35527 s4-srvsvc: merge srvsvc_NetShareAdd from s3 idl.
Guenther
2008-10-31 02:44:31 +01:00
Günther Deschner
0b95cb251c s4-srvsvc: merge srvsvc_NetShareInfo502 from s3.
Apparently both s3 and s4 are not entirely correct one this. metze is looking
into hand-marshalling security descriptors so this will fix this finally. For
now, just keep the two in sync.

Guenther
2008-10-31 02:44:29 +01:00
Jelmer Vernooij
23302413b3 Remove unused include param/param.h. 2008-10-24 16:37:56 +02:00
Jelmer Vernooij
87ec1d2532 Make sure prototypes are always included, make some functions static and
remove some unused functions.
2008-10-20 18:59:51 +02:00
Jelmer Vernooij
9565999755 Fix include paths to new location of libutil. 2008-10-11 21:31:42 +02:00
Stefan Metzmacher
29049aa670 drsuapi: print out the number of linked attribute values we got
metze
(This used to be commit 34f8b2abdd)
2008-07-16 14:42:12 +02:00
Stefan Metzmacher
f0e44c35af drsuapi: make use of the 'more_data' field in DsGetNCChangesCtr[1|6]
metze
(This used to be commit 35c7fa470a)
2008-07-16 14:42:11 +02:00
Stefan Metzmacher
c6ea7f0221 drsuapi: total_object_count was the wrong guess
The total_object_count member of DsGetNCChangesCtr[1|6] was wrong
it's the error code of an extended operation.

DsGetNCChangesCtr6 has a nc_object_count value which contains
the estimated amount of objects in the naming_context.

W2k seems to have a bug and sends this number of objects
in the extended_ret field. Maybe it's just a bug and
not a feature:-)

metze
(This used to be commit 6793109212)
2008-07-16 12:16:58 +02:00
Stefan Metzmacher
dfb1ba3d9e NET-API-BECOME-DC: fix crash bugs because of unintialized variables
metze
(This used to be commit 6acf42c2e4)
2008-07-16 12:12:29 +02:00
Simo Sorce
929adc9efa Make up the right dependencies now that ldb depends on libevents
(This used to be commit 3b8eec7ca3)
2008-06-14 11:59:19 -04:00
Jelmer Vernooij
1e973565b6 Move subunit infrastructure code into lib/torture.
(This used to be commit 5b44d8121d)
2008-04-27 14:02:46 +01:00
Kai Blin
240d959005 libnet: Make UserInfo accept a SID as input as well, fix wb_cmd_getpwuid
(This used to be commit 5f3a70f285)
2008-04-24 11:17:23 +02:00
Simo Sorce
4e83011f72 Remove more event_context_init() uses from function calls within deep down the code.
Make sure we pass around the event_context where we need it instead.
All test but a few python ones fail. Jelmer promised to fix them.
(This used to be commit 3045d39162)
2008-04-21 18:12:33 -04:00
Jelmer Vernooij
21fc767378 Specify event_context to ldb_wrap_connect explicitly.
(This used to be commit b4e1ae07a2)
2008-04-17 12:23:44 +02:00
Jelmer Vernooij
a145d21de6 Avoid using event_context_find where possible.
(This used to be commit 04420b4689)
2008-04-17 01:37:02 +02:00
Simo Sorce
4f51b0246d Fix problems with event context not being the parent.
(This used to be commit 957c4d893a)
2008-04-14 12:45:51 -04:00
Andrew Bartlett
6a7acf3952 Reuse the lp_ctx and samdb returned by the python provision.
Apply the same fix as in libnet_vampire in the old DRS test code.

Andrew Bartlett
(This used to be commit 34adb0e0bb)
2008-04-11 19:37:23 +10:00
Andrew Bartlett
ae977ef247 Fix merge errors on C provision interface after jelmer's good work.
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet

Conflicts:

	source/torture/local/torture.c
(This used to be commit 5bf1c89cf8)
2008-04-11 11:11:42 +10:00
Jelmer Vernooij
574bf79f3b Fix extra argument to provision_bare().
(This used to be commit 623f64a1a7)
2008-04-10 06:07:46 +02:00
Andrew Bartlett
3f990fdf7c Remove dns_name element
This is only used in the DEBUG() message, so let's remove it.

Andrew Bartlett
(This used to be commit 5ebb64bdad)
2008-04-09 14:55:01 +10:00
Jelmer Vernooij
82c7872639 Move provision C bindings to param/.
(This used to be commit 7d45ed0c3e)
2008-04-09 03:23:13 +02:00
Andrew Bartlett
9f96f39ca0 Pass discovered server DN down to provision.
This uses the new 'serverdn' argument added to provision in the
previous commit.

Andrew Bartlett
(This used to be commit 74480c7de7)
2008-04-04 12:55:45 +11:00
Andrew Bartlett
45149fbf9d Fixup the NET-API-USERMOD test.
This test needed to be updated to handle the fact that you cannot
clear the ACB_PW_EXPIRED bit, and to always use the torture comment
functions (not printf directly).

Andrew Bartlett
(This used to be commit 2211476bbb)
2008-03-07 09:05:24 +11:00
Andrew Bartlett
c24329dc07 Fix typo
(This used to be commit e66be2f519)
2008-03-06 22:04:46 +11:00
Andrew Bartlett
85bf2abee0 Ensure we get this option from the command line, not the internal
smb.conf we generate.

Andrew Bartlett
(This used to be commit 25887c8728)
2008-03-06 22:03:10 +11:00
Andrew Bartlett
7e0ef3fd0e Make Samba4 pass the NET-API-BECOMEDC test against Win2k3 (again).
To make Samba4, using the python provision system, pass this test
required some major rework.  Untested code is broken code, and some of
the refactoring for a seperate provision test (which also now passes)
broke things.

Similarly, the iconv work has compiled, but these codepaths have never
been run (NULL pointer de-reference).

In working to use a local, rather than global, loadparm context, and
to support using a target directory, a few things needed to be
reworked, particularly around path handling.

Andrew Bartlett
(This used to be commit 1169e8d7be)
2008-03-06 21:55:26 +11:00
Jelmer Vernooij
9370dbfc49 Convert to new torture API.
(This used to be commit 40dffc177b)
2008-02-29 00:46:44 +01:00
Andrew Bartlett
17207133ea Fix up the libnet tests.
These tests still do not pass against windows, but at least now it
doesn't reset acct_flags to 0.

This is enough to have Samba4 pass it's own tests for the moment.

Andrew Bartlett
(This used to be commit aa3901311e)
2008-02-28 10:32:06 +11:00
Andrew Bartlett
269c93401e Do not re-randomise in an individual test.
smbtorture calls srandom() once for the whole suite, with command line
override to allow reproduceable random tests.

Andrew Bartlett
(This used to be commit 68dcd1073c)
2008-02-28 08:36:13 +11:00
Jelmer Vernooij
56e75ed20c Reconcile header files for torture utility functions.
(This used to be commit 1269758e95)
2008-02-15 15:53:06 +01:00
Jelmer Vernooij
85fe22a85f Use struct for provision parameters since there are so many of them.
(This used to be commit 4b9d5bc57c)
2008-02-15 15:14:55 +01:00
Jelmer Vernooij
3d6da3b162 Finish migration of provision code.
(This used to be commit 53c5924195)
2008-02-15 01:16:12 +01:00
Jelmer Vernooij
18a011d8a8 Avoid using private libnet test structure inside util_provision.
(This used to be commit 1a1f8a5e6b)
2008-02-15 00:23:56 +01:00
Jelmer Vernooij
ff64a67160 Split provision from C code out of becomedc.
(This used to be commit ed2b72ac76)
2008-02-14 23:28:31 +01:00
Jelmer Vernooij
63aa4b9021 Remove unused define.
(This used to be commit 64d6d72913)
2008-02-09 20:47:12 +01:00
Stefan Metzmacher
20f5e6ad9b NET-BECOME-DC: always try to build ejs and python code
We let getenv("PROVISION_PYTHON") decide what we want
at runtime.

metze
(This used to be commit acb5661f61)
2008-01-25 15:47:00 +01:00
Andrew Bartlett
48e79659d1 Make the repl_meta_data module the default for domain controllers.
Andrew Bartlett
(This used to be commit ae2ea1bd0c)
2008-01-24 16:17:45 +11:00
Andrew Bartlett
4172e09c53 Fix DRSUAPI replication test - NET-API-BECOME-DC.
The main change here is to work with the current module stack,
replacing only the objectGUID module, rather than a number of modules.

However, two changes were key:
 - Fixing a typo search_req->handle -> change_req->handle
 - Allowing an error of NO_SUCH_OBJECT - it is quite valid
   for the object not to exist when being replicated in.

Other small changes were required to the ejs provision to match
changes in that code.

Andrew Bartlett
(This used to be commit 7b87a58502)
2008-01-23 15:43:14 +11:00
Kai Blin
1ab7a0e66d libnet: Fix includes to silence a warning
(This used to be commit ba5a21998b)
2008-01-11 11:12:59 +01:00
Jelmer Vernooij
40acf23a92 r26645: Janitorial: Fix a couple of warnings.
(This used to be commit a2bc97e8b0)
2008-01-02 12:48:03 -06:00
Rafal Szczesniak
011248fbe1 r26634: Add NET-API-CREATEGROUP test.
(This used to be commit 3d7a18b823)
2007-12-30 13:21:01 -06:00
Jelmer Vernooij
7ff974a226 r26599: Attempt to also support provisioning using Python in the BECOME-DC test.
Not tested yet as the test it is part of has been disabled because it's broken.
(This used to be commit 6b1e25b702)
2007-12-26 11:57:08 -06:00
Rafal Szczesniak
1b1de74d71 r26531: Prevent from displaying the results if the function
call has failed.
(This used to be commit ded8a45d79)
2007-12-21 05:51:54 +01:00
Rafal Szczesniak
b8313b19fb r26530: Add NET-API-GROUPLIST test.
(This used to be commit 73566f520c)
2007-12-21 05:51:54 +01:00
Jelmer Vernooij
5f4842cf65 r26376: Add context for libcli_resolve.
(This used to be commit 459e1466a4)
2007-12-21 05:49:12 +01:00
Andrew Bartlett
82585a5ca6 r26362: Fix segfault in NET-API-DELSHARE torture test.
Andrew Bartlett
(This used to be commit aab6b7eeb8)
2007-12-21 05:49:05 +01:00
Andrew Bartlett
4b11514784 r26361: Ensure this test cannot proceed if the pipe connection failed.
Andrew Bartlett
(This used to be commit 0e04e85ec2)
2007-12-21 05:49:05 +01:00
Jelmer Vernooij
4c4323009f r26327: Explicit loadparm_context for RPC client functions.
(This used to be commit eeb2251d22)
2007-12-21 05:48:41 +01:00
Jelmer Vernooij
485b24fc11 r26326: Remove more uses of global_loadparm.
(This used to be commit e1b7c1aee3)
2007-12-21 05:48:38 +01:00
Jelmer Vernooij
509e82e402 r26272: Remove global_loadparm in some more places.
(This used to be commit 1ab76ecc53)
2007-12-21 05:47:55 +01:00
Jelmer Vernooij
43696d2752 r26252: Specify loadparm_context explicitly when creating sessions.
(This used to be commit 7280c1e941)
2007-12-21 05:47:29 +01:00
Jelmer Vernooij
ab69eb8d89 r26250: Avoid global_loadparm in a couple more places.
(This used to be commit 2c6b755309)
2007-12-21 05:47:28 +01:00
Jelmer Vernooij
779f452a72 r26240: We now actually use torture_context pointers for more than just allocation.
Fix a few places where we were passing talloc contexts that were not
torture contexts.
(This used to be commit 9d12fc7dc5)
2007-12-21 05:47:21 +01:00
Jelmer Vernooij
bbdfbf8d9d r26238: Add a loadparm context parameter to torture_context, remove more uses of global_loadparm.
(This used to be commit a33a553054)
2007-12-21 05:47:20 +01:00
Jelmer Vernooij
ca0b72a1fd r26003: Split up DB_WRAP, as first step in an attempt to sanitize dependencies.
(This used to be commit 56dfcb4f2f)
2007-12-21 05:45:40 +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
Jelmer Vernooij
2151cde580 r25554: Convert last instances of BOOL, True and False to the standard types.
(This used to be commit 566aa14139)
2007-10-10 15:07:55 -05:00
Jelmer Vernooij
2f3551ca7c r25446: Merge some changes I made on the way home from SFO:
2007-09-29 More higher-level passing around of lp_ctx.
2007-09-29 Fix warning.
2007-09-29 Pass loadparm contexts on a higher level.
2007-09-29 Avoid using global loadparm context.
(This used to be commit 3468952e77)
2007-10-10 15:07:34 -05:00
Jelmer Vernooij
60a1046c5c r25430: Add the loadparm context to all parametric options.
(This used to be commit fd697d77c9)
2007-10-10 15:07:31 -05:00
Jelmer Vernooij
37d53832a4 r25398: Parse loadparm context to all lp_*() functions.
(This used to be commit 3fcc960839)
2007-10-10 15:07:25 -05:00
Rafal Szczesniak
3bf358c4d1 r25377: Simplify code a little by employing commonly used functions.
rafal
(This used to be commit f0be9939cd)
2007-10-10 15:07:22 -05:00
Rafal Szczesniak
1f3f79c21f r25375: Put commonly used functions in one place.
rafal
(This used to be commit 6e9708eba8)
2007-10-10 15:07:21 -05:00
Rafal Szczesniak
d8b9666c33 r25368: Add the test of group add routine.
rafal
(This used to be commit f893244a31)
2007-10-10 15:07:19 -05:00
Jeremy Allison
9a012df08e r25175: Change to talloc_asprintf_append_buffer().
Jeremy.
(This used to be commit 0844dbf597)
2007-10-10 15:06:46 -05:00
Jelmer Vernooij
98b57d5eb6 r25035: Fix some more warnings, use service pointer rather than service number in more places.
(This used to be commit df9cebcb97)
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
ffeee68e4b r25026: Move param/param.h out of includes.h
(This used to be commit abe8349f9b)
2007-10-10 15:05:38 -05:00
Jelmer Vernooij
ab055fb990 r24894: Run the libnet tests over just one DCE/RPC transport. Other DCE/RPC tests already check
that the DCE/RPC library and interfaces work ok.
(This used to be commit d392d6e92b)
2007-10-10 15:03:31 -05:00
Jelmer Vernooij
132ddb1f46 r24871: Fix typos
(This used to be commit 7d9c898d5e)
2007-10-10 15:03:24 -05:00
Jelmer Vernooij
3e7203d0b3 r24755: Use common code for finding the RPC binding in the torture tests.
(This used to be commit e3310e7739)
2007-10-10 15:03:03 -05:00
Jelmer Vernooij
919aa6b27e r24735: Use torture API in more places.
(This used to be commit 1319d88c09)
2007-10-10 15:03:00 -05:00
Jelmer Vernooij
2fefa818a9 r24728: Use more stock torture functions.
(This used to be commit da3a7ee407)
2007-10-10 15:02:58 -05:00
Rafal Szczesniak
aa1d27be88 r24681: add basic test of libnet_GroupInfo function.
rafal
(This used to be commit 5ba36fe703)
2007-10-10 15:02:40 -05:00
Andrew Bartlett
7c9312a885 r24568: Fix the build, caused by a conflict betwen mimir's work and metze's bulk rename.
Andrew Bartlett
(This used to be commit 6e730d43e4)
2007-10-10 15:02:17 -05:00
Stefan Metzmacher
f14bd1a90a r24557: rename 'dcerpc_table_' -> 'ndr_table_'
metze
(This used to be commit 84651aee81)
2007-10-10 15:02:15 -05:00
Rafal Szczesniak
6a29604c36 r24555: Add a test for libnet's group info call.
rafal
(This used to be commit 40ad66dd75)
2007-10-10 15:02:13 -05:00
Stefan Metzmacher
b8cdadced4 r24551: rename dcerpc_interface_table -> ndr_interface_table
rename dcerpc_interface_list  -> ndr_interface_list

and move them to libndr.h

metze
(This used to be commit 4adbebef5d)
2007-10-10 15:02:12 -05:00
Andrew Bartlett
e0779e2d3b r24127: Set the Domain SID into the libnet context, and have libnet_UserInfo
return full SIDs for the user SID and primary group sid.

This should help kai with his getpwnam work in winbind.

Andrew Bartlett
(This used to be commit 078671d501)
2007-10-10 15:01:27 -05:00
Rafal Szczesniak
a47313851f r24051: more monitor function calls and monitor msg names
convention change.

rafal
(This used to be commit 6ab10b2ed2)
2007-10-10 15:01:18 -05:00
Andrew Tridgell
0479a2f1cb r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac)
2007-10-10 14:59:12 -05:00
Stefan Metzmacher
3527a578ba r23066: don't ignore errors
metze
(This used to be commit 1a1a339d48)
2007-10-10 14:52:47 -05:00
Andrew Tridgell
c42219d735 r22969: fix some more places where we could end up with more than one event
context. We now have an event context on the torture_context, and we
can also get one from the cli_credentials structure
(This used to be commit c0f65eb656)
2007-10-10 14:52:34 -05:00
Rafal Szczesniak
a4e4ff9273 r22810: when a test runs against domain controller use domain name
instead of target host name specified in binding string.

metze: this fixes the problem with passing name resolution
down the socket wrapper calls. NET tests now run against
$SERVER flawlessly.

rafal
(This used to be commit 44eacd8654)
2007-10-10 14:52:19 -05:00
Andrew Bartlett
112728c651 r22756: Make it easier to setup an LDAP replica. Provision with
--partitions-only (suggestions for a better name welcome) will setup
the partitions records, but no any data in those partitions.  This can
then point at the already configured remote LDAP server.

Andrew Bartlett
(This used to be commit ee7b06fc83)
2007-10-10 14:52:15 -05:00
Rafal Szczesniak
dffe18ed1a r22566: add a simple test of libnet_DomainList function.
rafal
(This used to be commit a1ca08b05b)
2007-10-10 14:51:44 -05:00
Stefan Metzmacher
dcd65a50a1 r21843: the computer_dn isn't needed anymore because we don't manually reset the password
anymore

metze
(This used to be commit fee2c6d13d)
2007-10-10 14:49:36 -05:00
Stefan Metzmacher
41c5453507 r21839: add my email address
metze
(This used to be commit e3be33c1d9)
2007-10-10 14:49:35 -05:00
Stefan Metzmacher
deea925853 r21514: move away from a hardcoded "smbtorturedc"
--option="become dc:smbtorture dc=mydcname"
--option="become dc:do not unjoin=yes"

joins as mydcname and creates mydcname_*.ldb files under lp_private_dir()

metze
(This used to be commit 22bc6d541e)
2007-10-10 14:48:48 -05:00
Stefan Metzmacher
5d15ba663a r21504: for simo...
metze
(This used to be commit f773b1dc6f)
2007-10-10 14:48:46 -05:00
Stefan Metzmacher
6c32f44f24 r21502: add a very useful option "become dc:donnot leave=yes"
with this you can join a domain as dc for testing:-)

You still need to setup some dns entries...

and add the ldap/.... servicePrincipalName's

abartlet: it's wrong to include ldap/ in the list of host=, we should change this...

metze
(This used to be commit 12f610d747)
2007-10-10 14:48:46 -05:00
Stefan Metzmacher
72162e08d3 r21360: - put in the correct machine account password into test_secrets.ldb
- don't overwrite the passwords with 'test' as we now understand the windows
  format for the password hashes

metze
(This used to be commit 252a4d6702)
2007-10-10 14:48:19 -05:00
Stefan Metzmacher
42598ada22 r21296: remove the session specific encryption from the attributes
before storing them.

metze
(This used to be commit 7146e265a4)
2007-10-10 14:48:04 -05:00
Stefan Metzmacher
5d8700c53c r20922: use the show_deleted module by default
metze
(This used to be commit edc37501d6)
2007-10-10 14:43:52 -05:00
Stefan Metzmacher
0f6a080ee3 r20907: reset krbtgt, machine and administator account passwords to "test"
(same values which are given the provision code for setup test_secrets.ldb)

metze
(This used to be commit 42a0304b1f)
2007-10-10 14:43:50 -05:00
Stefan Metzmacher
2467451ddf r20872: make the password_hash module specific to the domain partition
as it's the only partition that can hold securityPrincipal objects

metze
(This used to be commit 72e9cc2184)
2007-10-10 14:43:44 -05:00
Stefan Metzmacher
2c8a7cc333 r20869: - mark the rootdse with isSyncronized=TRUE after a successful replication
- reopen the ldb

metze
(This used to be commit 8e9ff529c8)
2007-10-10 14:43:42 -05:00
Stefan Metzmacher
c74968179c r20868: load the pdc_fsmo and naming_fsmo modules
metze
(This used to be commit b0e30d030e)
2007-10-10 14:43:42 -05:00
Stefan Metzmacher
cb54de2bf9 r20807: test static password for the test_*.ldb' files
metze
(This used to be commit 6790a62e4e)
2007-10-10 14:43:33 -05:00
Stefan Metzmacher
9f802707d8 r20806: make it possible to configure the secrets.ldb url
via "secrets database = my_secrets.ldb"

metze
(This used to be commit a096a97415)
2007-10-10 14:43:33 -05:00
Stefan Metzmacher
0de68094bf r20775: - use the schema_fsmo module on the schema partition, which loads the schema
if it's already in the ldb
- reopen the ldb after applying the schema, to that we use the loaded schema
  when we apply the config and domain partition objects

metze
(This used to be commit 6d320ec19c)
2007-10-10 14:40:52 -05:00
Stefan Metzmacher
5b288e6c4e r20770: remove unused var
metze
(This used to be commit b311de14c1)
2007-10-10 14:40:50 -05:00
Stefan Metzmacher
cbc8bc056c r20769: - it's wrong to add the schemaInfo blob as 2nd value to the prefixMap attribute...(was a typo)
- as the schemaInfo attribute is already applied to the ldb because it's a replicated attribute
  we should not replace it

metze
(This used to be commit 56109df406)
2007-10-10 14:40:50 -05:00
Stefan Metzmacher
caf37188d6 r20768: store the prefixMap and schemaInfo attributes on the schema head object
metze
(This used to be commit ac228b3a6a)
2007-10-10 14:40:50 -05:00
Stefan Metzmacher
abeb80b77f r20767: don't pass a dsdb_schema to dsdb_extended_replicated_objects_commit()
anymore it should use the dsdb_schema attached to the ldb_context
via dsdb_get_schema()

metze
(This used to be commit efa31bbc37)
2007-10-10 14:40:49 -05:00
Stefan Metzmacher
43063d5b14 r20733: add a function to load the oid mappings from ldb_val's
metze
(This used to be commit b7f681a8a1)
2007-10-10 14:40:34 -05:00
Stefan Metzmacher
936fb1c0f7 r20715: set the dsdb_schema on the ldb_context
after we have created a temporary one

metze
(This used to be commit 35a88f3d39)
2007-10-10 14:40:31 -05:00
Stefan Metzmacher
18f8180469 r20709: pass a repsFromTo1 struct down as it contains all needed info for the source dsa
and the highwater mark vector

metze
(This used to be commit a31e017e53)
2007-10-10 14:40:29 -05:00
Stefan Metzmacher
ffa259f4a4 r20705: store the "replUpToDateVector" attribute in DSDB_EXTENDED_REPLICATED_OBJECTS
metze
(This used to be commit c9e7a58f6a)
2007-10-10 14:40:28 -05:00
Stefan Metzmacher
384ce1baec r20685: apply records using dsdb_extended_replicated_objects_commit()
metze
(This used to be commit 8f1fd303a7)
2007-10-10 14:40:22 -05:00
Stefan Metzmacher
3137e4f2fe r20580: pass the DSDB_CONTROL_REPLICATED_OBJECT_OID with the ldb_add request
when applying replicated objects.

the samldb module ignores such requests now...
and the repl_meta_data module has different functions
for the replicated and originating cases...

metze
(This used to be commit a4d5e0126c)
2007-10-10 14:37:06 -05:00
Stefan Metzmacher
b31875ba75 r20575: apply records to the test_samdb.ldb (my birthday present to myself...:-)
we need to modify some modules to only handle originating changes...

metze
(This used to be commit 0f387d58e6)
2007-10-10 14:37:05 -05:00
Stefan Metzmacher
46908530bc r20572: - prepare a test_samdb.ldb in the NET-API-BECOME-DC torture test
- we call a ejs script from the torture test for this task
  so that we can use the provision template ldif's.

metze
(This used to be commit e84b0c7d40)
2007-10-10 14:37:03 -05:00
Stefan Metzmacher
02db88bb88 r20531: - create the rdn attribute which is an alias for the 'name' attribute
because the rdn attribute isn't explicit replicated
- create the whenChanged attribute out of the meta data
- create the objectGUID attribute out of the guid of the DsReplicaObjectIdentifier*
- create the replPropertyMetaData attribute from the meta data
- dump a more verbose form of the meta data that contains the attribute names
- dump linked attributes

a lot if this functionality will move into the repl_meta_data ldb module
in one of the next steps...

metze
(This used to be commit a6223a2043)
2007-10-10 14:36:49 -05:00
Stefan Metzmacher
536ca21c55 r20504: we handle the attribute values always as DATA_BLOB's and
don't need the union with the attribute id as switch anymore

metze
(This used to be commit d47c81923d)
2007-10-10 14:36:01 -05:00
Stefan Metzmacher
c0d70be7d0 r20483: Sorry Volker:-)
I missed to commit this file:-(

metze
(This used to be commit e11885f8a7)
2007-10-10 14:35:58 -05:00
Volker Lendecke
c4d4385a71 r20481: Fix the build -- Stefan, please look at this ;-))
(This used to be commit bbb3aaa41b)
2007-10-10 14:35:58 -05:00
Andrew Bartlett
811397151b r20456: Rename variables to avoid shadowing global function names.
Andrew Bartlett
(This used to be commit c353f2bb91)
2007-10-10 14:35:50 -05:00
Stefan Metzmacher
41d6fe36e7 r20438: - bail out on conversation errors
- create a valid ldb_message
- dump the ldb_message if --option="become dc:dump objects=yes" is passed to smbtorture

metze
(This used to be commit 34e126f659)
2007-10-10 14:30:37 -05:00
Stefan Metzmacher
9c77d0a0a8 r20421: - delay the schema analysis untill the full schema is tranferred
- call translation hooks for all attributes (but ignore the error for now)

metze
(This used to be commit c84668bf0d)
2007-10-10 14:30:34 -05:00
Stefan Metzmacher
112d58a0c5 r20381: verify the incoming oid mappings and schema info for the config and domain partition too
metze
(This used to be commit 1fab753b1d)
2007-10-10 14:30:20 -05:00
Stefan Metzmacher
6a75d272fc r20380: verify the incoming schema info and oid mappings
metze
(This used to be commit 27193e4b3d)
2007-10-10 14:30:20 -05:00
Stefan Metzmacher
89771a974c r20327: start to analyse the schema content
metze
(This used to be commit fa59f168b2)
2007-10-10 14:29:41 -05:00
Stefan Metzmacher
7cb96a785f r20293: implement store chunk hook for libnet_BecomeDC()
metze
(This used to be commit aba497f2fd)
2007-10-10 14:29:33 -05:00
Stefan Metzmacher
fdf95ba005 r20291: implement prepare_db hook of libnet_BecomeDC()
metze
(This used to be commit 07f1075d46)
2007-10-10 14:29:32 -05:00
Stefan Metzmacher
64ba98bbd4 r20285: pass more info to check_options hook and move behavior versions etc.
to the domain and forest structures

metze
(This used to be commit 15157bf5b9)
2007-10-10 14:29:32 -05:00
Stefan Metzmacher
4973fbe773 r20283: pass in callbacks to libnet_BecomeDC() from the caller
and implement the check_options call

metze
(This used to be commit fc9669e2a0)
2007-10-10 14:29:31 -05:00
Stefan Metzmacher
25e468e83f r20144: add NET-API-BECOME-DC test that tests libnet_BecomeDC()/libnet_UnbecomeDC()
metze
(This used to be commit 0359d9a00b)
2007-10-10 14:29:14 -05:00
Rafal Szczesniak
10573be26e r19926: display user listing created by the test.
rafal
(This used to be commit a97fb96203)
2007-10-10 14:28:37 -05:00
Rafal Szczesniak
740843e7fc r19925: Close the lsa handle in the end, and test calling libnet_UserList
with non-zero resume index to continue longer enumeration.

rafal
(This used to be commit efa04d6d0b)
2007-10-10 14:28:37 -05:00
Rafal Szczesniak
1f06299253 r19924: win2k3srv did not like that combination.
rafal
(This used to be commit 11b93da847)
2007-10-10 14:28:37 -05:00
Rafal Szczesniak
afce9d1df8 r19923: Update test to match the function changes.
rafal
(This used to be commit e1a20bba9d)
2007-10-10 14:28:36 -05:00
Rafal Szczesniak
e45922e304 r19593: add NET-API-USERLIST test
rafal
(This used to be commit fba1d8b041)
2007-10-10 14:24:59 -05:00
Rafal Szczesniak
9355c6ff85 r19592: a simple test for libnet_UserList
rafal
(This used to be commit cfcbddfe71)
2007-10-10 14:24:59 -05:00
Jelmer Vernooij
a39f239cb2 r19392: Use torture_setting_* rather than lp_parm_* where possible.
(This used to be commit b28860978f)
2007-10-10 14:21:24 -05:00
Jelmer Vernooij
8773e743c5 r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
output in the testsuite rather than just True or False for a
set of tests.

The aim is to use this for:
 * known failure lists (run all tests and detect tests that
						started working or started failing). This
   would allow us to get rid of the RPC-SAMBA3-* tests
 * nicer torture output
 * simplification of the testsuite system
 * compatibility with other unit testing systems
 * easier usage of smbtorture (being able to run one test
						and automatically set up the environment for that)

This is still a work-in-progress; expect more updates over the next couple of
days.
(This used to be commit 0eb6097305)
2007-10-10 14:21:12 -05:00
Rafal Szczesniak
49eb5dc142 r19251: fix silly typos causing the test to fail at account_name
and acct_expiry fields.

rafal
(This used to be commit dba5e642a0)
2007-10-10 14:20:57 -05:00
Stefan Metzmacher
d6e1eb9872 r19187: this function should be static...
(this also fix compiler warnings)

metze
(This used to be commit f8afdac471)
2007-10-10 14:20:51 -05:00
Rafal Szczesniak
ae908a5b06 r19174: fix the test to pass against win2k3 server (username length
limit had been hit here, I guess).

rafal
(This used to be commit 795a37e170)
2007-10-10 14:20:49 -05:00
Rafal Szczesniak
94bc020f84 r19025: - remove read-only and policy dependent fields and flags
- do not stop NET-API-USERMODIFY test when a single field fails
- add account flags to the fields tested
- separate "cleanup" step from closing domain at the end

rafal
(This used to be commit 16fde3b8e2)
2007-10-10 14:20:29 -05:00
Rafal Szczesniak
e99a0dd94a r18753: expand the test so that it does a growing number of changes
(up to 8, currently) randomly generated _and_ verify if the
change has actually been made.

surprising results when running the test (I hope it's just
a bug somewhere in it or in the libnet code).

rafal
(This used to be commit 652a291145)
2007-10-10 14:19:07 -05:00
Rafal Szczesniak
4818a6474c r18691: Forgot to add copyright info.
rafal
(This used to be commit 1289d419a8)
2007-10-10 14:19:02 -05:00
Rafal Szczesniak
a76d3734ae r18683: NET-USERMOD test changed to be able to perform multiple simultaneous
changes.

Also, some common definitions for user mod tests have been put into
a separate file.

rafal
(This used to be commit 0040c08748)
2007-10-10 14:19:01 -05:00
Rafal Szczesniak
07fb9f2f04 r18658: make the test change fields sequentially each one in turn.
now to multiple changes...

rafal
(This used to be commit 6df2c04e03)
2007-10-10 14:19:00 -05:00
Rafal Szczesniak
1eebe9cbe5 r18631: correct unintentional commit.
rafal
(This used to be commit c68ec9109e)
2007-10-10 14:18:58 -05:00
Rafal Szczesniak
d9f0b24cb7 r18626: fix cleanup function to safely recover after interrupted test
and add one requested field in to the function creating testing
set of changes for user modify routine.

rafal
(This used to be commit f6d4f356b3)
2007-10-10 14:18:57 -05:00
Andrew Tridgell
aab0622a75 r18325: more warnings and one compile error on aix fixed
(This used to be commit 6e7e151432)
2007-10-10 14:18:09 -05:00