summaryrefslogtreecommitdiffstats
path: root/source/scripting
Commit message (Collapse)AuthorAgeFilesLines
...
* r7922: Comment out complicated connect/session/tree API for the moment. ReplaceTim Potter2005-06-261-2/+83
| | | | with tree_connect() and tree_disconnect() functions.
* r7633: this patch started as an attempt to make the dcerpc code use a givenAndrew Tridgell2005-06-162-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | event_context for the socket_connect() call, so that when things that use dcerpc are running alongside anything else it doesn't block the whole process during a connect. Then of course I needed to change any code that created a dcerpc connection (such as the auth code) to also take an event context, and anything that called that and so on .... thus the size of the patch. There were 3 places where I punted: - abartlet wanted me to add a gensec_set_event_context() call instead of adding it to the gensec init calls. Andrew, my apologies for not doing this. I didn't do it as adding a new parameter allowed me to catch all the callers with the compiler. Now that its done, we could go back and use gensec_set_event_context() - the ejs code calls auth initialisation, which means it should pass in the event context from the web server. I punted on that. Needs fixing. - I used a NULL event context in dcom_get_pipe(). This is equivalent to what we did already, but should be fixed to use a callers event context. Jelmer, can you think of a clean way to do that? I also cleaned up a couple of things: - libnet_context_destroy() makes no sense. I removed it. - removed some unused vars in various places
* r7570: Add tree, session and socket disconnect ejs functions.Tim Potter2005-06-141-8/+114
|
* r7530: Simply calling convention of lp_load(). Andrew Bartlett2005-06-131-1/+1
| | | | | | | This always loads all the services, as we now don't have an easy way to split out smbd. Andrew Bartlett
* r7505: Add more argument forms for session_setup().Tim Potter2005-06-121-1/+34
| | | | Throw an exception if tree connect fails.
* r7501: Fix credential initialisation in ejs session setup. Implement fourTim Potter2005-06-121-7/+127
| | | | | | arg and anonymous version of command. Implement ejs tconx.
* r7500: Initialise module subsystems.Tim Potter2005-06-121-0/+2
|
* r7477: Add MPR_TYPE_PTR to ejs_typeof().Tim Potter2005-06-111-1/+2
|
* r7461: this is the start of some code for mapping IDL onto ejs. This is handAndrew Tridgell2005-06-101-0/+197
| | | | | | | | | written code, and it doesn't work or even compile yet. I am committing it to make it easier to discuss the approach with jelmer and tpot. The intention is that this code will eventually end up being mostly auto-generated (with the utility functions split out, just like librpc/ndr/*.c)
* r7457: Return an ejs C pointer object from the ejs connect() function.Tim Potter2005-06-101-16/+62
| | | | | Add a session_setup() function that does an anonymous session setup. Will add credential passing later.
* r7422: Create a ejs object to wrap a smbcli_transport pointer.Tim Potter2005-06-091-0/+18
|
* r7355: this should fix the link problem metze hit with smbscriptAndrew Tridgell2005-06-071-1/+1
|
* r7351: Start of ejs smb client library. I need to figure out a nice API hereTim Potter2005-06-073-0/+91
| | | | | | | that doesn't expose too much of the cifs protocol but still allows people to do neat things. Also, talloc lifetimes need to be thought about properly.
* r7350: Remove unused label.Tim Potter2005-06-071-1/+0
|
* r7268: allocate the strings to avoid them disappearing under our feetSimo Sorce2005-06-041-5/+5
|
* r7267: REMOTE_HOST is a better choiceSimo Sorce2005-06-041-34/+65
|
* r7266: Split the different types of js function defines into separate files,Tim Potter2005-06-046-243/+368
| | | | as there are going to be a lot more of them.
* r7263: Exit smbscript with the intepreter return value (defaults to 0).Tim Potter2005-06-041-10/+13
| | | | | | Change the exit value for an exception, usage error and other non-js errors to 127 which is kinda like the return value for the system(3) function.
* r7262: Add a length property to ARGV array.Tim Potter2005-06-041-0/+1
|
* r7261: Pass by reference is done in js via MPR_TYPE_OBJECT. Update argument Tim Potter2005-06-041-2/+7
| | | | parsing and example for resolveName().
* r7255: Change syntax of resolveName() js function to be more like theTim Potter2005-06-041-26/+28
| | | | | resolve_name() C function. I can't figure out how to return variables by reference though. Writing to argv[] doesn't seem to work.
* r7254: Add a mprWERROR() function with the same attributes as mprNTSTATUS.Tim Potter2005-06-041-0/+24
|
* r7238: Add pam auth support in swatSimo Sorce2005-06-032-1/+83
|
* r7225: Create a MprVar object from a NTSTATUS, e.g:Tim Potter2005-06-031-0/+23
| | | | | | | | | res: { is_err: true, is_ok: false, errstr: "NT_STATUS_IO_TIMEOUT", v: -1073741643 }
* r7223: Advance script past interpreter line.Tim Potter2005-06-031-0/+11
|
* r7215: Convert smbscript to use ejsEvalScript() and file_load() instead ofTim Potter2005-06-031-4/+7
| | | | | | | ejsEvalFile(). Still need to add advancement of the script past the hash-bang line but it's home time now!!
* r7135: make typeof() complient with ECMA 11.4.3Andrew Tridgell2005-05-311-11/+12
|
* r7083: Add a ejs hook to the resolve_name() function.Tim Potter2005-05-291-0/+51
| | | | | | 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.
* r7082: Call load_interfaces() in smbscript initialisation.Tim Potter2005-05-291-0/+2
|
* r7081: Add mprToInt() function.Tim Potter2005-05-291-0/+9
|
* r7080: Fix typo in error message.Tim Potter2005-05-291-1/+1
|
* r7078: - fix an uninitialised variable in smbscriptAndrew Tridgell2005-05-292-5/+5
| | | | | - fixed handle passing in the smb/ejs interface calls, so they can be called safely from esp
* r7077: pull in a bunch more libs for smbscript. I plan on making a whole lotAndrew Tridgell2005-05-291-1/+2
| | | | | | of internal functions available to ejs, including rpc functions. This should hopefully fix the link on solaris10 as well
* r7075: added support for ARGV[] in ejs scriptsAndrew Tridgell2005-05-291-1/+12
|
* r7074: we should load all shares in smbscriptAndrew Tridgell2005-05-291-1/+1
|
* r7072: moved the esp hooks calls to the ejs level, so we can call them fromAndrew Tridgell2005-05-294-13/+444
| | | | | | | | | | | | | 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
* r7069: Add a little usage message to smbscript and fix a compiler warning. MyVolker Lendecke2005-05-291-1/+7
| | | | | | | | | | 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
* r7066: Rename http_exception to ejs_exception.Tim Potter2005-05-291-2/+2
|
* r7065: Move ejs from web_server to lib so it can be shared with smbscript.Tim Potter2005-05-291-1/+1
|
* r7064: Clean up handle parameter passing after peeking at tridge's ejstest.cTim Potter2005-05-291-4/+4
|
* r7063: Do error checking on the ejs functions.Tim Potter2005-05-291-9/+19
| | | | | | | 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!
* r7062: Merge scripting/swig/config.mk with scripting/config.mkTim Potter2005-05-292-5/+14
|
* r7061: A ejs scripting client. This should allow javascript to be run in a Tim Potter2005-05-292-0/+70
| | | | | | | 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().
* r6592: Throw an IOError exception if tdb_open() or tdb_open_Ex() returns NULL.Tim Potter2005-05-031-0/+12
|
* r6591: Add some comments.Tim Potter2005-05-031-4/+44
| | | | | | | 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().
* r6590: Remove bogus library versioning variables from swig wrappers.Tim Potter2005-05-031-6/+0
|
* r6540: Implement a bunch more SAMR functions.Tim Potter2005-05-013-19/+139
|
* r6539: A patch from jbm:Tim Potter2005-05-011-13/+16
| | | | | - convert rpcclient to new credential code - allow anonymous connections
* r6512: Refactor samr torture test to use the nicer OO interface instead of theTim Potter2005-04-281-552/+88
| | | | previous dictionary based SWIG interface (which was broken anyway).
* r6511: Implement GetUserPwInfo(), QueryUserInfo(), QueryUserInfo2().Tim Potter2005-04-281-5/+29
|