1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-24 15:33:20 +03:00
Commit Graph

60 Commits

Author SHA1 Message Date
Jelmer Vernooij
184988866f Introduce mprLpCtx() similar to mprMemCtx() for loadparm_context used by
all EJS code.
2008-02-21 18:21:44 +01:00
Jelmer Vernooij
f1997dabed r26580: Include sentinel in build.h, in case the list is empty. 2007-12-24 01:51:07 -06:00
Jelmer Vernooij
ba8be2dfc0 r26576: Allow the static module loading code to be used for the Python modules.
Simplify the way module initialization functions are handled.
2007-12-24 01:51:06 -06:00
Jelmer Vernooij
3468952e77 r25446: Merge some changes I made on the way home from SFO:
2007-09-29 More higher-level passing around of lp_ctx.
2007-09-29 Fix warning.
2007-09-29 Pass loadparm contexts on a higher level.
2007-09-29 Avoid using global loadparm context.
2007-10-10 15:07:34 -05:00
Jelmer Vernooij
3fcc960839 r25398: Parse loadparm context to all lp_*() functions. 2007-10-10 15:07:25 -05:00
Andrew Bartlett
cda965e908 r25051: Move SWAT back to the old-style form-submit modal.
The Web 2.0, async client tools were really interesting, but without
developer backing they remain impossible to support into a release.

The most interesting app was the LDB browser, and I intend to replace
this with phpLdapAdmin, preconfigured for Apache during provision.

This also removes the need to 'compile' SWAT on SVN checkouts.

Andrew Bartlett
2007-10-10 15:05:50 -05:00
Jelmer Vernooij
abe8349f9b r25026: Move param/param.h out of includes.h 2007-10-10 15:05:38 -05:00
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Rafal Szczesniak
0ecb8fd81e r23065: revert local includes to prevent security problems (at least
temporarily...)

rafal
2007-10-10 14:52:47 -05:00
Rafal Szczesniak
278d26576a r23047: Allow local inclusion of js files as well as from predefined
path(s).

rafal
2007-10-10 14:52:44 -05:00
Stefan Metzmacher
e2cdd882b5 r20792: fix the build, sorry...
metze
2007-10-10 14:40:56 -05:00
Stefan Metzmacher
5828632931 r20791: the ejsnet stuff can be a normal smbcalls module...
mimir: when you want to register more functions
       please do that in the smb_setup_ejs_net() function

metze
2007-10-10 14:40:55 -05:00
Jelmer Vernooij
42bb335bd5 r20786: Fix the build. 2007-10-10 14:40:55 -05:00
Derrell Lipman
2406af1079 r19449: ldbbrowse: installation hopefully works now. "Developer" installations
('configure.developer' or 'configure --enable-developer') may still have
problems as I'm not sure I got all of the paths right for that.

With the changes Tridge has made to the Main Menu in swat, given a
non-developer installation, you should be able to get to ldbbrowse via:

  JSON/qooxdoo -> ldb browser

Derrell
2007-10-10 14:21:33 -05:00
Derrell Lipman
aa8e4227a1 r19165: handle errors better for jsonrpc. generate an error object whenever possible 2007-10-10 14:20:47 -05:00
Derrell Lipman
5bfebbda7a r19055: JSON-RPC is working! It passes the small qooxdoo JSON-RPC test suite
perfectly.

This check in covers the remaining fixes and enhancements to complete the
server.  In a subsequent check-in, I need to learn about the new qooxdoo
packaging mechanism.  Although it'd be nice to have the whole source tree,
that's huge and needn't be in samba svn.  It's now supposed to be very easy to
package qooxdoo, so I'll figure out how that's done and then check in the
relevant small number of files.

Steps after that involve generating the stubs to allow various ejs functions
to be called via JSON-RPC.

