1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

893 Commits

Author SHA1 Message Date
Andrew Tridgell
620301858a r8638: continue the trend of maknig our C functions true ejs objects by 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 a978484738)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
524044a64a r8636: fixed the ejs ldb test to work with the new ldb.search() syntax, and
add it to our test suite so it will be maintained
(This used to be commit 42ae50db81)
2007-10-10 13:29:47 -05:00
Andrew Tridgell
94d99612b9 r8488: after discussions with simo, moved to a full OO interface, so you 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 cf35818648)
2007-10-10 13:23:08 -05:00
Andrew Tridgell
4f62205cad r8486: switched to a separate connection operation in ldb interface
(a suggestion from simo)
(This used to be commit 98c9c4ecb8)
2007-10-10 13:23:08 -05:00
Andrew Tridgell
a0bc4da1a3 r8483: switched our generated ejs rpc code over to the new OO interface. This
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 57d7a585e8)
2007-10-10 13:23:08 -05:00
Andrew Tridgell
63535f566e r8481: switched ldb ejs called over to an OO interface, so you do:
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 3093057d97)
2007-10-10 13:23:07 -05:00
Andrew Tridgell
6fafd2f055 r8413: mark exprbug() as fixed, and add a new bug
(This used to be commit c470c3ceac)
2007-10-10 13:22:59 -05:00
Andrew Tridgell
26a55c330a r8355: - added a vsprintf() function
- removed the --outputdir option from provision, as its not used any
  more (as ejs knows the real paths)
(This used to be commit abbf9c703c)
2007-10-10 13:20:10 -05:00
Andrew Tridgell
9370fca5dd r8346: added a sprintf test suite for ejs
(This used to be commit 14af014410)
2007-10-10 13:20:09 -05:00
Andrew Tridgell
1864b27857 r8317: convert the example scripts over to the new GetOptions() call
(This used to be commit 5f079d7463)
2007-10-10 13:20:06 -05:00
Andrew Tridgell
f9ff72cbda r8298: - started building a library of js routines in scripting/libjs/
- switched the existing test programs over to using the library

- added install of js lib
(This used to be commit 2a444dedbe)
2007-10-10 13:19:33 -05:00
Andrew Tridgell
b7c6b20c37 r8287: yay! finally irpc calls from ejs are all working.
This is a demo script that shows the nbt server statistics. For example:

nbt_server statistics:
        total_received: 185
        total_sent:     59
        query_count:    13
        release_count:  21
        register_count: 7
(This used to be commit cd1ea857ce)
2007-10-10 13:19:32 -05:00
Andrew Tridgell
001dc40ecd r8271: make the ejs test scripts directly executable scripts using:
#!/usr/bin/env smbscript

I'll be interested to see how portable this is in the build farm.
(This used to be commit 757c22aab4)
2007-10-10 13:19:28 -05:00
Andrew Tridgell
2a08b29013 r8269: added automatic testing of rpc calls from ejs in 'make test'
(This used to be commit c760180119)
2007-10-10 13:19:28 -05:00
Andrew Tridgell
a343050b2b r8257: add a samr rpc test page in the web server. It lists all level3
information from QueryUserInfo for all users in the domain.

If you want to see why I am putting the effort into ejs, then please
read swat/scripting/samr.js, and compare it to other methods of rpc
access for our web management interface. Using ejs like this will make
building a rich interface _much_ easier.
(This used to be commit eb354f6da7)
2007-10-10 13:19:26 -05:00
Andrew Tridgell
002c4f7d18 r8244: need to be careful about local vs global variables in js
(This used to be commit 763296a9b3)
2007-10-10 13:19:24 -05:00
Andrew Tridgell
14b8ce1b01 r8241: - take advantage of pointer comparison
- added testing of samr_EnumDomainGroups()
(This used to be commit dd9465af5b)
2007-10-10 13:19:24 -05:00
Andrew Tridgell
78b3ea6c26 r8239: - added testing of LookupDomain, OpenDomain and EnumDomainUsers
- used SEC_FLAG_MAXIMUM_ALLOWED for access mask. This gets the samr.js
  test working with w2k3 as the server
