| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
with tree_connect() and tree_disconnect() functions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
This always loads all the services, as we now don't have an easy way
to split out smbd.
Andrew Bartlett
|
|
|
|
| |
Throw an exception if tree connect fails.
|
|
|
|
|
|
| |
arg and anonymous version of command.
Implement ejs tconx.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
Add a session_setup() function that does an anonymous session setup. Will
add credential passing later.
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
| |
as there are going to be a lot more of them.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
parsing and example for resolveName().
|
|
|
|
|
| |
resolve_name() C function. I can't figure out how to return variables
by reference though. Writing to argv[] doesn't seem to work.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
res: {
is_err: true,
is_ok: false,
errstr: "NT_STATUS_IO_TIMEOUT",
v: -1073741643
}
|
| |
|
|
|
|
|
|
|
| |
ejsEvalFile().
Still need to add advancement of the script past the hash-bang line but
it's home time now!!
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
- fixed handle passing in the smb/ejs interface calls, so they can be called
safely from esp
|
|
|
|
|
|
| |
of internal functions available to ejs, including rpc functions.
This should hopefully fix the link on solaris10 as well
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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!
|
| |
|
|
|
|
|
|
|
| |
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().
|
| |
|
|
|
|
|
|
|
| |
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().
|
| |
|
| |
|
|
|
|
|
| |
- convert rpcclient to new credential code
- allow anonymous connections
|
|
|
|
| |
previous dictionary based SWIG interface (which was broken anyway).
|
| |
|