summaryrefslogtreecommitdiffstats
path: root/source4
Commit message (Collapse)AuthorAgeFilesLines
* s4:dcesrv_samr_QueryGroupInfo - make it more like "QueryAliasInfo"Matthias Dieter Wallnöfer2010-06-121-14/+7
|
* s4:dcesrv_samr_QueryUserInfo - minor fixesMatthias Dieter Wallnöfer2010-06-121-1/+4
| | | | Return "NT_STATUS_NO_SUCH_USER" when user account doesn't exist.
* s4:dcesrv_samr_QueryDomainInfo - allocate the "info" structure only when ↵Matthias Dieter Wallnöfer2010-06-121-7/+9
| | | | | | | really needed That means the allocation should move after the lookup (as it is on "QueryUserInfo"). Return "NT_STATUS_NO_SUCH_DOMAIN" on an invalid domain.
* s4:dcesrv_samr_EnumDomainGroups - mostly small fixesMatthias Dieter Wallnöfer2010-06-121-3/+7
|
* s4:dcesrv_samr_EnumDomainAliases - return an empty array also when no entry ↵Matthias Dieter Wallnöfer2010-06-121-3/+0
| | | | was returned
* s4:dcesrv_samr_EnumDomainAliases - mostly small fixesMatthias Dieter Wallnöfer2010-06-121-7/+10
| | | | | The biggest change consists in the implementation of the Windows Server return size formula MIN(*r->out.num_entries, 1+(r->in.max_size/SAMR_ENUM_USERS_MULTIPLIER).
* s4:dcesrv_samr_EnumDomainUsers - make this call look more similar to ↵Matthias Dieter Wallnöfer2010-06-121-23/+28
| | | | | | | "EnumDomainGroups" and "EnumDomainAliases" That means that the lookup is now also done by "samdb_search_domain" to be more consistent.
* s4:ldif_read_prefixMap - don't cause memory leaks on error conditionsMatthias Dieter Wallnöfer2010-06-121-2/+2
|
* s4:dsdb Allow calling dsdb_convert_object_ex() directlyAndrew Bartlett2010-06-121-6/+6
| | | | | | | This will allow the libnet_vampire code to manually convert individual schema objects. Andrew Bartlett
* s4:dsdb Add debugAndrew Bartlett2010-06-121-0/+1
|
* s4:dsdb Simplfy match of objectclass in dsdb_schema_set_el_from_ldb_msgAndrew Bartlett2010-06-121-17/+4
| | | | | | | There is no need to do a full ldb_match_msg() for a simple case insensitive string. Andrew Bartlett
* s4:provision Allow both additional and override prefixmaps in SchemaAndrew Bartlett2010-06-122-5/+8
| | | | | | | The idea here is to allow some callers to specify a new prefixMap that will override the values loaded from the prefixMap.txt. Andrew Bartlett
* s4:dsdb Allow a binary prefix map to be specified in the LDIFAndrew Bartlett2010-06-121-0/+14
| | | | | | This allows it to be specified in either binary or as a string. Andrew Bartlett
* s4:dsdb Provide a function to convert from DRS prefix maps to the LDB prefixmapAndrew Bartlett2010-06-121-12/+21
| | | | | | | This allows us to push a prefixmap directly into the schema we generate in the provision code. Andrew Bartlett
* s4:dsdb Add more debugs to help track down failures to parse the prefixmapAndrew Bartlett2010-06-121-5/+20
|
* s4:dsdb Put back the reference and set_attributes in dsdb_reference_schemaAndrew Bartlett2010-06-121-0/+9
| | | | | | I'm not sure why I removed these in fe3e1af901c970f738bee92baac5d7d4f5736e17 Andrew Bartlett
* s4/test-libnet: Re-align code a bit - more readable this way IMOKamen Mazdrashki2010-06-113-24/+28
|
* s4/test-libnet: Refactor test_group_create() a little to:Kamen Mazdrashki2010-06-111-11/+22
| | | | | - Close unused policy handle for created group - re-align code - it is more readable this way IMHO
* s4/test-libnet: Refactor test_user_create() little bit to:Kamen Mazdrashki2010-06-111-11/+7
| | | | | | | | - fix a flaw that user RID is not returned in case user is recreated - close unused policy handle to created user - do not take into account the result from test_samr_close_handle - we don't case
* s4/test-libnet: add few comments for utility functionsKamen Mazdrashki2010-06-111-3/+11
|
* s4/test-libnet: Move LSA close handle function to a common locationKamen Mazdrashki2010-06-113-40/+26
|
* s4/test-libnet: remove unused codeKamen Mazdrashki2010-06-111-25/+0
| | | | | Pre-connecting SAMR and LSA pipes is implemented in test_libnet_context_init() function
* s4/test-libnet: Fix compile-time warningKamen Mazdrashki2010-06-111-1/+1
|
* Adjusted ACL tests to use encripted connection.Nadezhda Ivanova2010-06-111-120/+69
| | | | | This way we get rid of the conditional if.Samba checks, because users are successfully created and enabled.
* s4:rootdse LDB module - use LDB result constantsMatthias Dieter Wallnöfer2010-06-111-4/+5
|
* s4:passwords.py - set the "dSHeuristics"Matthias Dieter Wallnöfer2010-06-111-0/+33
| | | | | | | | | As per Nadia's request and abartlet's suggestion the test now also sets the "dSHeuristics" attribute properly to be able to perform the tests also against Windows without further configuration. The code has the neat feature that it undoes the change and resets the behaviour as it was before.
* s4:passwords.py - use "self" before "enable_account" to make really sure ↵Matthias Dieter Wallnöfer2010-06-111-1/+1
| | | | which LDB connection should be used
* s4:ldap.py - check how the directory server behaves when the ↵Matthias Dieter Wallnöfer2010-06-111-2/+12
| | | | | | | 'distinguishedName' attribute wasn't set correctly (On add operations the server does completely ignore it and uses the "header" DN)
* s4:ldap.py - check if the "name" of an entry was really ignoredMatthias Dieter Wallnöfer2010-06-111-2/+7
|
* ldb:ldb_sqlite3 backend - remove a warning which has already been resolvedMatthias Dieter Wallnöfer2010-06-111-1/+0
|
* ldb:ldb_sqlite3 backend - remove checks which are now done elsewhereMatthias Dieter Wallnöfer2010-06-111-29/+0
| | | | (In SAMBA LDB modules)
* Add missing stub functions.Jelmer Vernooij2010-06-111-0/+9
|
* s4-python: Fix formatting.Jelmer Vernooij2010-06-117-133/+176
|
* s4-smbtorture: rework internals of RPC-SPOOLSS-ACCESS testsuite.Günther Deschner2010-06-111-71/+181
| | | | Guenther
* s4/test: use test_libnet_context_init() function to create libnet_contextKamen Mazdrashki2010-06-112-24/+23
| | | | | This way we ensure that LIBNET call will be issued against the DC we are testing against
* s4/test: fix SEGFAULT in test_group_create when rid is NULLKamen Mazdrashki2010-06-111-1/+4
| | | | | Caller of this function may not need group RID and in such case it passes NULL for rid parameter
* s4/test-libnet: Helper func to initialize libnet_contextKamen Mazdrashki2010-06-111-0/+54
| | | | | | | | | | | | | | | | | | and create rpc connections to SAMR and LSA pipes. This function should be used in cases where we need 'deterministic' connection to the DC we are testing against. The problem is that most of the test follow the pattern: 1. Connect to server supplied on command line 2. Create user/group through connection in 1. 3. Use 'fresh' libnet_context to query/alter the object in step 2. In singe-DC environment this work well. But in multiple-DC environment libnet may connect to another DC (step 3), not the one we use in step 1 and 2. This leads to false error - object created in step 2 is not found on DC we are querying in step 3.
* s4/test: Call test_user_cleanup with original RDN for the userKamen Mazdrashki2010-06-111-1/+1
| | | | | | 'name' var is changed during the test execution and should contain samAccountName for the user, while test_user_cleanup() expects account RDN to be passed
* s4/test: Fix incorrect NTSTATUS comparisonKamen Mazdrashki2010-06-111-2/+2
| | | | In case group already exists, we should get NT_STATUS_GROUP_EXISTS.
* s4/test: remove create/delete group implementation in API-CREATEGROUP testKamen Mazdrashki2010-06-111-110/+3
| | | | | We already have common implementation for create/delete group in libnet/utils.c
* s4/test: Remove duplicated test_opendomain() functionalityKamen Mazdrashki2010-06-111-54/+1
| | | | | We already have a nice common test_domain_open() function in libnet/util.c
* s4/test: libnet_user tests should use common test_user_cleanupKamen Mazdrashki2010-06-111-129/+5
| | | | implementation instead of not-so-informative test_cleanup()
* s4/test: Refactor test_user_cleanup to be more robustKamen Mazdrashki2010-06-111-12/+84
| | | | | We always call this function with user's account RDN while samr_LookupNames() searches for samAccountName.
* s4/test: remove duplicated commentKamen Mazdrashki2010-06-111-3/+0
|
* s4:ldap.py - add testcase which demonstrates the reset of the "primaryGroupID"Matthias Dieter Wallnöfer2010-06-101-0/+7
|
* s4:samldb LDB module - fix up the case when the old and new "primaryGroupID" ↵Matthias Dieter Wallnöfer2010-06-101-7/+7
| | | | are the same
* s4:samldb LDB module - don't create multiple "ac" module contexts on modify ↵Matthias Dieter Wallnöfer2010-06-101-12/+6
| | | | | | | operations Since we do now run sequentially through all checks we don't need multiple "ac" contexts anymore.
* s4:dcesrv_samr_Add/DeleteAliasMember - provide better NTSTATUS return codes ↵Matthias Dieter Wallnöfer2010-06-101-6/+19
| | | | when something didn't work
* s4:dcesrv_samr_GetAliasMembership - fix type of counter variablesMatthias Dieter Wallnöfer2010-06-101-1/+2
|
* s4:dcesrv_samr_DeleteAliasMember - add more braces to fit better the coding ↵Matthias Dieter Wallnöfer2010-06-101-4/+6
| | | | styles