(This used to be commit a929a90ed7)
2007-10-10 13:19:23 -05:00
Andrew Tridgell
d1298d9c81 r8237: expanded the samr.js test to do a samr_Connect(), samr_EnumDomains() and samr_Close()
(This used to be commit 5be26e7491)
2007-10-10 13:19:23 -05:00
Andrew Tridgell
82251eddee r8234: started on testing samr calls from ejs. So far it only does samr_Connect()
(This used to be commit 2e50a5b780)
2007-10-10 13:19:23 -05:00
Andrew Tridgell
c11204339a r8220: added auto-generation of ENUM constants in ejs wrapper. So we can now use the enum name
instead of a integer in ejs scripts making rpc calls
(This used to be commit a61cdee384)
2007-10-10 13:19:21 -05:00
Andrew Tridgell
d105d5e9e4 r8218: added testing of echo_TestSurrounding() and
echo_TestDoublePointer(). All echo.idl functions are now tested and
working from ejs.
(This used to be commit c065d67769)
2007-10-10 13:19:21 -05:00
Andrew Tridgell
ce14638c04 r8217: added testing of echo_TestSleep() and echo_TestEnum() in echo js code
(This used to be commit 7fa9b8251d)
2007-10-10 13:19:21 -05:00
Andrew Tridgell
1e1a96eea6 r8214: added testing of echo_TestCall2(), which tests the union push code
(This used to be commit 1429b885fb)
2007-10-10 13:19:20 -05:00
Andrew Tridgell
5eea409d4c r8199: - we don't need to pre-declare 'var status;' everywhere
- added testing of echo_TestCall(), which uses strings
(This used to be commit 67aa628413)
2007-10-10 13:19:19 -05:00
Andrew Tridgell
3c2dc30b3e r8197: added testing of echo_SinkData() and echo_SourceData()
(This used to be commit f1d6b328c4)
2007-10-10 13:19:19 -05:00
Andrew Tridgell
0fe84a92fb r8196: - added testing of the EchoData interface in the echo test script
- add asserts on all calls for correct results
(This used to be commit 0b67754c28)
2007-10-10 13:19:18 -05:00
Andrew Tridgell
179927fea5 r8193: fixed the echo.js example code to work with the new syntax for rpc
calls from js. I chose the new syntax to match the C calling syntax,
so if you are familiar with using the Samba4 rpc libraries from C,
then using them from js should be easy
(This used to be commit 757bb7f31c)
2007-10-10 13:19:18 -05:00
Andrew Tridgell
f663c67c4e r8074: demonstrate calling echo_AddOne() from ejs
(This used to be commit 0c534699ef)
2007-10-10 13:19:05 -05:00
Andrew Tridgell
52f481b666 r8070: a (as yet not working) example of how rpc calls might be made from js scripts
(This used to be commit b9e73fa932)
2007-10-10 13:19:05 -05:00
Tim Potter
b124351079 r7261: Pass by reference is done in js via MPR_TYPE_OBJECT. Update argument
parsing and example for resolveName().
(This used to be commit 1a4a549317)
2007-10-10 13:17:33 -05:00
Tim Potter
28732d9208 r7256: Demonstrate use of resolveName() js function.
(This used to be commit b8e1d2f68e)
2007-10-10 13:17:32 -05:00
Jelmer Vernooij
8474f37dc1 r7161: - Add support for "aliases" for pidls scalar types and add a few aliases.
- Define __PIDL__ when preprocessing IDL files.
- Remove a couple of useless defines from rpcecho.idl
rpcecho.idl now works in both pidl and midl
(althought pidl is a bit pedantic and gives two warnings)
(This used to be commit 6731e0a654)
2007-10-10 13:17:21 -05:00
Andrew Tridgell
a8efb670df r7128: added recursion to bugs list
(This used to be commit 645e645a4e)
2007-10-10 13:17:20 -05:00
Andrew Tridgell
509e57995c r7125: demonstrate some bugs in ejs
(This used to be commit 46adb4a065)
2007-10-10 13:17:20 -05:00
Andrew Tridgell
eba9bc5eaa r7076: added demos of using ARGV[]
(This used to be commit 9679f20272)
2007-10-10 13:17:12 -05:00
Andrew Tridgell
9e5bdc3c5d r7073: added some simple example scripts for use with smbscript
(This used to be commit f1d0c00660)
2007-10-10 13:17:12 -05:00
Jelmer Vernooij
c531b7f66c r6611: Add mailslot test program
(This used to be commit fae95f740d)
2007-10-10 13:16:30 -05:00
Andrew Tridgell
14b7313543 r6541: added double pointer test to win32 echo client
(This used to be commit cb4e07744d)
2007-10-10 13:16:24 -05:00
Jelmer Vernooij
c6595e1ead r6306: Add simple WMI client test script
(This used to be commit 690a7d71d8)
2007-10-10 13:11:30 -05:00
Jelmer Vernooij
d600b78c33 r6019: Add IDL and server side code for Test_DoublePointer
(This used to be commit 0559f22bbe)
2007-10-10 13:11:15 -05:00
Jelmer Vernooij
fa9fa3d99e r6018: Add idl and server side for Test_Surrounding
(This used to be commit ed11601aef)
2007-10-10 13:11:14 -05:00
Jelmer Vernooij
1e415ce7ba r6015: Add testprogs/ directory and original rpcecho sources
( from tridges junkcode at http://samba.org/ftp/unpacked/junkcode/rpcecho-win32 )
(This used to be commit e33397f383)
2007-10-10 13:11:14 -05:00