1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

4530 Commits

Author SHA1 Message Date
Andrew Tridgell
6782622296 r7079: remember to register the esp calls
(This used to be commit ab27e58c08a065a5a84fcd763d0b4b070eb07886)
2007-10-10 13:17:13 -05:00
Andrew Tridgell
09e00bbdc1 r7078: - fix an uninitialised variable in smbscript
- 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-10 13:17:13 -05:00
Andrew Tridgell
fe17411203 r7077: pull in a bunch more libs for smbscript. I plan on making a whole lot
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-10 13:17:13 -05:00
Andrew Tridgell
eba9bc5eaa r7076: added demos of using ARGV[]
(This used to be commit 9679f2027209543108428e985bf699b370385eeb)
2007-10-10 13:17:12 -05:00
Andrew Tridgell
f477a74129 r7075: added support for ARGV[] in ejs scripts
(This used to be commit 3db568eb6bb383c4c1e1fd0c7f043a9914dcc3cc)
2007-10-10 13:17:12 -05:00
Andrew Tridgell
8f84f7cdec r7074: we should load all shares in smbscript
(This used to be commit 92f85507df2bce5e246484860a43748321f2291e)
2007-10-10 13:17:12 -05:00
Andrew Tridgell
9e5bdc3c5d r7073: added some simple example scripts for use with smbscript
(This used to be commit f1d0c006600d6d57bce2ede87a1aae0ccfc2c412)
2007-10-10 13:17:12 -05:00
Andrew Tridgell
8754c793bf r7072: moved the esp hooks calls to the ejs level, so we can call them from
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-10 13:17:12 -05:00
Andrew Tridgell
973ea5feb1 r7071: allow access to the current mpr memory context from ejs calls
(This used to be commit a58531dcf30b091913563ca2b8ce5e5843896441)
2007-10-10 13:17:12 -05:00
Stefan Metzmacher
1cada76520 r7070: fix redirection when the client
doesn't send a 'Host' header

metze
(This used to be commit ccc4d51927eb1564c6f5de07dda83dd008bb8a9e)
2007-10-10 13:17:12 -05:00
Volker Lendecke
21f3a3921c r7069: Add a little usage message to smbscript and fix a compiler warning. My
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-10 13:17:11 -05:00
Tim Potter
b7ed3fa7d2 r7068: Missed one!
(This used to be commit cebbce9bf57d293dad3c35b1c76c74dd917620e0)
2007-10-10 13:17:11 -05:00
Andrew Tridgell
bd027bd015 r7067: older versions of gnutls don't have GNUTLS_KP_TLS_WWW_SERVER
(This used to be commit 9b568eb957c8ecbe8ebe29bcffdcad3bf7eef8c2)
2007-10-10 13:17:11 -05:00
Tim Potter
7756b990f3 r7066: Rename http_exception to ejs_exception.
(This used to be commit f2e59d3adfd7813c3c2090350f8ff2a99a5533e9)
2007-10-10 13:17:11 -05:00
Tim Potter
14ade23914 r7065: Move ejs from web_server to lib so it can be shared with smbscript.
(This used to be commit b83dc8fbfb9ffe30654bc4869398f50dd9ccccb7)
2007-10-10 13:17:11 -05:00
Tim Potter
de850cb754 r7064: Clean up handle parameter passing after peeking at tridge's ejstest.c
(This used to be commit 805b6c7cf0f1e05fbb690bdfc93938747e13e6cd)
2007-10-10 13:17:11 -05:00
Tim Potter
e95c8f1911 r7063: Do error checking on the ejs functions.
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-10 13:17:10 -05:00
Tim Potter
10f428b607 r7062: Merge scripting/swig/config.mk with scripting/config.mk
(This used to be commit e14c00c4c1cc51dac9452c1e950445907d883e46)
2007-10-10 13:17:10 -05:00
Tim Potter
f52a740215 r7061: A ejs scripting client. This should allow javascript to be run in a
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-10 13:17:10 -05:00
Tim Potter
0befec0920 r7060: Fix use of uninitialised variable.
(This used to be commit 7568fcbfc58c91a81a8fcbadea48ffdc9e58bb27)
2007-10-10 13:17:10 -05:00
Jelmer Vernooij
1deb402445 r7059: Use namespaces for pidl and the build system, so we can later on
call out to the build system to compile the various pidl tests
(without having to rely on shared library support).

