summaryrefslogtreecommitdiffstats
path: root/source4/torture/libnet
Commit message (Collapse)AuthorAgeFilesLines
...
* s4/test-libnet-utils: refactor test_user_create()Kamen Mazdrashki2010-05-281-13/+39
| | | | | | | | - param names made more clear what they stand for - user RID out param is now optional, so that this function may be used in cases where we don't need user RID - SAMR connection handle is closed as it is not used further (we should play nice with servers)
* s4/test: remove local impl for open_domain and use common oneKamen Mazdrashki2010-05-282-57/+5
|
* s4/test: remove torture/libnet/utils.h as we are using proto.h nowKamen Mazdrashki2010-05-285-61/+4
|
* s4/test: change prototype for test_opendomain()Kamen Mazdrashki2010-05-286-13/+14
| | | | | | | - 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
* s4/test: Refactor test_opendomain to address followingKamen Mazdrashki2010-05-281-16/+33
| | | | | | | - 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
* s4/test: make samr_close handle functio publicKamen Mazdrashki2010-05-282-0/+26
| | | | | It is to be used further for closing opened handles when testing using SAMR interface
* s4/test: refactor NET-USERINFO test to be more 'torture' friendlyKamen Mazdrashki2010-05-281-24/+6
| | | | | Test may be further refactored to be converted as a test case (what it is actually)
* s4/test: test_userinfo/_async tests should use passed user_name param valueKamen Mazdrashki2010-05-281-2/+2
|
* s4/test: Connect SAMR and LDARPC pipes before calling libnet_ functionsKamen Mazdrashki2010-05-261-7/+29
| | | | | | | 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.
* s4/test: remove unused codeKamen Mazdrashki2010-05-261-18/+0
| | | | | | 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
* s4/test: make test_cleanup() in libnet_user library more robustKamen Mazdrashki2010-05-261-4/+74
| | | | | | | | | 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).
* s4/test: rename enum test_fields{} member names to be more descriptiveKamen Mazdrashki2010-05-263-28/+29
|
* s4/test: Replace hand-made field count to testKamen Mazdrashki2010-05-263-8/+11
| | | | | | | | 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.
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-181-1/+1
|
* s4:torture/rpc: rename rpc.h => torture_rpc.hStefan Metzmacher2010-04-1413-13/+13
| | | | | | | | | | | The reason for this is that some systems include <rpc/rpc.h> from within system headers. HP-UX 11.00 does so somewhere deep inside of <shadow.h>. For torture/winbind/struct_based.c <rpc/rpc.h> resolves to torture/rpc/rpc.h and breaks the build. metze
* subunit: Support formatting compatible with upstream subunit, for consistency.Jelmer Vernooij2010-04-111-1/+1
| | | | | | Upstream subunit makes a ":" after commands optional, so I've fixed any places where we might trigger commands accidently. I've filed a bug about this in subunit.
* s4:torture/libnet:add explicit check for NTSTATUS r.out.resultGünther Deschner2010-03-295-207/+223
| | | | | Guenther Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-smbtorture: use torture_context in libnet domain tests as well.Günther Deschner2010-03-231-8/+10
| | | | Guenther
* s4-smbtorture: use torture_context for debugging output everywhere in libnet ↵Günther Deschner2010-03-2312-245/+271
| | | | | | | | torture tests. Mimir, please check. Guenther
* s4-smbtorture: remove trailing whitespace in libnet torture tests.Günther Deschner2010-03-2314-185/+185
| | | | Guenther
* s4:dsdb Change dsdb_get_schema() callers to use new talloc argumentAndrew Bartlett2010-03-161-3/+3
| | | | | | | | This choses an appropriate talloc context to attach the schema too, long enough lived to ensure it does not go away before the operation compleates. Andrew Bartlett
* s4:tortore/libnet: fix crash bugs because of incorrect function prototypesStefan Metzmacher2010-03-156-26/+43
| | | | metze
* s4:torture/libnet: make use of dcerpc_binding_handle stubsStefan Metzmacher2010-03-126-91/+97
| | | | metze
* s4:torture/libnet/libnet_user.c: fix double free in error pathStefan Metzmacher2010-03-111-1/+0
| | | | metze
* NET-API-BECOME-DC: convert to torture apiStefan Metzmacher2010-03-111-54/+28
| | | | metze
* idl: switched to using the WSPP names for the 'neighbour' DRS optionsAndrew Tridgell2010-01-181-6/+6
| | | | | | | The documentation shows that all these functions in fact use the same flags variable type. To be consistent between functions, and to allow easy reference to the WSPP docs, it is better for us to also use this generic DrsOptions bitfield rather than one per operations.
* s4-libnet: Simple test for net.SetPassword() python bindingKamen Mazdrashki2009-12-251-0/+62
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4:dsdb Load objectGUID and extended DN defaultObjectCategory into the schemaAndrew Bartlett2009-11-171-1/+1
| | | | | | | | | | | | | | The load of defaultObjectCategory as an extended DN means we need to use the common parsing functions I just split out, rather than the GET_DS_DN macro. The objectGUIDs are loaded so that we can create the extended DN when we load from LDIF (and are loaded for the other cases for consistency). Also adapt callers to API changes needed for common parsing code Andrew Bartlett
* NET-API-BECOME-DC: resolve the host name to an address before callingStefan Metzmacher2009-11-121-2/+16
| | | | | | | | libnet_BecomeDC and libnet_UnbecomeDC() We're supposed to pass in source_dsa_address... metze
* s4:dsdb/repl Split the 'convert' or 'commit' stages in the DRS importAndrew Bartlett2009-11-121-26/+38
| | | | | | | This will allow us in future to do tests on the LDB values we generate from the DRS replication. Andrew Bartlett
* s4/drs: dsdb_map_int2oid() replaced by dsdb_schema_pfm_oid_from_attid()Kamen Mazdrashki2009-11-061-1/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/drs: dsdb_verify_oid_mappings_drsuapi() replaced by ↵Kamen Mazdrashki2009-11-061-1/+1
| | | | | | | | | | | | dsdb_schema_pfm_contains_drsuapi_pfm() dsdb_schema_pfm_contains_drsuapi_pfm() is part of reimplemented prefixMap interface. This name was choosen to clearly show, that this a week verification in case we want to determine if remote schema is changed. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/drs: dsdb_load_oid_mappings_drsuapi() -> dsdb_load_prefixmap_from_drsuapi()Kamen Mazdrashki2009-11-061-1/+1
| | | | | | | | Also, dsdb_load_oid_mappings_drsuapi() was reimplemented to use dsdb_schema_pfm_from_drsuapi_pfm() function to load drsuapi_prefixMap into schema->prefixmap Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-dsdb: create a static system_session contextAndrew Tridgell2009-10-231-4/+4
| | | | | | This patch adds a system_session cache, preventing us from having to recreate it on every ldb open, and allowing us to detect when the same session is being used in ldb_wrap
* s4-torture: fixed double free in libnet_group testAndrew Tridgell2009-10-221-1/+0
|
* s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell2009-10-209-24/+0
| | | | This reduces compile time somewhat.
* s4-repl: don't do double replicationAndrew Tridgell2009-09-151-2/+4
| | | | | | | | When we replicate from a remote DC, we need to note the new uSN that the local changes have resulted in, and modify the uSN that the notify task uses to determine if it should send a ReplicaSync message back to the remote DC. Otherwise we end up always triggering a ReplicaSync every time we replicate from another DC
* s4:libnet Allow 'net password change' to work on expired passwordsAndrew Bartlett2009-06-181-0/+2
| | | | | | | | | We need to pass down flags to the DCE/RPC layer to allow fallback to anonymous connections, as we can't log in with an expired password. The anonymous connection can then change the password with SAMR. Andrew Bartlett
* major upgrade to the ldb attribute handlingAndrew Tridgell2009-04-021-1/+1
| | | | | | | | | | | | | | 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.
* s4 libnet: Add support for groupinfo by sid lookupKai Blin2008-12-291-2/+3
|
* Fix more compiler warnings.Jelmer Vernooij2008-12-231-13/+13
|
* s4-samr: merge samr_LookupDomain from s3 idl. (fixme: python)Günther Deschner2008-11-104-7/+15
| | | | Guenther
* s4-samr: merge samr_LookupNames from s3 idl. (fixme: python)Günther Deschner2008-11-103-4/+16
| | | | Guenther
* s4-srvsvc: merge srvsvc_NetShareAdd from s3 idl.Günther Deschner2008-10-311-1/+4
| | | | Guenther
* s4-srvsvc: merge srvsvc_NetShareInfo502 from s3.Günther Deschner2008-10-311-2/+2
| | | | | | | | 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
* Remove unused include param/param.h.Jelmer Vernooij2008-10-241-1/+0
|
* Make sure prototypes are always included, make some functions static andJelmer Vernooij2008-10-201-0/+1
| | | | remove some unused functions.
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-1/+1
|
* drsuapi: print out the number of linked attribute values we gotStefan Metzmacher2008-07-161-16/+27
| | | | | metze (This used to be commit 34f8b2abdd546f6b60ddae2ad839119f211c995c)
* drsuapi: make use of the 'more_data' field in DsGetNCChangesCtr[1|6]Stefan Metzmacher2008-07-161-1/+1
| | | | | metze (This used to be commit 35c7fa470a7433d081403b2b57a331c7dc287aef)