summaryrefslogtreecommitdiff
path: root/source/scripting
Commit message (Collapse)AuthorAgeFilesLines
* r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grainedJelmer Vernooij2007-10-101-1/+1
| | | | | | | | | | | | | | | | | | output in the testsuite rather than just True or False for a set of tests. The aim is to use this for: * known failure lists (run all tests and detect tests that started working or started failing). This would allow us to get rid of the RPC-SAMBA3-* tests * nicer torture output * simplification of the testsuite system * compatibility with other unit testing systems * easier usage of smbtorture (being able to run one test and automatically set up the environment for that) This is still a work-in-progress; expect more updates over the next couple of days.
* r19334: Commit commented provisioning code to activate the schemaSimo Sorce2007-10-101-0/+32
|
* r19318: Because we don't test the vampire code in SWAT very regularly, it ↵Andrew Bartlett2007-10-101-2/+4
| | | | | | | | bit-rotted. Fix up interfaces and interaction between the two.. Andrew Bartlett
* r19297: fixed a leak in the ejs ldb interfaceAndrew Tridgell2007-10-101-2/+2
|
* r19258: Don't delete the contents of the partitions twice, and in particularAndrew Bartlett2007-10-101-17/+6
| | | | | | | | | | | | don't delete their contents until we have specified the new partition locations. However, preserve the important part of tridge's change, that is to ensure that no database index is present when the mass delete occours. In my testing, it is best to leave the index until the provision is compleated. Andrew Bartlett
* r19252: - fixed 'erase' argument to setup_ldb()Andrew Tridgell2007-10-101-2/+21
| | | | | | | - when wiping a ldb, wipe within each naming context first. By not wiping the naming contexts we didn't wipe the partitions, which caused a massive slowdown in re-provisioning due to re-indexing of the schema.
* r19216: Merge from SAMBA_4_0_RELEASE:Andrew Bartlett2007-10-101-0/+1
| | | | | | | Move default for subobj.LDAPMODULES into scripting/libjs/provision.js so that SWAT can provision again. Andrew Bartlett
* r19165: handle errors better for jsonrpc. generate an error object whenever ↵Derrell Lipman2007-10-101-0/+1
| | | | possible
* r19055: JSON-RPC is working! It passes the small qooxdoo JSON-RPC test suiteDerrell Lipman2007-10-102-124/+233
| | | | | | | | | | | | | | | | perfectly. This check in covers the remaining fixes and enhancements to complete the server. In a subsequent check-in, I need to learn about the new qooxdoo packaging mechanism. Although it'd be nice to have the whole source tree, that's huge and needn't be in samba svn. It's now supposed to be very easy to package qooxdoo, so I'll figure out how that's done and then check in the relevant small number of files. Steps after that involve generating the stubs to allow various ejs functions to be called via JSON-RPC. Derrell
* r19051: JSON-RPC server work-in-progress. It's almost working.Derrell Lipman2007-10-102-1/+34
|
* r19048: ensure our memory gets cleaned up even upon exceptionDerrell Lipman2007-10-101-1/+1
|
* r19020: move jsonrpc_include to a more appropriate location in the file, and ↵Derrell Lipman2007-10-101-13/+17
| | | | call the setup function for parsing literals.
* r19019: Add a parser for javascript literals. This is implemented for ↵Derrell Lipman2007-10-102-1/+672
| | | | | | | | | | | parsing JSON strings, but is generally useful for creating ejs variables from object or array literals, which aren't supported in the old version of ejs that we're using. This parser is implemented in C, but is callable from an ejs script via literal_to_var().
* r18977: Seperate these asserts, so we know which fired.Andrew Bartlett2007-10-101-1/+2
| | | | Andrew Bartlett
* r18880: JSON-RPC work in progressDerrell Lipman2007-10-103-1/+167
|
* r18850: add strspn() function i ejsDerrell Lipman2007-10-101-0/+17
|
* r18567: fixed the winreg js code for the new names of the fields in winreg.idlAndrew Tridgell2007-10-101-6/+6
| | | | | When changing a field name in idl, please remember to check for use of those functions in any js code as well.
* r18334: AIX 5.1 doesn't have any of 'users', 'guest', 'other' or 'unknown'Andrew Tridgell2007-10-101-1/+1
| | | | it does have 'usr'
* r18248: Bail out with a error message if this search fails for some reason.Andrew Bartlett2007-10-101-0/+4
| | | | Andrew Bartlett
* r18213: don't list LIBREPLACE depdendecies explicit andStefan Metzmacher2007-10-101-8/+1
| | | | | | always at it as first private dependencies metze
* r18135: almost there ....Andrew Tridgell2007-10-101-1/+8
|
* r18121: Simplify m4 code, hopefully fix Samba4 build problems.Jelmer Vernooij2007-10-101-1/+1
|
* r18117: first steps in making samba4 use libreplaceAndrew Tridgell2007-10-101-1/+1
|
* r18072: Really delete things in the base partition, after we changed where theAndrew Bartlett2007-10-101-4/+3
| | | | | | default search scope points to. Andrew Bartlett
* r17982: One final hack...Andrew Bartlett2007-10-101-0/+3
| | | | | | When against a real, schema-checking LDAP backend, we need extensibleObject on the baseDN entry (as entryUUID isn't run for creating this basic ldif) output.
* r17930: Merge noinclude branch:Jelmer Vernooij2007-10-101-1/+1
| | | | | | * Move dlinklist.h, smb.h to subsystem-specific directories * Clean up ads.h and move what is left of it to dsdb/ (only place where it's used)
* r17888: use talloc_*_ptrtype() macros as wrappers arround the talloc_*_size()Stefan Metzmacher2007-10-101-8/+4
| | | | | | functions to get rid of c++ warnings metze
* r17876: Require one less patch for the LDAP backend to work.Andrew Bartlett2007-10-101-4/+21
| | | | | | | | This lets the modules or backend generate the host and domain GUID, rather than the randguid() function. These can still be specified from the command line. Andrew Bartlett
* r17791: get rid of another compiler warningStefan Metzmacher2007-10-101-2/+3
| | | | metze
* r17704: Add comments suggesting how to get the LDAP backend working.Andrew Bartlett2007-10-101-3/+23
| | | | | | | | Shutdown and reload the LDB, so the entryUUID module knows to read the schema (will be changed once we have a central schema store and notifications). Andrew Bartlett
* r17648: update minschema.jsSimo Sorce2007-10-101-2/+14
| | | | | | | 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
* r17586: merge lib/netif into lib/socket and use -lnsl -lsocket on theStefan Metzmacher2007-10-102-2/+2
| | | | | | | | configure check for the interfaces. should fix the build on some old sun boxes metze
* r17548: It is a good idea to commit the fix (from mkhl) before the test thatAndrew Bartlett2007-10-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shows the need for... Martin Kuhl writes: The ejs function `substitute_var' returns `undefined' when the first argument ends in a pattern that should be substituted. For that reason, the second assertion fails in the following test-case: ,---- | libinclude("base.js"); | | var obj = new Object(); | obj.FOO = "foo"; | obj.BAR = "bar"; | var str1 = "${FOO}:${BAR}"; | var str2 = "${FOO}:${BAR} "; // note the space after the brace | var sub1 = substitute_var(str1, obj); | var sub2 = substitute_var(str2, obj); | | assert(str1 + " " == str2); | assert(sub1 + " " == sub2); `---- The problem is that the function `split' returns a single-element array in both cases: a) the string to split doesn't contain the split pattern b) the string ends with the split pattern To work around this, the following patch tests this condition and returns `undefined' only if the string to split (`list[i]') really didn't contain a closing brace.
* r17534: Try another group for 'wheel' on True64.Andrew Bartlett2007-10-101-1/+1
|
* r17499: Open the main database only the minimum times during a provision.Andrew Bartlett2007-10-101-84/+62
| | | | | | | | | | | | | | This causes things to operate as just one transaction (locally), and to make a minimum of TCP connections when connecting to a remote LDAP server. Taking advantage of this, create another file to handle loading the Samba4 specific schema extensions. Also comment out 'middleName' and reassign the OID to one in the Samba4 range, as it is 'stolen' from a netscape range that is used in OpenLDAP and interenet standards for 'ref'. Andrew Bartlett
* r17341: pass a messaging context to auth_context_create()Stefan Metzmacher2007-10-101-1/+5
| | | | | | | | | and gensec_server_start(). calling them with NULL for event context or messaging context is no longer allowed! metze
* r17339: pass the event context and messaging context together to theStefan Metzmacher2007-10-102-2/+16
| | | | | | smb ejs functions metze
* r17330: Enable the partitions module.Andrew Bartlett2007-10-101-1/+4
| | | | | | | | | | | This module redirects various samdb requests into different modules, depending on the prefix. It also makes moving to an LDAP backend easier, as it is just a different partition backend. This adds yet another stage to the provision process, as we must setup the partitions before we setup the magic attributes. Andrew Bartlett
* r17206: Add a modular API for share configuration.Simo Sorce2007-10-101-0/+7
| | | | Commit the classic backwards compatible module which is the default one
* r16265: Fix 'newuser' command.Andrew Bartlett2007-10-101-1/+1
| | | | Andrew Bartlett
* r16264: Add, but do not yet enable, the partitions module.Andrew Bartlett2007-10-101-19/+150
| | | | | | | | | | | | | | | | | | | | | | | | | This required changes to the rootDSE module, to allow registration of partitions. In doing so I renamed the 'register' operation to 'register_control' and 'register_partition', which changed a few more modules. Due to the behaviour of certain LDAP servers, we create the baseDN entry in two parts: Firstly, we allow the admin to export a simple LDIF file to add to their server. Then we perform a modify to add the remaining attributes. To delete all users in partitions, we must now search and delete all objects in the partition, rather than a simple search from the root. Against LDAP, this might not delete all objects, so we allow this to fail. In testing, we found that the 'Domain Controllers' container was misnamed, and should be 'CN=', rather than 'OU='. To avoid the Templates being found in default searches, they have been moved to CN=Templates from CN=Templates,${BASEDN}. Andrew Bartlett
* r16168: Make the example match the actual function.Andrew Bartlett2007-10-101-1/+1
| | | | | | This was very confusing until I really looked at it. Andrew Bartlett
* r16063: Make is clearer when we can't write to the smb.confAndrew Bartlett2007-10-101-5/+8
| | | | | | | Find more possible posix group names for the 'domain users' group, as the existing options don't exist in OSX. Andrew Bartlett
* r15805: Fix incompatible type assignment. Caught by the IBM checker.Jelmer Vernooij2007-10-101-1/+1
|
* r15731: module init functions should return NTSTATUS, not voidAndrew Tridgell2007-10-1010-10/+20
|
* r15585: Revive pidl's SWIG file generator. It now generates simpleJelmer Vernooij2007-10-101-1/+1
| | | | | object oriented wrappers for the interfaces (still need to fix the actual function calls)
* r15581: Remove unused includeJelmer Vernooij2007-10-101-1/+0
|
* r15391: Wrap up the nbt_name_query() function as a bit of an experiment. ItTim Potter2007-10-101-1/+2
| | | | | | | seemed to work quite well and this technique might be good for generating an interface to use for automated testing. Tested by doing a nbt lookup against smbd.
* r15389: Add some better torture tests for LdbMessage.Tim Potter2007-10-101-8/+73
| | | | | | | Fix up behaviour of Ldb.__setitem__() function. It should overwrite the element data. Add wrapper for ldb_msg_sanity_check().
* r15348: Start adding a dict interface and tests to LdbMessage class.Tim Potter2007-10-101-8/+12
|