summaryrefslogtreecommitdiffstats
path: root/source4
Commit message (Collapse)AuthorAgeFilesLines
* s4:torture/test_gentest.sh: make use of the PREFIX argumentStefan Metzmacher2009-11-181-5/+6
| | | | | | We should not use hardcode pathes! metze
* s4:selftest: for now skip the BASE-DELAY-WRITE test completelyStefan Metzmacher2009-11-181-0/+1
| | | | | | | | | This test randomly fails depending on the timing (the tests are too strict with the values introduced in commit 0fca2b078ceb314e429e24e3318b50451ccf423b) and local filesystem features (timestamp resolution). metze
* s4:selftest: avoid running the slow BASE-DELAY-WRITE test on the cifs proxy ↵Stefan Metzmacher2009-11-181-0/+1
| | | | | | | | share It's enough to run it on the posix share. metze
* s4:selftest: add "rpc.netlogon.*.GetDomainInfo"Stefan Metzmacher2009-11-181-0/+1
| | | | | | We need to expand the test to work against w2k8 and w2k8r2... metze
* s4/torture: Port SMBv1 Change Notify tests to SMBv2Aravind Srinivasan2009-11-174-42/+1839
| | | | | | | | * Ported all tests from raw/notify.c to smb2/notify.c * Parameterized the max_buffer_size so it can be set on a per-target basis. * Fixed CHECK macros to use torture_result * Created a SMB2-NOTIFY test suite
* s4/libcli: add a FILE_NOTIFY_CHANGE_ALL macroAravind Srinivasan2009-11-171-0/+8
| | | | | This macro encompasses all possible file notifications that can be raised.
* torture/smb2: make SMB2 BRL tests pass against W2K8R2Steven Danneman2009-11-173-100/+111
| | | | | | | | | | | | | | | The BRL tests previously based their results off several bugs in the W2K8 byte range lock code. I've fixed up the tests to pass against Win7 which has fixed these bugs, and assume that the Win7 behavior is the default. I have inverted the test behavior for >63-bit lock requests. The tests previously expected NT_STATUS_OK as their default in this case. I've changed that default to expect STATUS_INVALID_LOCK_RANGE. This may requires some changing of make test to compensate. I've also removed a few test scenarios from VALID-REQUEST in preparation of replacing them with separate tests ported from RAW-LOCK.
* s4:WINREG RPC server - remove a "talloc_free"Matthias Dieter Wallnöfer2009-11-171-2/+0
| | | | | I assume that this "talloc_free" isn't necessary since the DCERPC server frees the handle itself (we got always warnings about this).
* s4:provision_users.ldif - Descriptions generally begin with a majuscleMatthias Dieter Wallnöfer2009-11-171-2/+2
|
* s4:SAMLDB DSDB module - Add "\n"s on debug messagesMatthias Dieter Wallnöfer2009-11-171-2/+2
|
* s4:SAMLDB DSDB module - Remove "\n" in LDB error messagesMatthias Dieter Wallnöfer2009-11-171-25/+31
| | | | | | abartlet suggested me to not use anymore "\n"s in those kind of outputs. Plus, enhance a search filter to consider also "builtinDomain" objects which are basically domain objects too.
* Fixed incorrect SID for RAS Servers.Nadezhda Ivanova2009-11-172-1/+2
|
* s4:dsdb/schema: let schema_supclasses() return the correct pointerStefan Metzmacher2009-11-171-2/+2
| | | | | | str_list_unique() changes the pointer via talloc_realloc(). metze
* s4:selftest: use "dc:local" instead of a hardcoded config fileStefan Metzmacher2009-11-171-3/+3
| | | | | | | | | | If a tests needs access to the dc's config, it should run as "dc:local", then it can also access unix named pipes... If we pass a hardcoded config file the test fails if you use a selftest_prefix. metze
* s4:selftest: allways start with $(ST_RM)Stefan Metzmacher2009-11-171-2/+2
| | | | metze
* s4:selftest: place summary file into selftest-prefixStefan Metzmacher2009-11-171-1/+2
| | | | metze
* s4:heimdal: import lorikeet-heimdal-200911170333 (commit ↵Andrew Bartlett2009-11-179-25/+8
| | | | | | | | | | b532c294d974cead40a1183c71be644c6ccc2832) This fixes up connections to Windows 2003, because the previous import had a broken arcfour-hmac-md5 implementation (fixed in Heimdal 316fc6ff8ffb0cbb1ef3689685e9977c37405bc4) Andrew Bartlett
* s4/drs(tort): Convert DSSYNC test to a test case fixtureKamen Mazdrashki2009-11-172-24/+68
| | | | | | | Now it should be much more clear why and where a test in DSSYNC test case has failed. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4/drs(tort): replace DEBUG with torture_asert/comment/failKamen Mazdrashki2009-11-171-45/+49
| | | | | | | | | I left dumping of decrypted attributes values 'as is' (using DEBUG and DEBUGADD) as it uses dump_data() function. dump_data() uses DEBUGADD internally, so I have no way to redirect its output to torture_context at this point. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4/drs(tort): use torture_drsuapi_assert_call() macro for error checkingKamen Mazdrashki2009-11-171-11/+2
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4/drs(tort): replace 'printf' with 'torture_...' callsKamen Mazdrashki2009-11-171-14/+15
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4/drs(tort): 'DsSyncBindInfo.pipe' renamed - 'pipe' is a system callKamen Mazdrashki2009-11-171-11/+11
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4/drs(tort): 'DsPrivate.pipe' renamed - 'pipe' is a system callKamen Mazdrashki2009-11-173-13/+13
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:dsdb With these workarounds, we now pass the RPC-DSSYNC testAndrew Bartlett2009-11-172-3/+15
|
* s4:provision Split up reference creation, load schema earlier in the stackAndrew Bartlett2009-11-173-19/+31
| | | | | | | | | | The schema needs to be loaded above the extended_dn_out modules as otherwise we don't get an extended DN in the search results. The reference split is to ensure we create references after the objects they reference exist. Andrew Bartlett
* s4:schema Add the GUID to each defaultObjectCategory when loading from LDIFAndrew Bartlett2009-11-171-0/+49
| | | | | | | | This makes these full extended DNs, so we set the right values into the database, even before we actually set the schema objects themselves. Andrew Bartlett
* s4:dsdb Rework samdb code to use 'storage format' DNs for defaultObjectCategoryAndrew Bartlett2009-11-174-1/+67
| | | | | | | | | | It is important to always ensure that this attribute has an extended DN if the rest of the database stores things that way. The knowlege of what format the DN is stored on disk with is passed around in an LDB opaque. Andrew Bartlett
* s4:provision Generate a random objectGUID for each schema recordAndrew Bartlett2009-11-171-0/+2
| | | | | | | This is needed to then create extended DNs with GUID attributes in them, when importing from the LDIF Andrew Bartlett
* s4:dsdb Load objectGUID and extended DN defaultObjectCategory into the schemaAndrew Bartlett2009-11-174-37/+29
| | | | | | | | | | | | | | 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
* s4:dsdb Use the new flags to dsdb_module_search in schema_loadAndrew Bartlett2009-11-171-1/+3
| | | | | | | | | | | This loads the defaultObjectCategory DN as an extended DN, so we can apply it, with the associated GUID, when setting this on records in the objectClass module. Previously we would not store the extended DN components for objectCategory. Andrew Bartlett
* s4:dsdb Break up 'parse a DN from DRSUAPI' into a subfunctionAndrew Bartlett2009-11-171-73/+91
| | | | | | | | | This should make it easier to call this function from the DRS schema load code, rather than duplicate it. (we may do the same with other functions in future). Andrew Bartlett
* s4:dsdb Add 'dsdb_flags' to dsdb_module_search() to enable often-used featuresAndrew Bartlett2009-11-177-11/+84
| | | | | | | | These flags, also on dsdb_module_search_dn() allow us to add commonly set controls to this pre-packaged blocking search, without rebuilding the whole function in each caller. Andrew Bartlett
* s4:SAMLDB moduleMatthias Dieter Wallnöfer2009-11-161-14/+14
| | | | | - Add more "\n" to make sure that error messages are displayed immediately - Add a "NULL" in a attribute list
* Revert "s4:dsdb/repl/replicated_objects - Applicate also here the new ↵Matthias Dieter Wallnöfer2009-11-161-4/+1
| | | | | | | | | | "lDAPDisplayName" generator" This reverts commit df95d5c29292968b465bff24c3cf78800677a4d4. abartlet pointed out in a post on the samba-technical list that this isn't necessary at all (lDAPDisplayName normalisation algorithm). Rather it breaks functionality of the replication.
* s4:dsdb LDB attribute lists must always be a static const char **.Andrew Bartlett2009-11-161-1/+1
| | | | | | (If they are not, then due to the async code, they will cause a segfault as they reference a reclaimed portion of the stack). Andrew Bartlett
* s4:provision - Removed dependency on full Samba 3 schema from FDSEndi S. Dewata2009-11-169-152/+170
|
* Fixed some major bugs in inheritance and access checks.Nadezhda Ivanova2009-11-155-120/+274
| | | | | | | | Fixed sd creation not working on LDAP modify. Fixed incorrect replacement of CO and CG. Fixed incorrect access check on modify for SD modification. Fixed failing sec_descriptor test and enabled it. Fixed failing sd add test in ldap.python
* Fix writing corrupt registries because of hardcoded version string in IDL.Wilco Baan Hofman2009-11-151-1/+1
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Fix writing corrupt REG_SZ to the registry.Wilco Baan Hofman2009-11-151-1/+2
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Fix trailing garbage in the hbin block.Wilco Baan Hofman2009-11-151-0/+5
| | | | | | | This specifically fixes a problem showing extra bytes of garbage in list and print in regshell, even though the vk.data_length has the correct size. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Added tests for descriptor inheritance on ldap modify.Zahari Zahariev2009-11-151-121/+207
| | | | | | Fixed some expected owners and groups. Signed-off-by: Nadezhda Ivanova <nadezhda.ivanova@postpath.com>
* ldb:python bindings - add a context on "py_ldb_delete"Matthias Dieter Wallnöfer2009-11-151-2/+10
| | | | So the converted DN will be freed after usage.
* s4:ldap.py - enhance schema addition testMatthias Dieter Wallnöfer2009-11-151-12/+40
| | | | | Don't add only a new objectclass but also a new attribute. Plus let now the server itself calculate the "lDAPDisplayName" attribute and compare the result.
* s4:dsdb/repl/replicated_objects - Applicate also here the new ↵Matthias Dieter Wallnöfer2009-11-151-1/+4
| | | | | | | "lDAPDisplayName" generator Also here we've to be sure to generate the attribute correctly if it doesn't exist yet.
* s4:SAMLDB module - Add support for required and generated schema attributesAndrew Bartlett2009-11-151-7/+285
| | | | | | | This missing support found by Microsoft test suite at AD interop event. Patch by Andrew Bartlett Enhancements by Matthias Dieter Wallnöfer
* s4:samdb util - add a call for generating a correct "lDAPDisplayName"Matthias Dieter Wallnöfer2009-11-151-0/+28
| | | | | This is needed for the SAMLDB module enhancement regarding schema objects. The algorithm in pseudo code is located in MS-ADTS 3.1.1.2.3.4.
* s4:ldap.py - Deactivates some at the moment pointless test partsMatthias Dieter Wallnöfer2009-11-151-6/+6
| | | | | I think those parts should be deactivated since they're result set checks for lookups which are commented out already.
* s4-drs: DsExecuteKCC() implementationErick Nascimento2009-11-143-2/+31
| | | | | | I implemented the DsExecuteKCC() handling code on kccsrv_execute_kcc(). Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4:heimdal Import generated files from heimdal treeAndrew Bartlett2009-11-139-827/+1185
| | | | We should be able to rebuild these, but a cp is easier :-)
* s4:heimdal: import lorikeet-heimdal-200911122202 (commit ↵Andrew Bartlett2009-11-1359-646/+1168
| | | | 9291fd2d101f3eecec550178634faa94ead3e9a1)