Tim Potter
14a2053c04
r7215: Convert smbscript to use ejsEvalScript() and file_load() instead of
...
ejsEvalFile().
Still need to add advancement of the script past the hash-bang line but
it's home time now!!
2007-10-10 13:17:27 -05:00
Andrew Tridgell
29ab4cc6cb
r7135: make typeof() complient with ECMA 11.4.3
2007-10-10 13:17:21 -05:00
Tim Potter
6911e46c6a
r7083: Add a ejs hook to the resolve_name() function.
...
We need to figure out what the best way to return NTSTATUS codes. In the
Python wrappers I threw an exception which could be caught by some code,
but I'm not sure whether this is possible in ejs.
2007-10-10 13:17:14 -05:00
Tim Potter
54051bf8bb
r7082: Call load_interfaces() in smbscript initialisation.
2007-10-10 13:17:13 -05:00
Tim Potter
790a46f53b
r7081: Add mprToInt() function.
2007-10-10 13:17:13 -05:00
Tim Potter
fcf177c86e
r7080: Fix typo in error message.
2007-10-10 13:17:13 -05:00
Andrew Tridgell
45ea1b6441
r7078: - fix an uninitialised variable in smbscript
...
- fixed handle passing in the smb/ejs interface calls, so they can be called
safely from esp
2007-10-10 13:17:13 -05:00
Andrew Tridgell
caceb31be8
r7077: pull in a bunch more libs for smbscript. I plan on making a whole lot
...
of internal functions available to ejs, including rpc functions.
This should hopefully fix the link on solaris10 as well
2007-10-10 13:17:13 -05:00
Andrew Tridgell
3db568eb6b
r7075: added support for ARGV[] in ejs scripts
2007-10-10 13:17:12 -05:00
Andrew Tridgell
92f85507df
r7074: we should load all shares in smbscript
2007-10-10 13:17:12 -05:00
Andrew Tridgell
e59ae64f60
r7072: moved the esp hooks calls to the ejs level, so we can call them from
...
both esp scripts and ejs scripts. This allows the smbscript program to
call all the existing extension calls like lpGet() and ldbSearch()
Also fixed smbscript to load smb.conf, and setup logging for DEBUG()
I left the unixAuth() routine in web_server/calls.c at the moment, as
that is really only useful for esp scripts. I imagine that as we
extend esp/ejs, we will put some functions in scripting/ejs/ for use
in both ejs and esp, and some functions in web_server/ where they will
only be accessed by esp web scripts
2007-10-10 13:17:12 -05:00
Volker Lendecke
06d27a1921
r7069: Add a little usage message to smbscript and fix a compiler warning. My
...
compiler still complains about "handle" (scripting/ejs/smbscrip.c:46) possibly
not being initialized and to me this looks true.
Running smbscript with the trivial write("Hello, world\n"); also leaves some
memory around.
Volker
2007-10-10 13:17:11 -05:00
Tim Potter
f2e59d3adf
r7066: Rename http_exception to ejs_exception.
2007-10-10 13:17:11 -05:00
Tim Potter
b83dc8fbfb
r7065: Move ejs from web_server to lib so it can be shared with smbscript.
2007-10-10 13:17:11 -05:00
Tim Potter
805b6c7cf0
r7064: Clean up handle parameter passing after peeking at tridge's ejstest.c
2007-10-10 13:17:11 -05:00
Tim Potter
5e2458ae6c
r7063: Do error checking on the ejs functions.
...
Tridge says there is a bug in defining per-engine CFunction's so move
calls to ejsDefineStringCFunction() above the ejsOpenEngine() call.
Test script now works!
2007-10-10 13:17:10 -05:00
Tim Potter
e14c00c4c1
r7062: Merge scripting/swig/config.mk with scripting/config.mk
2007-10-10 13:17:10 -05:00
Tim Potter
3444cd5429
r7061: A ejs scripting client. This should allow javascript to be run in a
...
command line environment instead of inside the web server.
It doesn't work yet though, rather an exception is thrown when trying
to call ejsDefineStringCFunction().
2007-10-10 13:17:10 -05:00
Tim Potter
99fb6b6bad
r6592: Throw an IOError exception if tdb_open() or tdb_open_Ex() returns NULL.
2007-10-10 13:16:29 -05:00
Tim Potter
0abd03f70c
r6591: Add some comments.
...
Use SWIG %rename to get rid of prefix on every tdb function.
Treat mode_t as an int so we can actually pass a mode argument to
tdb_open().
2007-10-10 13:16:28 -05:00
Tim Potter
83a125ce57
r6590: Remove bogus library versioning variables from swig wrappers.
2007-10-10 13:16:28 -05:00
Tim Potter
7ab240644e
r6540: Implement a bunch more SAMR functions.
2007-10-10 13:16:24 -05:00
Tim Potter
f40977c421
r6539: A patch from jbm:
...
- convert rpcclient to new credential code
- allow anonymous connections
2007-10-10 13:16:24 -05:00
Tim Potter
16b7e503bd
r6512: Refactor samr torture test to use the nicer OO interface instead of the
...
previous dictionary based SWIG interface (which was broken anyway).
2007-10-10 13:16:21 -05:00
Tim Potter
f9742de617
r6511: Implement GetUserPwInfo(), QueryUserInfo(), QueryUserInfo2().
2007-10-10 13:16:21 -05:00
Tim Potter
2e44402751
r6510: Initialise rid parameter in samr_RidToSid(). This is faulting for me
...
on win2k - not sure why.
Add dodgy implementations of QueryDisplayInfo{,2,3}()
2007-10-10 13:16:20 -05:00
Tim Potter
61da936dbc
r6508: Fix typo - yay testsuite.
2007-10-10 13:16:20 -05:00
Tim Potter
3055addde6
r6507: Fix syntax error in GetAliasMembership().
...
Implement SetDomainInfo() which got lost somehow.
2007-10-10 13:16:20 -05:00
Tim Potter
1542a13493
r6506: Rename parameter to GetDomPwInfo.
2007-10-10 13:16:20 -05:00
Tim Potter
acf1d0a1b5
r6469: Add CreateDomainGroup, GetAliasMembership.
2007-10-10 13:11:40 -05:00
Tim Potter
30d0c9fb2e
r6329: Write tests for newly implemented alias functions.
2007-10-10 13:11:32 -05:00
Tim Potter
25ed39651b
r6328: Fix bug in OpenAlias.
...
Implement DeleteDomAlias, QueryAliasInfo, SetAliasInfo,
AddAliasMember, and AddMultipleMembersToAlias.
Fix one of those annoying large integer warnings.
2007-10-10 13:11:32 -05:00
Tim Potter
b6e883a613
r6327: Add LSA objects to dcerpc swig library.
2007-10-10 13:11:32 -05:00
Tim Potter
fd884ec433
r6326: Add %array_functions for struct lsa_SidPtr.
...
Pull in the auto-generated interface file for the lsa pipe
(whaddayaknow it compiled first go!)
2007-10-10 13:11:32 -05:00
Tim Potter
162d3609a1
r6324: Pass server name instead of binding string on command line (always use
...
ncacn_np for the moment).
Fix rpcclient to work with struct cli_credentials.
2007-10-10 13:11:31 -05:00
Tim Potter
e3a69a7322
r6215: Add test for LookupNames. Fix CreateUser2 test.
2007-10-10 13:11:27 -05:00
Tim Potter
57680163bc
r6214: Fix typo in DomainHandle.OpenUser() function.
...
Implement DomainHandle.LookupNames() function.
UserHandle.DeleteUser() closes the handle so don't try and close it
when the GC destroys the class instance.
2007-10-10 13:11:27 -05:00
Tim Potter
fc2b73d4d7
r6213: Add %array_functions for struct samr_String so we can create and
...
access arrays of them.
2007-10-10 13:11:26 -05:00
Tim Potter
86c62b92e8
r6212: Treat uint8 and int8's as integers instead of chars. Swig maps a char
...
to a string when we really want an integer.
2007-10-10 13:11:26 -05:00
Tim Potter
a3e7d71463
r6211: Use cli_credentials_set_{domain,username,password}() to fill in
...
command line arguments for credentials typemap. Neat!
2007-10-10 13:11:26 -05:00
Tim Potter
1c88e71ec6
r6210: Call cli_credentials_set_conf() when initialising credentials in
...
cli_credentials typemap.
2007-10-10 13:11:26 -05:00
Tim Potter
b09a472353
r6208: Add cli_credentials support for swig wrappers. For the moment it
...
only does anonymous connections.
2007-10-10 13:11:26 -05:00
Tim Potter
8b83eca265
r5778: Remove tdb_set_lock_alarm() function from wrappers at tridge's request.
2007-10-10 13:11:02 -05:00
Tim Potter
170139035a
r5777: At some stage SIG_ATOMIC_T was renamed to sig_atomic_t. This should
...
fix abartlet's compile problem.
2007-10-10 13:11:02 -05:00
Tim Potter
1459393983
r5369: Rename torture modules so they don't conflict with files in scripting/swig.
...
Start porting samr torture test to new API.
2007-10-10 13:09:47 -05:00
Tim Potter
f9ba35ff83
r5368: Fix ups for domain_name field name change.
...
Implement GetDomPwInfo(), CreateUser2(), RemoveMemberFromForeignDomain(),
DeleteUser().
2007-10-10 13:09:47 -05:00
Tim Potter
4a96778331
r5353: Throw a NTSTATUS exception if a NT error code is returned.
2007-10-10 13:09:45 -05:00
Tim Potter
be37749ac7
r5351: Add wrapper for nt_errstr and array functions for samr_ConnectInfo.
2007-10-10 13:09:45 -05:00
Tim Potter
076ec6008e
r5350: Implement an input typemap for NTSTATUS.
2007-10-10 13:09:44 -05:00
Tim Potter
4b2c3c7ac5
r5348: Implement the remaining samr connect functions and fix up setsecurity.
2007-10-10 13:09:44 -05:00