summaryrefslogtreecommitdiffstats
path: root/testprogs
Commit message (Collapse)AuthorAgeFilesLines
* r13356: test utf8 usernamesSimo Sorce2007-10-101-0/+24
| | | | (This used to be commit 7ddec83a602372765711bff7207657b73922aaea)
* r12998: A big update to samldb.cAndrew Bartlett2007-10-101-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)
* r12892: Add a 'Migrate from Windows' page to our installation section in SWAT.Andrew Bartlett2007-10-101-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)
* r12324: use command line credentials if available in ldap.jsAndrew Tridgell2007-10-101-0/+7
| | | | (This used to be commit f4f99f9af33699ac8fe43b09fa7542aab72a031a)
* r11587: Trivial testing code giving an idea of how could usingRafal Szczesniak2007-10-101-1/+14
| | | | | | | subcontexts look like. rafal (This used to be commit 5a338b04f37f6160f4aaf7d9758aa2d817516eb1)
* r11467: yay! mmc now accepts our schema. The trick was to get all the OIDAndrew Tridgell2007-10-101-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)
* r11463: more progress on the schema generator. mmc now accepts all partsAndrew Tridgell2007-10-101-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)
* r11436: this is work in progress for generating the schema we need for our ADSAndrew Tridgell2007-10-101-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)
* r11309: A trivial test script for ejs libnet interface.Rafal Szczesniak2007-10-101-0/+4
| | | | | rafal (This used to be commit deb561ea4a00730787d129ae5eda38ceefe129f6)
* r10990: the beginnings of a program designed to work out the minimal schemaAndrew Tridgell2007-10-101-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)
* r10919: fixed the ldb test for the new operational moduleAndrew Tridgell2007-10-101-3/+4
| | | | (This used to be commit 915878d7cebacf499c0c9d264a2dcbc82b521dfd)
* r10577: Fix error in ReadFile()Jelmer Vernooij2007-10-101-3/+3
| | | | (This used to be commit 04b8c473d7d55d4d802631074843e43fe7d9cfea)
* r10576: Add testprog for named pipes. Also add GNUmakefile's for ↵Jelmer Vernooij2007-10-105-0/+98
| | | | | | | cross-compilation using mingw32 (This used to be commit 30ba8fdc3dc8dba543686591a27b819b8f9444db)
* r9919: Remove debug statement from samba3samJelmer Vernooij2007-10-101-1/+0
| | | | | Add SOC STATUS doc (This used to be commit 152c1a37b536c65e0b816319304d1fb46c2dc5a8)
* r9915: Some more mappings. Fix weird sAMAccountName values.Jelmer Vernooij2007-10-101-2/+3
| | | | (This used to be commit 8ff1358f401e0086b941f4ff73af5d4c38a1f8bf)
* r9912: Fix another bug in ldb_map.Jelmer Vernooij2007-10-101-0/+2
| | | | (This used to be commit 4c3b37d660e798764e35a31221f4939ab6f36948)
* r9908: Generate posixUser and posixGroup as wellJelmer Vernooij2007-10-101-2/+1
| | | | (This used to be commit ebed25b47d3d8bd350b51b462d605d713f17602d)
* r9899: Be more conservative about what is sent to the remote server in ldb_map.Jelmer Vernooij2007-10-101-15/+26
| | | | (This used to be commit 76e943d4416e38ce4cce27d5403bc3e133d0025b)
* r9857: Fix rename/delete issuesJelmer Vernooij2007-10-101-8/+5
| | | | (This used to be commit d6dce7ef3eb21a5e90244cf2ce7403ab43b12d63)
* r9855: Finish ldb_map testsuiteJelmer Vernooij2007-10-101-0/+60
| | | | | | Update PLAN Some more small other fixes (This used to be commit 31cd5d55a9754b4e670be5d3687dfaaab8adaefc)
* r9849: Extend testsuite a bit more.Jelmer Vernooij2007-10-101-9/+35
| | | | (This used to be commit 5cbe1e6b70b03be441a36b36fb969339df0dfd45)
* r9842: More error checks in the ldb_map modules, extend testsuiteJelmer Vernooij2007-10-101-5/+25
| | | | (This used to be commit b7992de4b7d42a55e00509c887a269a07c19627d)
* r9813: Conver testsuite for samba3sam module to EJSJelmer Vernooij2007-10-101-0/+78
| | | | (This used to be commit 77f24ed131bf57c30bb500e1d8d387bd4b403ddc)
* r9599: fix formatting of echo outputAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit 47c11fd886d7c57cafe2e150d745d3ce17e3bb72)
* r9491: fixed up a few scripts that need to be updated for the new GetOptions ↵Andrew Tridgell2007-10-105-30/+18
| | | | | | | | syntax. Mimir, its a good idea to use grep -r to find places that need fixing when you change the syntax of a call :-) (This used to be commit 1ead49f8e823a69dbd9cd3df3f5be04dc17e0d1f)
* r9383: remove unused fileAndrew Tridgell2007-10-101-72/+0
| | | | (This used to be commit dae90b6959508a19d35f711caf4c3f4bb9b3796a)
* r9345: used the data blob functions in the echo.js test codeAndrew Tridgell2007-10-101-4/+6
| | | | (This used to be commit f217f08b679ec3ed4784ed0fe74e9cbb935cdce9)
* r9342: removed extra libinclude of base.jsAndrew Tridgell2007-10-101-2/+0
| | | | (This used to be commit bda6943c311e005cff0b46722355e9aa693db67a)
* r9341: updated the winreg test program to take advantage of the new EnumValueAndrew Tridgell2007-10-101-2/+11
| | | | | | | | functionality. It now completely enumerates a winreg tree. This would make a good basis for a js version of regshell if someone felt like taking that on. (This used to be commit 75d0cf78ec8c01dee2a6475d4c64417349d9ec3a)
* r9218: make the winreg library code handle arbitrary paths more efficientlyAndrew Tridgell2007-10-101-13/+20
| | | | | and more conveniently (caller doesn't need to know the hive names now) (This used to be commit dadd7e22fb439f7b18c429a95c75902e4741ba8d)
* r9160: use the winreg lib in the test programAndrew Tridgell2007-10-101-53/+14
| | | | (This used to be commit 33bb76ed4e1a796cf68198c0bb480a7bbd31b6cd)
* r9153: added a sample program for enumerating winreg via jsAndrew Tridgell2007-10-101-0/+97
| | | | (This used to be commit 10043db676f9db8d1933b6a5f9ae050cefc538ac)
* r8821: continue the trend to move to a more OO style of interface for our jsAndrew Tridgell2007-10-102-65/+58
| | | | | | | | | | | | | | | | | calls. This changes the generated RPC and IRPC calls to use the 'this' object pointer instead of requiring the passing of the object on each call. So typical usage is now: var echo = echo_init(); var io = irpcObj(); status = echo.connect("ncacn_np:server"); assert(status.is_ok); io.input.in_data = 7; status = echo.AddOne(io); assert(status.is_ok); (This used to be commit f7b49ecd0868c1f0fec75b371f132bbf357ad8c6)
* r8745: make ldap.js cleanup after itselfAndrew Tridgell2007-10-101-1/+3
| | | | (This used to be commit 3a1c6a176ed37b4d696dab52b2f2e8ce5b681ff5)
* r8743: automatically find the basedn in ldap.jsAndrew Tridgell2007-10-101-4/+13
| | | | (This used to be commit bdca9537a260369a53cbb286642db86bc3ea0828)
* r8740: Extend the rdn_name module to handle adding the rdn as an attribute. ie:Andrew Bartlett2007-10-102-0/+59
| | | | | | | | | | | | | | | | | | | | | dn: cn=foo,ou=bar objectClass: person implies dn: cn=foo,ou=bar objectClass: person cn: foo (as well as a pile more default attributes) We also correct the case in the attirbute to match that in the DN (win2k3 behaviour) and I have a testsuite (in ejs) to prove it. This module also found a bug in our provision.ldif, so and reduces code complexity in the samdb module. Andrew Bartlett (This used to be commit 0cc58f5c3cce12341ad0f7a90cdd85a3fab786b3)
* r8738: Test (using ejs!) the basic operation of the ldb modules.Andrew Bartlett2007-10-101-4/+60
| | | | | | | ejs seems to test this stuff very nicely! Andrew Bartlett (This used to be commit 325f6d24dfc285587bde9fea6eeaf136c2731eff)
* r8652: added a test for the boolean bug just fixedAndrew Tridgell2007-10-101-0/+17
| | | | (This used to be commit 19ae68f59ad9b81005eb68b3773f24234c0f891d)
* r8639: moved loadparm calls into an ejs objectAndrew Tridgell2007-10-101-3/+4
| | | | (This used to be commit 2dc493eea6f9d87c40ad0dc755f528ce0b33ca47)
* r8638: continue the trend of maknig our C functions true ejs objects by ↵Andrew Tridgell2007-10-101-0/+2
| | | | | | | | | | | | making the string functions into an object. To keep existing code working I have added: string_init(global); into base.js. That brings the functions into the global scope for our existing scripts (This used to be commit a978484738168b82441c4dc4f5f803d349769a4b)
* r8636: fixed the ejs ldb test to work with the new ldb.search() syntax, andAndrew Tridgell2007-10-101-9/+7
| | | | | add it to our test suite so it will be maintained (This used to be commit 42ae50db8108ddc7c33f832d8752f809c99de157)
* r8488: after discussions with simo, moved to a full OO interface, so you ↵Andrew Tridgell2007-10-101-13/+57
| | | | | | | | | don't need to keep a 'db' variable around. The ldb object knows what it is connected to. Added a simple ldb testsuite in testprogs/ldb.js (This used to be commit cf35818648b5b649d0cd25f115a04b7b5b5311aa)
* r8486: switched to a separate connection operation in ldb interfaceAndrew Tridgell2007-10-101-2/+3
| | | | | (a suggestion from simo) (This used to be commit 98c9c4ecb87e1b140002390067892806464849da)
* r8483: switched our generated ejs rpc code over to the new OO interface. ThisAndrew Tridgell2007-10-102-20/+23
| | | | | | | means we don't pollute the name space, and also makes for faster startup times as we only create variables for the pipes that we use, not all pipes (This used to be commit 57d7a585e8162d21c7152952aa0cc7471968784f)
* r8481: switched ldb ejs called over to an OO interface, so you do:Andrew Tridgell2007-10-101-3/+4
| | | | | | | | | | | | | | | var ldb = ldb_init(); res = ldb.search(dbfile, "(objectClass=user)"); you can also do: ldbSearch = ldb.search; res = ldbSearch(dbfile, "(objectClass=user)"); if you want the old interface (ie. you can use this to import functions into the global or local namespace). (This used to be commit 3093057d9735cbb62f57e7159264d5a28b85320f)
* r8413: mark exprbug() as fixed, and add a new bugAndrew Tridgell2007-10-101-1/+12
| | | | (This used to be commit c470c3ceac668635c83aa80730321ae7c41ad626)
* r8355: - added a vsprintf() functionAndrew Tridgell2007-10-102-1/+40
| | | | | | - removed the --outputdir option from provision, as its not used any more (as ejs knows the real paths) (This used to be commit abbf9c703c17c2edc2d978dade3619a96c38d0d9)
* r8346: added a sprintf test suite for ejsAndrew Tridgell2007-10-101-0/+22
| | | | (This used to be commit 14af014410a9971d447aafe00640407698f63d7f)
* r8317: convert the example scripts over to the new GetOptions() callAndrew Tridgell2007-10-104-11/+54
| | | | (This used to be commit 5f079d74630cf6431ec8af7240f60054cf8b9ab7)
* r8298: - started building a library of js routines in scripting/libjs/Andrew Tridgell2007-10-102-138/+27
| | | | | | | - switched the existing test programs over to using the library - added install of js lib (This used to be commit 2a444dedbe44347268affc6458196f93ca7d372b)