summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r21351: Change ldb ejs bindings return codes.Simo Sorce3-14/+28
We were returning just true/false and discarding error number and string. This checking probably breaks swat, will fix it in next round as swat is what made me look into this as I had no way to get back error messages to show to the users. Simo. (This used to be commit 35886b4ae68be475b0fc8b2689ca04d766661261)
2007-10-10r21135: Instead of having hooks to update keytabs as an explicit thing, updateAndrew Bartlett1-12/+0
them as a hook on ldb modify, via a module. This should allow the secrets.ldb to be edited by the admin, and to have things update in the on-disk keytab just as an in-memory keytab would. This isn't really a dsdb plugin, but I don't have any other good ideas about where to put it. Andrew Bartlett (This used to be commit 6ce557a1aff4754d2622be8f1c6695d9ee788d54)
2007-10-10r20910: fix crash bugStefan Metzmacher1-1/+1
metze (This used to be commit e668d3bd6955f0bd4e37560925c4107fd870c02f)
2007-10-10r20908: - fix uninitialized usage of 'ctx'Stefan Metzmacher1-16/+14
- remove unused mem_ctx variable - copy the userman_domain string as child of obj metze (This used to be commit 575938753bb2f3b8593f240234cff71995a28df8)
2007-10-10r20885: - I forgot the page size passed to enumeration function is actuallyRafal Szczesniak2-4/+10
size of a buffer for result returned, not number of entries - pass libnet function returned status to UserListCtx creation to properly mark the last chunk of the list rafal (This used to be commit 05d307546f93794a0a981c3aa942669b9b18afd1)
2007-10-10r20882: Formatting.Rafal Szczesniak1-0/+1
rafal (This used to be commit fd0650283b750aec7952b025db54ab46020a547d)
2007-10-10r20881: Sorting out NetUsrCtx methods. Still a couple of things left.Rafal Szczesniak1-42/+133
rafal (This used to be commit eebd00ba2bfdfe3bbbcc0a50b91e2e2b03371df6)
2007-10-10r20813: fix the build with autodependenciesStefan Metzmacher1-1/+1
metze (This used to be commit ad110d22fba621e7d15b457fb1ff5aa29b3fd3b0)
2007-10-10r20792: fix the build, sorry...Stefan Metzmacher4-7/+6
metze (This used to be commit e2cdd882b5ab12396244a13e0e58d8ee52f234ab)
2007-10-10r20791: the ejsnet stuff can be a normal smbcalls module...Stefan Metzmacher4-11/+6
mimir: when you want to register more functions please do that in the smb_setup_ejs_net() function metze (This used to be commit 5828632931376c3982bf0b6d110d217a8e05d60e)
2007-10-10r20786: Fix the build.Jelmer Vernooij1-0/+1
(This used to be commit 42bb335bd50a5070ee59c9d9748db8a9e9d6a9b0)
2007-10-10r20783: Ejsnet files are now moved into a separate directory. I need to commitRafal Szczesniak4-449/+15
this as the change is getting bigger and bigger. Jelmer, Metze, I don't know enough of our build system so please check if .mk files are ok. rafal (This used to be commit 77ede0656c0b17a84ee8550776ab158007f0e71f)
2007-10-10r20782: Place ejsnet files in a separate directory.Rafal Szczesniak3-0/+651
rafal (This used to be commit 10968c3f4b0bb63a9902adcbd44d30ad7bfd4afe)
2007-10-10r20646: first preparations for cluster enablement. This changes "Andrew Tridgell1-4/+5
uint32_t server_id to struct server_id server_id; which allows a server ID to have an node number. The node number will be zero in non-clustered case. This is the most basic hook needed for clustering, and ctdb. (This used to be commit 2365abaa991d57d68c6ebe9be608e01c907102eb)
2007-10-10r20444: WEB Application framework / SWAT.Derrell Lipman1-1/+1
We're now at the stage where the web application framework should build and install automatically. Derrell (This used to be commit 0201baef46c1701007e0a4cdd95edee287939318)
2007-10-10r20364: SWAT updates, part 1Derrell Lipman1-0/+18
These next few check-ins will add a working Statistics module to SWAT, and add an API Documentation module as well. Next step will be to modify the LDB browser to work with this new module and fsm structure. Derrell (This used to be commit 29db71587f1332a9c44d5993a2be389f3a392ce4)
2007-10-10r20358: - fix ejs generated code for ipv4addressStefan Metzmacher2-3/+3
- (not Parse::Pidl::Typelist::scalar_is_reference($e->{TYPE})) is much more generic than ($e->{TYPE} ne "string") and handles ipv4address and other special types... metze (This used to be commit 02d2ce65e614a0c99ef3246bc738eb0f8d91b24a)
2007-10-10r20353: Restructure the DRSUAPI DsGetDomainControllerInfo test, because asAndrew Bartlett2-0/+24
usual things are more complex than they appear. Also remove the incorrect server-side implementation, which blindly assumed some sense of consistancy across the API switch levels. Andrew Bartlett (This used to be commit 79941adbff843f5027dacd31b972deca4a1557ec)
2007-10-10r20184: change ldb_attrib_handler into ldb_schema_attribute, which has a pointerStefan Metzmacher1-6/+6
to a ldb_schema_syntax struct. the default attribute handler is now registered dynamicly as "*" attribute, instead of having its own code path. ldb_schema_attribute's can be added to the ldb_schema given a ldb_schema_syntax struct or the syntax name we may also need to introduce a ldb_schema_matching_rule, and add a pointer to a default ldb_schema_matching_rule in the ldb_schema_syntax. metze (This used to be commit b97b8f5dcbce006f005e53ca79df3330e62f117b)
2007-10-10r20175: use libnet context instead mem_ctx as the latter getsRafal Szczesniak1-4/+3
freed just before the function returns. rafal (This used to be commit ca8259fd27d1e92bcb650441461afdfd613e93bf)
2007-10-10r20163: Return null object if no user is found.Rafal Szczesniak1-1/+5
rafal (This used to be commit af539fec4acb3ad78b8f0fa4f7c2f4e6cebea0b7)
2007-10-10r20143: a bit of experiments before doing serious changes in ejsnet.Rafal Szczesniak1-1/+41
rafal (This used to be commit 3cdd43ebcedfa7d1d59bd33b3bfed4e80560ec82)
2007-10-10r19972: put a placeholder of a new js function and use error stringsRafal Szczesniak1-6/+59
returned by each libnet call. rafal (This used to be commit bc88640bb51db381d91b797693bc04f7b2653eb6)
2007-10-10r19832: better prototypes for the linearization functions:Simo Sorce1-2/+2
- ldb_dn_get_linearized returns a const string - ldb_dn_alloc_linearized allocs astring with the linearized dn (This used to be commit 3929c086d5d0b3f08b1c4f2f3f9602c3f4a9a4bd)
2007-10-10r19831: Big ldb_dn optimization and interfaces enhancement patchSimo Sorce1-7/+7
This patch changes a lot of the code in ldb_dn.c, and also removes and add a number of manipulation functions around. The aim is to avoid validating a dn if not necessary as the validation code is necessarily slow. This is mainly to speed up internal operations where input is not user generated and so we can assume the DNs need no validation. The code is designed to keep the data as a string if possible. The code is not yet 100% perfect, but pass all the tests so far. A memleak is certainly present, I'll work on that next. Simo. (This used to be commit a580c871d3784602a9cce32d33419e63c8236e63)
2007-10-10r19732: The 'res' from ldb_search is only valid if the call returns LDB_SUCCESS.Andrew Bartlett1-1/+1
This seems to show up (as an abort() from talloc) particularly under ldb_ildap. Andrew Bartlett (This used to be commit 9890af534d845d471d2a98268c408a907b29e016)
2007-10-10r19598: Ahead of a merge to current lorikeet-heimdal:Andrew Bartlett2-1/+2
Break up auth/auth.h not to include the world. Add credentials_krb5.h with the kerberos dependent prototypes. Andrew Bartlett (This used to be commit 2b569c42e0fbb596ea82484d0e1cb22e193037b9)
2007-10-10r19449: ldbbrowse: installation hopefully works now. "Developer" installationsDerrell Lipman1-5/+7
('configure.developer' or 'configure --enable-developer') may still have problems as I'm not sure I got all of the paths right for that. With the changes Tridge has made to the Main Menu in swat, given a non-developer installation, you should be able to get to ldbbrowse via: JSON/qooxdoo -> ldb browser Derrell (This used to be commit 2406af10791cd8545c598c8591a48de5515c7dc5)
2007-10-10r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grainedJelmer Vernooij1-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. (This used to be commit 0eb6097305776325c75081356309115f445a7218)
2007-10-10r19297: fixed a leak in the ejs ldb interfaceAndrew Tridgell1-2/+2
(This used to be commit 6978225ffcc12ffdda0d3404e855219808c0597c)
2007-10-10r19165: handle errors better for jsonrpc. generate an error object whenever ↵Derrell Lipman1-0/+1
possible (This used to be commit aa8e4227a11d997f7c4c5af2b7a3c7c371b8c1cd)
2007-10-10r19055: JSON-RPC is working! It passes the small qooxdoo JSON-RPC test suiteDerrell Lipman2-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 (This used to be commit 5bfebbda7a5d28d4deb31c54a8feb24c4416cbf6)
2007-10-10r19051: JSON-RPC server work-in-progress. It's almost working.Derrell Lipman2-1/+34
(This used to be commit 6e9cb2ed1cf87aed322fd7821237d088c2fef340)
2007-10-10r19048: ensure our memory gets cleaned up even upon exceptionDerrell Lipman1-1/+1
(This used to be commit bcf5e98a8c83791db93a9024b3433f9d5ee3cc7e)
2007-10-10r19020: move jsonrpc_include to a more appropriate location in the file, and ↵Derrell Lipman1-13/+17
call the setup function for parsing literals. (This used to be commit bb07f606dedde5c63f190229b8dbb85f3d1342f7)
2007-10-10r19019: Add a parser for javascript literals. This is implemented for ↵Derrell Lipman2-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(). (This used to be commit 82fdcd9339a8ffb1016b96c06f7d6580aa759174)
2007-10-10r18880: JSON-RPC work in progressDerrell Lipman2-0/+166
(This used to be commit 34bffbaebf50c2a75c91285d5ec82e8f377981cc)
2007-10-10r18850: add strspn() function i ejsDerrell Lipman1-0/+17
(This used to be commit e8f892bedc65042565442ac802df6eda96388f14)
2007-10-10r18213: don't list LIBREPLACE depdendecies explicit andStefan Metzmacher1-8/+1
always at it as first private dependencies metze (This used to be commit 135d096776b53ae09ffc2b4f767dfbd18139570f)
2007-10-10r18135: almost there ....Andrew Tridgell1-1/+8
(This used to be commit cefcccb51948fb17fbc803325e8ab13103164f93)
2007-10-10r18121: Simplify m4 code, hopefully fix Samba4 build problems.Jelmer Vernooij1-1/+1
(This used to be commit 1adf65b4d7c5d2d4f65d4b28575bdf2368a42139)
2007-10-10r18117: first steps in making samba4 use libreplaceAndrew Tridgell1-1/+1
(This used to be commit c079cedb084d621c5a0aac59310b237ba375df20)
2007-10-10r17930: Merge noinclude branch:Jelmer Vernooij1-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) (This used to be commit f7afa1cb77f3cfa7020b57de12e6003db7cfcc42)
2007-10-10r17888: use talloc_*_ptrtype() macros as wrappers arround the talloc_*_size()Stefan Metzmacher1-8/+4
functions to get rid of c++ warnings metze (This used to be commit 7579503bb886e9c4cc08756013f5311ce550c9fd)
2007-10-10r17791: get rid of another compiler warningStefan Metzmacher1-2/+3
metze (This used to be commit ba866665f5baffc1dc703d60114b9f1856c4b886)
2007-10-10r17648: update minschema.jsSimo Sorce1-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 (This used to be commit 8dd1c1c05bc592d76d6e34b303048faf05c0fa6e)
2007-10-10r17586: merge lib/netif into lib/socket and use -lnsl -lsocket on theStefan Metzmacher2-2/+2
configure check for the interfaces. should fix the build on some old sun boxes metze (This used to be commit f20e251bfd9f1eb7ce5c00739631b1625a2aa467)
2007-10-10r17341: pass a messaging context to auth_context_create()Stefan Metzmacher1-1/+5
and gensec_server_start(). calling them with NULL for event context or messaging context is no longer allowed! metze (This used to be commit 679ac74e71b111344f1097ab389c0b83a9247710)
2007-10-10r17339: pass the event context and messaging context together to theStefan Metzmacher2-2/+16
smb ejs functions metze (This used to be commit 0397911b414518d54f6dba2a8c81a5872b90a034)
2007-10-10r16168: Make the example match the actual function.Andrew Bartlett1-1/+1
This was very confusing until I really looked at it. Andrew Bartlett (This used to be commit 0053d06d9f85f2304191ab8f68eee7f48b2f2aa8)