summaryrefslogtreecommitdiff
path: root/source4/scripting
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r7505: Add more argument forms for session_setup().Tim Potter1-1/+34
Throw an exception if tree connect fails. (This used to be commit 5b67f2c3d91487fec38b300b4f71792cd9164a78)
2007-10-10r7501: Fix credential initialisation in ejs session setup. Implement fourTim Potter1-7/+127
arg and anonymous version of command. Implement ejs tconx. (This used to be commit 3b7df1037de813d93b284d3b4438b083e668e29f)
2007-10-10r7500: Initialise module subsystems.Tim Potter1-0/+2
(This used to be commit 564dfe14d00e80a0d373ab0fc17803ffaac0892e)
2007-10-10r7477: Add MPR_TYPE_PTR to ejs_typeof().Tim Potter1-1/+2
(This used to be commit 8574f64ca2bda864f472067ae594285b6f5dc957)
2007-10-10r7461: this is the start of some code for mapping IDL onto ejs. This is handAndrew Tridgell1-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) (This used to be commit 30e876e9c2ba73a3bc26e7708110e00a8552a75e)
2007-10-10r7457: Return an ejs C pointer object from the ejs connect() function.Tim Potter1-16/+62
Add a session_setup() function that does an anonymous session setup. Will add credential passing later. (This used to be commit 832332de5db7102085e7c44d4256fb199d8123eb)
2007-10-10r7422: Create a ejs object to wrap a smbcli_transport pointer.Tim Potter1-0/+18
(This used to be commit a55e40651d06f416871ccbe04ad3b7d25444d645)
2007-10-10r7355: this should fix the link problem metze hit with smbscriptAndrew Tridgell1-1/+1
(This used to be commit 067255909ed381d397dfc82e4bca219da40810d9)
2007-10-10r7351: Start of ejs smb client library. I need to figure out a nice API hereTim Potter3-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. (This used to be commit 8062e808ef5102b96e1b3de046c858e4a69b4d82)
2007-10-10r7350: Remove unused label.Tim Potter1-1/+0
(This used to be commit ada004595760605134eb741da9c549521938c2ce)
2007-10-10r7268: allocate the strings to avoid them disappearing under our feetSimo Sorce1-5/+5
(This used to be commit ddd7454cb3e2445fd32682b380be89c70f8a22cb)
2007-10-10r7267: REMOTE_HOST is a better choiceSimo Sorce1-34/+65
(This used to be commit 41bae267e29614d300ec2505c927ab17ccbbe64f)
2007-10-10r7266: Split the different types of js function defines into separate files,Tim Potter6-243/+368
as there are going to be a lot more of them. (This used to be commit b086768589ee27de6616945bbea42b18b40d25d5)
2007-10-10r7263: Exit smbscript with the intepreter return value (defaults to 0).Tim Potter1-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. (This used to be commit c77a232b1152a27e2d8ffb719aefba6c6b2ba6df)
2007-10-10r7262: Add a length property to ARGV array.Tim Potter1-0/+1
(This used to be commit 4b775c619b7abed52d158ab70505320753a0c9cb)
2007-10-10r7261: Pass by reference is done in js via MPR_TYPE_OBJECT. Update argumentTim Potter1-2/+7
parsing and example for resolveName(). (This used to be commit 1a4a54931733ebfa743401a184fe460c044427b4)
2007-10-10r7255: Change syntax of resolveName() js function to be more like theTim Potter1-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. (This used to be commit aef99859f28570b60f4fefe2981160269f6eb02a)
2007-10-10r7254: Add a mprWERROR() function with the same attributes as mprNTSTATUS.Tim Potter1-0/+24
(This used to be commit 2fa6f7bb2b8390f6486f6531212b556e98a6c528)
2007-10-10r7238: Add pam auth support in swatSimo Sorce2-1/+83
(This used to be commit 8a98572a3b5dba58181dc402dbebae5452656012)
2007-10-10r7225: Create a MprVar object from a NTSTATUS, e.g:Tim Potter1-0/+23
res: { is_err: true, is_ok: false, errstr: "NT_STATUS_IO_TIMEOUT", v: -1073741643 } (This used to be commit d81d5f8317ca82a08e6fc38ef7313fad2e631281)
2007-10-10r7223: Advance script past interpreter line.Tim Potter1-0/+11
(This used to be commit 31b9fadbed656f666f587a9dcb5a7627a2d388aa)
2007-10-10r7215: Convert smbscript to use ejsEvalScript() and file_load() instead ofTim Potter1-4/+7
ejsEvalFile(). Still need to add advancement of the script past the hash-bang line but it's home time now!! (This used to be commit 14a2053c045a2df1d68838900c833c2a15cb5a36)
2007-10-10r7135: make typeof() complient with ECMA 11.4.3Andrew Tridgell1-11/+12
(This used to be commit 29ab4cc6cb244255ab75af7ae2076b51209f4f2d)
2007-10-10r7083: Add a ejs hook to the resolve_name() function.Tim Potter1-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. (This used to be commit 6911e46c6a576a379ea06f9ba3ef6a62653170f0)
2007-10-10r7082: Call load_interfaces() in smbscript initialisation.Tim Potter1-0/+2
(This used to be commit 54051bf8bbb18653adafb37cc6181617ca60b781)
2007-10-10r7081: Add mprToInt() function.Tim Potter1-0/+9
(This used to be commit 790a46f53bd5b6994cbf6aed670df1407a44e2f3)
2007-10-10r7080: Fix typo in error message.Tim Potter1-1/+1
(This used to be commit fcf177c86e2bfbc993352b80824487e5df0a3f63)
2007-10-10r7078: - fix an uninitialised variable in smbscriptAndrew Tridgell2-5/+5
- fixed handle passing in the smb/ejs interface calls, so they can be called safely from esp (This used to be commit 45ea1b64413de577366939b2106f657f6c47b1bd)
2007-10-10r7077: pull in a bunch more libs for smbscript. I plan on making a whole lotAndrew Tridgell1-1/+2
of internal functions available to ejs, including rpc functions. This should hopefully fix the link on solaris10 as well (This used to be commit caceb31be841041a0e20c7e261badad2cce82c6a)
2007-10-10r7075: added support for ARGV[] in ejs scriptsAndrew Tridgell1-1/+12
(This used to be commit 3db568eb6bb383c4c1e1fd0c7f043a9914dcc3cc)
2007-10-10r7074: we should load all shares in smbscriptAndrew Tridgell1-1/+1
(This used to be commit 92f85507df2bce5e246484860a43748321f2291e)
2007-10-10r7072: moved the esp hooks calls to the ejs level, so we can call them fromAndrew Tridgell4-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 (This used to be commit e59ae64f60d388a5634559e4e0887e4676b70871)
2007-10-10r7069: Add a little usage message to smbscript and fix a compiler warning. MyVolker Lendecke1-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 (This used to be commit 06d27a19213dc8fe6dfc948a5e8cbafa74db7a29)
2007-10-10r7066: Rename http_exception to ejs_exception.Tim Potter1-2/+2
(This used to be commit f2e59d3adfd7813c3c2090350f8ff2a99a5533e9)
2007-10-10r7065: Move ejs from web_server to lib so it can be shared with smbscript.Tim Potter1-1/+1
(This used to be commit b83dc8fbfb9ffe30654bc4869398f50dd9ccccb7)
2007-10-10r7064: Clean up handle parameter passing after peeking at tridge's ejstest.cTim Potter1-4/+4
(This used to be commit 805b6c7cf0f1e05fbb690bdfc93938747e13e6cd)
2007-10-10r7063: Do error checking on the ejs functions.Tim Potter1-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! (This used to be commit 5e2458ae6c863ff29b85fff3d093f7f4fa9dc2be)
2007-10-10r7062: Merge scripting/swig/config.mk with scripting/config.mkTim Potter2-5/+14
(This used to be commit e14c00c4c1cc51dac9452c1e950445907d883e46)
2007-10-10r7061: A ejs scripting client. This should allow javascript to be run in aTim Potter2-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(). (This used to be commit 3444cd5429dfef5a67d5bf7818ae08e4e8cc5ccc)
2007-10-10r6592: Throw an IOError exception if tdb_open() or tdb_open_Ex() returns NULL.Tim Potter1-0/+12
(This used to be commit 99fb6b6badf1afeac21fdb5f1ce04c1749e1b7f7)
2007-10-10r6591: Add some comments.Tim Potter1-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(). (This used to be commit 0abd03f70c5c63a915086eaf6e3a25b3087769bc)
2007-10-10r6590: Remove bogus library versioning variables from swig wrappers.Tim Potter1-6/+0
(This used to be commit 83a125ce576b1be613e010a5c9b4257f25909b05)
2007-10-10r6540: Implement a bunch more SAMR functions.Tim Potter3-19/+139
(This used to be commit 7ab240644ec6cfd0449df7e2dfe0eb1b8a52ccdb)
2007-10-10r6539: A patch from jbm:Tim Potter1-13/+16
- convert rpcclient to new credential code - allow anonymous connections (This used to be commit f40977c42145e202ddfe50c9a7daad624b06cc59)
2007-10-10r6512: Refactor samr torture test to use the nicer OO interface instead of theTim Potter1-552/+88
previous dictionary based SWIG interface (which was broken anyway). (This used to be commit 16b7e503bdbe4da96158e504790b1501a99d6db3)
2007-10-10r6511: Implement GetUserPwInfo(), QueryUserInfo(), QueryUserInfo2().Tim Potter1-5/+29
(This used to be commit f9742de617b6f1f24b75ae5af18a476f03c0b732)
2007-10-10r6510: Initialise rid parameter in samr_RidToSid(). This is faulting for meTim Potter1-4/+56
on win2k - not sure why. Add dodgy implementations of QueryDisplayInfo{,2,3}() (This used to be commit 2e44402751f77fcbd9c89299d8533e91207de49f)
2007-10-10r6508: Fix typo - yay testsuite.Tim Potter1-1/+1
(This used to be commit 61da936dbc491d0ec2d733d9ba155c3df01b8847)
2007-10-10r6507: Fix syntax error in GetAliasMembership().Tim Potter1-1/+11
Implement SetDomainInfo() which got lost somehow. (This used to be commit 3055addde60687acdcf4e92dcb08e7f8dfdfb8f1)
2007-10-10r6506: Rename parameter to GetDomPwInfo.Tim Potter1-2/+2
(This used to be commit 1542a13493bb9bf33d5f09dca273957bb4333862)