Derrell
2007-10-10 14:20:32 -05:00
Derrell Lipman
6e9cb2ed1c r19051: JSON-RPC server work-in-progress. It's almost working. 2007-10-10 14:20:31 -05:00
Derrell Lipman
bb07f606de r19020: move jsonrpc_include to a more appropriate location in the file, and call the setup function for parsing literals. 2007-10-10 14:20:28 -05:00
Derrell Lipman
34bffbaebf r18880: JSON-RPC work in progress 2007-10-10 14:20:17 -05:00
Jelmer Vernooij
8575e9a490 r14603: Fix building of ejs modules as shared libs
Fix calling of ejs_exception() without requiring --export-dynamic
2007-10-10 13:58:59 -05:00
Jelmer Vernooij
c74fc55831 r14497: Fix build with shared libraries 2007-10-10 13:57:34 -05:00
Jelmer Vernooij
d538eac9db r14109: Modulify the smbcalls subsystem. 2007-10-10 13:56:51 -05:00
Jelmer Vernooij
bca0e8054f r13655: Use new name of build header 2007-10-10 13:52:05 -05:00
Simo Sorce
3fb9571a76 r13369: let's have a way to show the samba4 version through ejs
and use it in provisioning to fullfill rfc 3045 requirements
2007-10-10 13:51:50 -05:00
Jelmer Vernooij
1e8670874b r12501: Merge EJSHeader.pm into EJS.pm and simplify smbcalls_rpc.c a bit,
now that it is guaranteed that the smbcalls modules are always initialized
after the EJS subsystem itself.
2007-10-10 13:47:46 -05:00
Jelmer Vernooij
f6bbc72996 r12500: Use init functions explicitly in a few more places. 'gensec' and 'librpc'
are the only two subsystems left to convert.
2007-10-10 13:47:46 -05:00
Rafal Szczesniak
f9c436bbdf r11281: Initial ejs interface for libnet functions.
rafal
2007-10-10 13:45:13 -05:00
Jelmer Vernooij
bb0cef581a r9800: Add EJS interface to param. tridge, sorry this overlaps a bit
with your loadparm interface. :-/
2007-10-10 13:35:03 -05:00
Jelmer Vernooij
7e3b94dfb9 r9722: Initial attempt at converting samba3dump to EJS.. 2007-10-10 13:34:53 -05:00
Andrew Tridgell
cc5a3e9cc3 r9344: started adding calls for manipulation of data blobs in ejs
added:

  blobToArray()
  blobFromArray()
  blobCompare()
2007-10-10 13:33:26 -05:00
Andrew Tridgell
f91f5eeac9 r9132: 'pointer' is better for typedef than 'C pointer' 2007-10-10 13:31:20 -05:00
Andrew Tridgell
36a9277e87 r9059: add a basic credentials object for mimir 2007-10-10 13:31:13 -05:00
Andrew Tridgell
57d7a585e8 r8483: switched our generated ejs rpc code over to the new OO interface. This
means we don't pollute the name space, and also makes for faster
startup times as we only create variables for the pipes that we use,
not all pipes
2007-10-10 13:23:08 -05:00
Andrew Tridgell
52db7a052b r8399: move the ejs and esp code closer to the directory layout used by the
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
2007-10-10 13:22:39 -05:00
Tim Potter
797d9cf0c7 r8358: Return an error message if js include path not set instead of silently
failing.
2007-10-10 13:20:11 -05:00
Andrew Tridgell
28c1a1f3c0 r8337: - use 64 bit access functions in ejs calls
- added access to smbd random functions

- fixed ordering in join()

- added sys_interfaces(), sys_hostname(), sys_nttime() and sys_ldaptime()
2007-10-10 13:20:07 -05:00
Andrew Tridgell
570f071b15 r8320: make sure all our returned objects are full objects, which means they
have the toString() and valueOf() default attributes

this allows all our returned objects to be used in logical expressions
2007-10-10 13:20:06 -05:00
Andrew Tridgell
1517ad490d r8318: added a bunch more ejs calls.
getgr*()
  getpw*()
  strlower()
  strupper()
  IfaceList()
2007-10-10 13:20:06 -05:00
Andrew Tridgell
775fb56ac2 r8316: give full access to the popt command line parsing in ejs scripts, 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
2007-10-10 13:20:05 -05:00
Andrew Tridgell
ff60529ba2 r8297: add libinclude() function in ejs, which is like include() but 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
2007-10-10 13:19:32 -05:00
Andrew Tridgell
6961fe2905 r8296: - split out the ejs auth functions into a separate file
- got rid of the one line ejs_returnlist()
2007-10-10 13:19:32 -05:00
Andrew Tridgell
9c885a7edb r8276: fixed the remaining memory leaks in smbscript. We can now loop doing
lots of rpc calls without memory usage increasing.
2007-10-10 13:19:30 -05:00
Andrew Tridgell
ad1a4802d0 r8254: fixed a valgrind error in the unix auth code 2007-10-10 13:19:26 -05:00
Andrew Tridgell
e1cfc6d032 r8230: prevent authentication dying on a NULL domain 2007-10-10 13:19:22 -05:00
Andrew Tridgell
a61cdee384 r8220: added auto-generation of ENUM constants in ejs wrapper. So we can now use the enum name
instead of a integer in ejs scripts making rpc calls
2007-10-10 13:19:21 -05:00
Andrew Tridgell
a782541db3 r8069: the beginnings of code to allow rpc calls to be made from ejs
tpot, note that this shows how you can modify passed in MprVar
variables in C call
2007-10-10 13:19:04 -05:00
Andrew Tridgell
3a3025485b r7633: this patch started as an attempt to make the dcerpc code use a given
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
2007-10-10 13:18:15 -05:00
Tim Potter
8574f64ca2 r7477: Add MPR_TYPE_PTR to ejs_typeof(). 2007-10-10 13:17:57 -05:00
Tim Potter
8062e808ef r7351: Start of ejs smb client library. I need to figure out a nice API here
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.
2007-10-10 13:17:45 -05:00
Tim Potter
ada0045957 r7350: Remove unused label. 2007-10-10 13:17:45 -05:00