summaryrefslogtreecommitdiff
path: root/testprogs
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r20176: Info method returns null object if the user is not found.Rafal Szczesniak1-4/+10
rafal (This used to be commit a20b05183d274a3a780ae197dc7014428739cc7a)
2007-10-10r20143: a bit of experiments before doing serious changes in ejsnet.Rafal Szczesniak1-0/+6
rafal (This used to be commit 3cdd43ebcedfa7d1d59bd33b3bfed4e80560ec82)
2007-10-10r19971: typo fixRafal Szczesniak1-1/+1
rafal (This used to be commit 2586958881f9be513e155d1e8fb9a34a8ccba3b6)
2007-10-10r19731: Modify the ldb_map infrustructure to always map from requestedAndrew Bartlett1-21/+53
attributes to backend (remote) attributes. We can't do a reverse mapping safely where the remote attribute may be a source for multiple local attributes. (We end up with the wrong attributes returned). In doing this, I've modified the samba3sam.js test to be more realistic, and fixed some failures in the handling of primaryGroupID. I've added a new (private) helper function ldb_msg_remove_element() to avoid a double lookup of the element name. I've also re-formatted many of the function headers, to fit into standard editor widths. Andrew Bartlett (This used to be commit 186766e3095e71ba716c69e681592e217a3bc420)
2007-10-10r19729: - split basedn related tests to a new functionStefan Metzmacher1-7/+27
- and add some 'netlogon' attriubte related tests metze (This used to be commit d643c3cc5cd4547dbb7cead768993a9abee4e2eb)
2007-10-10r19727: make it possible to run the ldap.js tests against non global catalog ↵Stefan Metzmacher1-35/+46
servers metze (This used to be commit 463ed4c0040f52ef2b06337e122aac325ec01026)
2007-10-10r18786: I moved the usnChanged code around, and it now loaded in a differentAndrew Bartlett1-1/+3
module. I forgot to commit this last night. Andrew Bartlett (This used to be commit 6c5f4af01fea1e3b38d18d5b1491cb22701317cf)
2007-10-10r18721: Fix base and samba3sam EJS tests to work without installation.Jelmer Vernooij2-1/+10
(This used to be commit d062e101664a90f2f7bf0980449f920aa719ee76)
2007-10-10r18720: Get rid of unused file.Jelmer Vernooij1-241/+0
(This used to be commit 5c0451842b50e914bcc86ea59b066e86af5cae06)
2007-10-10r18573: disable the echo.js testing of echo_TestCall() for now.Andrew Tridgell1-1/+3
Jelmer, we need to fix pidl to be able to handle the double pointers in the ejs generated code (This used to be commit 63760acbb7ef6bc32e82ac843adf4f0155f0cb0a)
2007-10-10r17925: Another class we need.Andrew Bartlett1-0/+1
Andrew Bartlett (This used to be commit 5ff3f10d4fbd47419797890f87df3a50b3bb31fa)
2007-10-10r17839: do not reference possibleInferiors we have not extractedSimo Sorce1-9/+81
trim duplicate may attributes (This used to be commit 4975659fd70abdbae42ee378b7be766102f4df55)
2007-10-10r17662: some more enhancements to our schema extraction tool,Simo Sorce1-1/+27
with a nasty hack in minschema.js that I really hate (This used to be commit 74c40719f2965e2bc055e539f0933d95df070fbf)
2007-10-10r17661: A patch from Martin Kuehl:Andrew Bartlett1-71/+464
This commit extends the samba3sam test suite, which contains tests for the samba3sam and ldb_map modules, with a lot of tests for inbound, i.e. add, modify, rename and delete requests. The tests each add a single record, modify it, rename it, and then delete it, at each step checking that the operations were successful and that the right data went into the right partitions. They are run for an unmapped record, a mapped record with data only in the remote partition, a mapped record with remote data that is later modified to include local data, and a mapped record with data in both the local and remote partitions. It also adds a function to the backend objects that makes construction of DNs for their respective partitions more comfortable. Cheers, Martin (This used to be commit 1ddd06f24d71c606241863cf4fe047833c64a6d2)
2007-10-10r17651: Commit the set of classess used to generate our schemaSimo Sorce1-0/+31
and update the schema with the latest additions (This used to be commit 09a32726111200e421b6fcacf1586bfbe6024fa6)
2007-10-10r17648: update minschema.jsSimo Sorce1-11/+37
this version returns also oMSyntax and oMObjectClass and also use the right value for the objects CNs add a nasty hack to ejs' mprLdbMessage() to handle binary blobs situations (This used to be commit 8dd1c1c05bc592d76d6e34b303048faf05c0fa6e)
2007-10-10r17646: Use authentication if specified.Andrew Bartlett1-0/+2
Andrew Bartlett (This used to be commit 67c9cd508ed9b28b4d605b79f6de421071177fa7)
2007-10-10r17598: Patch from Martin Kühl <mkhl@samba.org> to update the samba3sam testAndrew Bartlett1-45/+570
suite, which contains tests for the samba3sam and ldb_map modules, with a lot of tests for search requests. The tests add a small set of known records to the database, half of them with only remote data, half of them split across the local and remote backends, and test searching these records by DN, by attribute and with a range of parse trees. This suite should be extensive enough to ensure that behaviour of search requests doesn't break. (This used to be commit 120f7891faf241057457db7234ce381bfe3fd847)
2007-10-10r17597: fix prefix path handlingSimo Sorce2-23/+23
(This used to be commit 25cde0f7300f37fec6c4a897ba0a80a3e5c26e15)
2007-10-10r17547: Add test by mkhl for some of our variable substituion behaviour.Andrew Bartlett1-0/+15
Andrew Bartlett (This used to be commit c2c72565e4efef44068c4f176619942f60a9cf6e)
2007-10-10r17546: Test the loading of per-partition modules.Andrew Bartlett1-4/+5
Andrew Bartlett (This used to be commit 1a5ade30dcdf40da8d0a6d7395f1a2e93388fca3)
2007-10-10r17544: Add execute bit to js script.Andrew Bartlett1-0/+0
Andrew Bartlett (This used to be commit c1349cfd8d7e150489b94ccb005bfdffe88e4697)
2007-10-10r17543: Patch from Martin Kühl <martin.kuehl@gmail.com> to extend theAndrew Bartlett2-8/+278
samba3sam test cases for ldb_map, and to include this into our default 'make test'. (This used to be commit f69a842314b3d5c57c3fa1f5b1bae3ee6d42da2b)
2007-10-10r17525: This is a merge from the Google Summer of Code 2006 project by ↵Andrew Bartlett1-43/+80
Martin Kühl <mkhl@samba.org>. Martin took over the work done last year by Jelmer, in last year's SoC. This was a substanital task, as the the ldb modules API changed significantly during the past year, with the addition of async calls. This changeset reimplements and enables the ldb_map ldb module and adapts the example module and test case, both named samba3sam, to the implementation. The ldb_map module supports splitting an ldb database into two parts (called the "local" and "remote" part) and storing the data in one of them (the remote database) in a different format while the other acts as a fallback. This allows ldb to e.g. store to and load data from a remote LDAP server and present it according to the Samba4 schema while still allowing the LDAP to present and modify its data separately. A complex example of this is the samba3sam module (by Jelmer Vernooij), which maps data between the samba3 and samba4 schemas. A simpler example is given by the entryUUID module (by Andrew Bartlett), which handles some of the differences between AD and OpenLDAP in operational attributes. It principally maps objectGUID, to and from entryUUID elements. This is also an example of a module that doesn't use the local backend as fallback storage. This merge also splits the ldb_map.c file into smaller, more manageable parts. (This used to be commit af2bece4d343a9f787b2e3628848b266cec2b9f0)
2007-10-10r17380: An expanded test, cross-referencing the global catalog to the main port.Andrew Bartlett1-4/+69
Andrew Bartlett (This used to be commit eadc24ed291dcdb456139a206c6c8acf92bab6da)
2007-10-10r17302: Testing!Andrew Bartlett1-2/+55
This confirms that records are replicated into the correct databases, and that the case insensitive flags really work. Andrew Bartlett (This used to be commit ad463c1a5243019548bdbeea3070ec2e6cbcfcdf)
2007-10-10r17299: Improve the partition module to replicate attribute records into allAndrew Bartlett1-0/+65
partitions. Test that we do that correctly. Andrew Bartlett (This used to be commit 90c07b88010b848423dee9556a24e8d181c365dd)
2007-10-10r16934: Expand the ldb test to demonstrate partition behaviour, including theAndrew Bartlett1-16/+88
global USN and global transactions. Andrew Bartlett (This used to be commit 5abe3c4f5f31e369548640801435613421f2edac)
2007-10-10r16914: Add more tests for the partition module.Andrew Bartlett1-9/+69
Andrew Bartlett (This used to be commit 2728b60dfa50ded03e06f0bd53eee55fce5143bd)
2007-10-10r16167: Add tests for the changes to use hex digits, including some testsAndrew Bartlett1-3/+53
commented out until we fix some more things on our server. Andrew Bartlett (This used to be commit ac9d3cb5b004ef1f8e06537634f8f5c33b6c0965)
2007-10-10r16110: Start some simple rootDSE LDAP tests in ejs.Andrew Bartlett1-0/+7
Andrew Bartlett (This used to be commit 0201f0df3f3768f0d831c84c573b27bff58d00c6)
2007-10-10r16072: Do basic wildcard searching in the ejs LDAP test.Andrew Bartlett1-0/+27
Unfortunetly this didn't find the wildcard bug, but at least it tests something... Andrew Bartlett (This used to be commit f763970caf37a9191abd9c40f297c3f413fe9a56)
2007-10-10r16068: Check against the correct result in the ldap.js testAndrew Bartlett1-2/+2
Andrew Bartlett (This used to be commit 52b4e83a1c2cd47bf2f8b6d65419dae12631725a)
2007-10-10r16066: The OSX AD plugin uses objectCategory searches a lot, and uses themAndrew Bartlett1-2/+20
both fully qualified and in the 'short' form. Now we test and support this query format. Andrew Bartlett (This used to be commit 9ddcfacbcedc5eea2730d4bf902c0fcd02bcfa11)
2007-10-10r16061: Prove that removing the objectClass list in the samldb module breaks ↵Andrew Bartlett1-5/+54
things. With this fix, we now correctly detect computers again, and get the correct objectCategory, which is important for the OSX AD plugin. Andrew Bartlett (This used to be commit 4e39d7bb245bc337ac496c7e39a510d1c5611c71)
2007-10-10r16028: Re-add the objectclass module, in the new async scheme.Andrew Bartlett1-13/+123
Add a test to show that we need this, and to prove it works (for add at least). Andrew Bartlett (This used to be commit f72079029abb594677bf8c2b63e40c07e910004f)
2007-10-10r13356: test utf8 usernamesSimo Sorce1-0/+24
(This used to be commit 7ddec83a602372765711bff7207657b73922aaea)
2007-10-10r12998: A big update to samldb.cAndrew Bartlett1-2/+34
This updates the module to handle both SID allocation and nextRid updating while importing users. (As imported users already have a SID, so don't go via the allocation step). We also ensure that SIDs in the database are unquie at create time. Furthermore, at allocation time, we double-check the SID isn't already in use, and that we don't create a foriegnSecurityPrincipal for a 'local' sid. Also create random samAccountName entries for users without one (we were setting $000000-000000000000). We may want to seperate the uniqueness code from the rest of samldb, and into a module with the objectguid code, which needs similar checks. These checks also need to apply to modification, or those modifications denied outright. Also update part of the testsuite to validate this. Andrew Bartlett (This used to be commit 7a9c8eee4bea88f5f0bb7c62f701476384b7dc84)
2007-10-10r12892: Add a 'Migrate from Windows' page to our installation section in SWAT.Andrew Bartlett1-5/+28
Doing this required reworking ejsnet, particularly so it could take a set of credentials, not just a username and password argument. This required fixing the ejsnet.js test script, which now adds and deletes a user, and is run from 'make test'. This should prevent it being broken again. Deleting a user from ejsnet required that the matching backend be added to libnet, hooking fortunetly onto already existing code for the actual deletion. The js credentials interface now handles the 'set machine account' flag. New functions have been added to provision.js to wrap the basic operations (so we can write a command line version, as well as the web based version). Andrew Bartlett (This used to be commit a5e7c17c348c45e61699cc1626a0d5eae2df4636)
2007-10-10r12324: use command line credentials if available in ldap.jsAndrew Tridgell1-0/+7
(This used to be commit f4f99f9af33699ac8fe43b09fa7542aab72a031a)
2007-10-10r11587: Trivial testing code giving an idea of how could usingRafal Szczesniak1-1/+14
subcontexts look like. rafal (This used to be commit 5a338b04f37f6160f4aaf7d9758aa2d817516eb1)
2007-10-10r11467: yay! mmc now accepts our schema. The trick was to get all the OIDAndrew Tridgell1-0/+14
mappings right for the attributeTypes field of the aggregate schema now to add the display specifiers and I won't need the proxy module any more (This used to be commit 69264362bd408f493487482a8d5e9779d9a0d475)
2007-10-10r11463: more progress on the schema generator. mmc now accepts all partsAndrew Tridgell1-3/+23
except the attributeTypes fields of the Aggregrate record. Proxying just that field and the display specifiers gives us a working mmc client hopefully i'll work out what it doesn't like about the attributeTypes field soon (This used to be commit 3af867a3f4a5fd702089400d1687e2aff017f48a)
2007-10-10r11436: this is work in progress for generating the schema we need for our ADSAndrew Tridgell1-18/+507
ldap server. It's still not quite right, and I'm chasing down a few errors that mmc throws up, but its a lot closer than it was. I had to change the approach quite substantially over the last couple of days, but this approach now seems to be working out. (This used to be commit 38ea11510c8824285d072fe0e03e443d9d584271)
2007-10-10r11309: A trivial test script for ejs libnet interface.Rafal Szczesniak1-0/+4
rafal (This used to be commit deb561ea4a00730787d129ae5eda38ceefe129f6)
2007-10-10r10990: the beginnings of a program designed to work out the minimal schemaAndrew Tridgell1-0/+112
needed to represent all the current records on a ADS LDAP server. The idea is we will use something based on this code to work out exactly what schema elements we will need for our initial ADS schema. I plan on expanding this code to automatically work out attribute properties, and write out a schema file that we can load into ldb. Interestingly, it looks like we only need 43 objectclasses and around 200 attributes to represent all records of a newly installed w2k3 ADS server. (This used to be commit 7b0ae77757d347d2b0f5bac3a49e915e24c3ab78)
2007-10-10r10919: fixed the ldb test for the new operational moduleAndrew Tridgell1-3/+4
(This used to be commit 915878d7cebacf499c0c9d264a2dcbc82b521dfd)
2007-10-10r10577: Fix error in ReadFile()Jelmer Vernooij1-3/+3
(This used to be commit 04b8c473d7d55d4d802631074843e43fe7d9cfea)
2007-10-10r10576: Add testprog for named pipes. Also add GNUmakefile's for ↵Jelmer Vernooij5-0/+98
cross-compilation using mingw32 (This used to be commit 30ba8fdc3dc8dba543686591a27b819b8f9444db)
2007-10-10r9919: Remove debug statement from samba3samJelmer Vernooij1-1/+0
Add SOC STATUS doc (This used to be commit 152c1a37b536c65e0b816319304d1fb46c2dc5a8)