| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
| |
#!/bin/sh
exec smbscript "$0" ${1+"$@"}
which is needed because bloody solaris puts 'env' in /bin instead of /usr/bin
also neaten up the #! handling code.
|
| |
|
|
|
|
|
|
| |
the 64 bit integer support
this fixes the exit status from smbscript
|
| |
|
|
|
|
|
|
| |
upstream sources. This makes it much easier to keep it up to date.
I will separate out the mpr code into lib/appweb/mpr next
|
|
|
|
| |
required by ISO C99.
|
|
|
|
| |
- added a provisioning web page
|
|
|
|
| |
failing.
|
| |
|
|
|
|
|
| |
- removed the --outputdir option from provision, as its not used any
more (as ejs knows the real paths)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- added sys_unlink()
- added sys_file_load() and sys_file_save()
- use mprString() instead of mprCreateStringVar() to cope with NULL strings
- removed smbcalls_irpc.c as its not needed any more
- allow ldbAdd() and ldbModify() to take multiple ldif records
- added a sprintf() function to ejs. Quite complex, but very useful!
|
|
|
|
| |
functions
|
|
|
|
|
|
| |
substitution of variables in strings
- the js provision script now correctly processes provision.ldif
|
|
|
|
|
|
|
|
| |
- added access to smbd random functions
- fixed ordering in join()
- added sys_interfaces(), sys_hostname(), sys_nttime() and sys_ldaptime()
|
| |
|
|
|
|
| |
this gets me most of the way through a ejs provision script
|
|
|
|
|
|
| |
have the toString() and valueOf() default attributes
this allows all our returned objects to be used in logical expressions
|
|
|
|
|
|
|
|
| |
getgr*()
getpw*()
strlower()
strupper()
IfaceList()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
including
access to the samba common options. For example:
ok = GetOptions(ARGV, options,
"POPT_AUTOHELP",
"POPT_COMMON_SAMBA",
"myopt=s",
"intopt=i",
"noopt");
this allows scripts to support their own extended options properly
|
|
|
|
|
|
| |
- switched the existing test programs over to using the library
- added install of js lib
|
|
|
|
|
|
|
|
|
| |
searches a js library
path set in "js include" in smb.conf.
This will allow us to start building up a library of common js code,
while avoiding the problem of hard-coding include paths in scripts
|
|
|
|
| |
- got rid of the one line ejs_returnlist()
|
|
|
|
|
|
|
| |
- added code to send multiple irpc calls in parallel, to all servers
that have registered the given name, with output going in
io.results[i]. This allows you to make rpc calls to multiple servers
at once, which is needed for clients like smbstatus
|
|
|
|
|
|
| |
code in pidl for ejs calls. This means that ejs_rpc_call() doesn't
need to scan the rpc tables for the right interface, and doesn't need
to scan for the call name
|
|
|
|
|
|
|
|
| |
- make the dcerpc pipe in rpc_connect() a talloc child of the ejs
connection variable. That means when the connection variable goes out
of scope, the connection is automatically closed. That makes for a
more natural interface for closing connections in a scripting language
(tpot, you may wish to use mprSetPtrChild() in your smb glue code too)
|
|
|
|
| |
lots of rpc calls without memory usage increasing.
|
|
|
|
|
|
|
| |
file_load() to use talloc, which impacted quite a few bits of code,
including our smb.conf processing.
took the opportunity to remove the gloabls in params.c while doing this
|
|
|
|
|
|
| |
- added config.mk entries for some more pipes
- simplify the handling of ejs variables in the pidl code
|
|
|
|
|
|
| |
code, so
adding a new pipe only involves changes to librpc/config.mk
|
|
|
|
|
|
|
|
|
|
|
| |
of null credentials to use if cmdline_credentials is not setup
- hide the length and size elements of a lsa_String from js scripts,
so you can use a lsa_String just as an ordinary string without
knowing its a structure. We won't do this with all structures, just
a few core ones that are used often enough to warrant it.
- make sure returned ldb arrays have a length property
|
| |
|
|
|
|
| |
- added automatic creation of all constants in IDL as ejs variables
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- added auto generation of a header with prototypes for public ejs functions
- make public functions non-static
- fixed allocation of fixed sized arrays
- added 'noejs' flag indicating that a typedef will be handled manually by ejs
- added manual functions for sid and GUID, so they show up as nice
strings in ejs scripts
This allows ejs to bring in samr, security, lsa and misc IDL functions
|
| |
|
|
|
|
|
|
| |
use the enum name
instead of a integer in ejs scripts making rpc calls
|
|
|
|
| |
- added debugging calls for missing structure/union elements
|
|
|
|
|
|
| |
LEVELS based approach.
This allows for much more complex structure mappings to be generated.
|
|
|
|
|
|
|
|
|
| |
and have re-coded the push side of the ejs generator to use it
properly. It ends up being very neat and small, and should handle much
more complex structures (like arrays of pointers to unions etc).
Also added push side support for unions. This should get more of the
echo pipe working via ejs.
|
|
|
|
| |
- kill the js interpreter with an exception on internal errors
|
|
|
|
|
| |
- improved the error handling, so the ejs wrappers don't just ignore a type they
don't handle, instead an exception is issued saying what isn't handled
|
|
|
|
|
|
|
|
|
| |
to making all push
functions taking a constant pointer to the type rather than having a different calling
convention for scalars and pointers
- fixed the setting of the 'length' element in arrays
|
|
|
|
| |
autogenerated by pidl
|
|
|
|
| |
only handles a small subset of all IDL files so far
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
the ejs_echo.c code is the stuff that needs to be auto-generated by
pidl. It only does echo_AddOne so far.
We also need a table for registering these calls. The code is
hard-wired for echo_AddOne for now.
|
|
|
|
|
| |
tpot, note that this shows how you can modify passed in MprVar
variables in C call
|
|
|
|
|
| |
list() returns a list of strings, but maybe it should be a list of
objects with size, attrib, short name etc.
|
|
|
|
| |
Write a macro to check tree handle parameters.
|