Initial work on an ndr_array test.
(This used to be commit 2b08c4b92b4f56180c123a502bdcc6c40188c07f)
2007-10-10 13:17:10 -05:00
Simo Sorce
26ced62131 r7058: Add experimenthal pam authentication for web pages
(This used to be commit 36d905407465cb9d8950da86322531e3c3102642)
2007-10-10 13:17:10 -05:00
Simo Sorce
1586af2d42 r7057: remove some ^M at end of lines
(This used to be commit 1fb60dc07dbf6f1faa0d7af3959c20469a8e36f6)
2007-10-10 13:17:10 -05:00
Andrew Tridgell
b1722f62bd r7056: added links to ejs and esp info pages
(This used to be commit 624c7a76e848a0fd8296fd7afceeb9f22c803b12)
2007-10-10 13:17:09 -05:00
Andrew Tridgell
c77ea0c100 r7055: automatically add the dn to all ldbSearch results
(This used to be commit d6fa28080831700f80ff46320e0b0831337b822a)
2007-10-10 13:17:09 -05:00
Andrew Tridgell
2e315315e5 r7054: added a example script showing ldbSearch() usage
(This used to be commit 0fe835b16c8e8c4fbd801a447aca1f077934e84c)
2007-10-10 13:17:09 -05:00
Andrew Tridgell
cab11d1fa5 r7053: added a ldbSearch() call to esp
It takes two forms, one with a set of attributes, the other without:

	res = ldbSearch("dbfile", "expression");

        var attrs = new Array("attr1", "attr2", "attr3");
	res = ldbSearch("dbfile", "expression", attrs);
(This used to be commit 1ba602e32ba116016af6fb72e5929cdc026c8f0d)
2007-10-10 13:17:09 -05:00
Andrew Tridgell
9dc94f8ab8 r7052: added a case insensitive str_list_check_ci() version of str_list_check()
(This used to be commit 5654330b6100a7291cee3631815cfb898100cf23)
2007-10-10 13:17:09 -05:00
Andrew Tridgell
5aacc765e1 r7051: remove an unused file
(This used to be commit 7e6fbd4889a92ec985b8c6c70005cab76d64d262)
2007-10-10 13:17:09 -05:00
Stefan Metzmacher
27284d47af r7050: fix linking of smbd
metze
(This used to be commit d2af8eaefa58b56dbacfce10d74152a03d1becc2)
2007-10-10 13:17:09 -05:00
Andrew Tridgell
ea9ea03848 r7049: auto-create the private/tls/ directory on install
(This used to be commit a4a5eea7b741a78b45d19d7021805f674f48f44a)
2007-10-10 13:17:08 -05:00
Andrew Tridgell
c22d20edb4 r7048: added auto-generation of TLS self-signed certificates if none exist already
This allows smbd to be setup from scratch over ssl without having to
know how to create valid certificates (which can be quite tricky
unless you've done it before)

Of course, a good admin will provide real certificates, and smbd will
use them if specified
(This used to be commit 00b67efc99eac7bca386dea03f03bbb9470ab002)
2007-10-10 13:17:08 -05:00
Andrew Tridgell
2b0607248a r7047: rearranged the tls code a bit, and improved the error messages when it fails
(This used to be commit f54533dfba4286a3dbab26f1812a926fa6408efd)
2007-10-10 13:17:08 -05:00
Andrew Tridgell
15ca4bb558 r7044: vance is right that mixing http and https elements gives a warning in IE
(This used to be commit 5912cf2cd4405185fb40833d896c640c7d24a87a)
2007-10-10 13:17:08 -05:00
Andrew Bartlett
bdefee0cce r7043: Patch from Julien Kerihuel <j.kerihuel@openchange.org> to reenable
'obfustication' in the new PIDL.

Jelmer:  Can you double-check this?

Andrew Bartlett
(This used to be commit 2a1426c52f113237edeba4de25c402257f31ebe6)
2007-10-10 13:17:08 -05:00
Jelmer Vernooij
8017286589 r7037: Add enough pointers in the header file as well
Fix a couple of warnings.
(This used to be commit fcaa9d495c13af5065dd32f8ed65d4260b3a5539)
2007-10-10 13:17:07 -05:00
Jelmer Vernooij
55781cdce6 r7036: Allow more operations in several properties (such as size_is, length_is,
switch_is, etc) and simplify the code involved
(This used to be commit 86de98ee09348297f2c30ce15888ba5e5637c078)
2007-10-10 13:17:07 -05:00
Jelmer Vernooij
50d2bf0066 r7029: Make array support in pidl similar to that in other IDL compilers. We should
now able to use constructions like these:

[size_is(20)] int *x; -> Pointer to array of 20 ints
[size_is(20)] int x[]; -> Array of 20 ints
[size_is(20)] int *x[]; -> Array of 20 pointers to ints
[size_is(20,)] int *x[] -> Array of 20 pointers to ints
[size_is(,20)] int *x[]; -> Pointer to array of 20 ints
[size_is(,20)] int **x; -> Pointer to pointer to array of 20 ints
[size_is(20)] int x[][30]; -> 20 blocks of 30 ints
(This used to be commit ecf583da71c2f80be124c17fccdcb284b47e0695)
2007-10-10 13:17:07 -05:00
Andrew Tridgell
38c2164f68 r7023: reduced the number of warnings in building ejs and esp
(This used to be commit ef998f9f8fb9759e5a4572acb3f9038efc019e5e)
2007-10-10 13:17:07 -05:00
Jelmer Vernooij
aba7014e41 r7022: Add support for parsing definitions of multi-dimension arrays.
This will also be required for supporting
parsing pointers to arrays and arrays of pointers simultaneously.
(This used to be commit a34f848b02a6e8284d62532a792a5136e846fe8f)
2007-10-10 13:17:07 -05:00
Andrew Tridgell
4979181861 r7019: - added esp call lpServices() which returns a list of services in smb.conf.
- added a test of lpServices() in the esptest scripts
(This used to be commit 94308d8fed7796ddfc32883a1c27ec8ebfff842d)
2007-10-10 13:17:07 -05:00
Andrew Tridgell
590f56d564 r7018: take advantage of the server[TLS_SUPPORT] variable to auto-redirect the home
page of swat to https:// if TLS is initialised OK
(This used to be commit 519bdcac966755b18990ec5382838b2130394daf)
2007-10-10 13:17:07 -05:00
Andrew Tridgell
67a38fc159 r7017: added a esp variable server['TLS_SUPPORT'] which tells the script if the server
can support TLS. This will allow us to auto-redirect if a user connects using the
wrong protocol
(This used to be commit fbf4552cd5e27863ee1de7d03e4da0fc10f429df)
2007-10-10 13:17:06 -05:00
Andrew Tridgell
f466b72222 r7016: - added smb.conf parm 'web tls = true/false'
- by default enable tls if the certfile is set in smb.conf and gnutls library
  was compiled in
(This used to be commit bbafdeae3a68c0ff1170b0a4ecc568664ec1a925)
2007-10-10 13:17:06 -05:00
Andrew Tridgell
5ad5d0fb43 r7015: use a scripting trick to force images to be sent with http instead of https, which
should make the server more responsive
(This used to be commit 814c3674f8e0aa20fb3ee3657173bab05d7f3ded)
2007-10-10 13:17:06 -05:00
Andrew Tridgell
b63ce2f479 r7014: added Content-Length header to both esp and non-esp output
(This used to be commit e0673dcfc0056b3a1b72ef0b10d82948ca8c9819)
2007-10-10 13:17:06 -05:00
Andrew Tridgell
ebb0b35242 r7013: added tls support to the builtin web server. It auto-detects if the client
is using tls by looking at the first byte on the connection. This allows
both https and http services to be on the same port
(This used to be commit 6369dfb6585ce4d4e3028c557395f2d73c290c92)
2007-10-10 13:17:06 -05:00
Andrew Tridgell
631f9782a6 r7012: added smb.conf parameters
web tls keyfile
  web tls certfile
  web tls cafile
  web tls crlfile
(This used to be commit abfa3e9179557cf1853f490a479a0003ce4e11f7)
2007-10-10 13:17:06 -05:00
Andrew Tridgell
30a5e1c1dc r7011: when using macros, the parameters should be specified unless its a
varargs function you are replacing. Otherwise if you have any
structure element called "socket" and you have a macro for "socket"
then the code will fail.
(This used to be commit 9b33d0ca583b0cc1602662220cade96b70c98306)
2007-10-10 13:17:06 -05:00
Tim Potter
9b8c012392 r7010: Merge libcli/libsmb.mk into libcli/config.mk
(This used to be commit d7d48adce9628ee7a0d2f8ac3504745aaeb912b9)
2007-10-10 13:17:05 -05:00