1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

4533 Commits

Author SHA1 Message Date
Tim Potter
54051bf8bb r7082: Call load_interfaces() in smbscript initialisation. 2007-10-10 13:17:13 -05:00
Tim Potter
790a46f53b r7081: Add mprToInt() function. 2007-10-10 13:17:13 -05:00
Tim Potter
fcf177c86e r7080: Fix typo in error message. 2007-10-10 13:17:13 -05:00
Andrew Tridgell
ab27e58c08 r7079: remember to register the esp calls 2007-10-10 13:17:13 -05:00
Andrew Tridgell
45ea1b6441 r7078: - fix an uninitialised variable in smbscript
- fixed handle passing in the smb/ejs interface calls, so they can be called
  safely from esp
2007-10-10 13:17:13 -05:00
Andrew Tridgell
caceb31be8 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
2007-10-10 13:17:13 -05:00
Andrew Tridgell
9679f20272 r7076: added demos of using ARGV[] 2007-10-10 13:17:12 -05:00
Andrew Tridgell
3db568eb6b r7075: added support for ARGV[] in ejs scripts 2007-10-10 13:17:12 -05:00
Andrew Tridgell
92f85507df r7074: we should load all shares in smbscript 2007-10-10 13:17:12 -05:00
Andrew Tridgell
f1d0c00660 r7073: added some simple example scripts for use with smbscript 2007-10-10 13:17:12 -05:00
Andrew Tridgell
e59ae64f60 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
2007-10-10 13:17:12 -05:00
Andrew Tridgell
a58531dcf3 r7071: allow access to the current mpr memory context from ejs calls 2007-10-10 13:17:12 -05:00
Stefan Metzmacher
ccc4d51927 r7070: fix redirection when the client
doesn't send a 'Host' header

metze
2007-10-10 13:17:12 -05:00
Volker Lendecke
06d27a1921 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
2007-10-10 13:17:11 -05:00
Tim Potter
cebbce9bf5 r7068: Missed one! 2007-10-10 13:17:11 -05:00
Andrew Tridgell
9b568eb957 r7067: older versions of gnutls don't have GNUTLS_KP_TLS_WWW_SERVER 2007-10-10 13:17:11 -05:00
Tim Potter
f2e59d3adf r7066: Rename http_exception to ejs_exception. 2007-10-10 13:17:11 -05:00
Tim Potter
b83dc8fbfb r7065: Move ejs from web_server to lib so it can be shared with smbscript. 2007-10-10 13:17:11 -05:00
Tim Potter
805b6c7cf0 r7064: Clean up handle parameter passing after peeking at tridge's ejstest.c 2007-10-10 13:17:11 -05:00
Tim Potter
5e2458ae6c 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!
2007-10-10 13:17:10 -05:00
Tim Potter
e14c00c4c1 r7062: Merge scripting/swig/config.mk with scripting/config.mk 2007-10-10 13:17:10 -05:00
Tim Potter
3444cd5429 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().
2007-10-10 13:17:10 -05:00
Tim Potter
7568fcbfc5 r7060: Fix use of uninitialised variable. 2007-10-10 13:17:10 -05:00
Jelmer Vernooij
2b08c4b92b 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.
2007-10-10 13:17:10 -05:00
Simo Sorce
36d9054074 r7058: Add experimenthal pam authentication for web pages 2007-10-10 13:17:10 -05:00
Simo Sorce
1fb60dc07d r7057: remove some ^M at end of lines 2007-10-10 13:17:10 -05:00
Andrew Tridgell
624c7a76e8 r7056: added links to ejs and esp info pages 2007-10-10 13:17:09 -05:00
Andrew Tridgell
d6fa280808 r7055: automatically add the dn to all ldbSearch results 2007-10-10 13:17:09 -05:00
Andrew Tridgell
0fe835b16c r7054: added a example script showing ldbSearch() usage 2007-10-10 13:17:09 -05:00
Andrew Tridgell
1ba602e32b 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);
2007-10-10 13:17:09 -05:00
Andrew Tridgell
5654330b61 r7052: added a case insensitive str_list_check_ci() version of str_list_check() 2007-10-10 13:17:09 -05:00
Andrew Tridgell
7e6fbd4889 r7051: remove an unused file 2007-10-10 13:17:09 -05:00
Stefan Metzmacher
d2af8eaefa r7050: fix linking of smbd
metze
2007-10-10 13:17:09 -05:00
Andrew Tridgell
a4a5eea7b7 r7049: auto-create the private/tls/ directory on install 2007-10-10 13:17:08 -05:00
Andrew Tridgell
00b67efc99 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
2007-10-10 13:17:08 -05:00
Andrew Tridgell
f54533dfba r7047: rearranged the tls code a bit, and improved the error messages when it fails 2007-10-10 13:17:08 -05:00
Andrew Tridgell
5912cf2cd4 r7044: vance is right that mixing http and https elements gives a warning in IE 2007-10-10 13:17:08 -05:00
Andrew Bartlett
2a1426c52f r7043: Patch from Julien Kerihuel <j.kerihuel@openchange.org> to reenable
'obfustication' in the new PIDL.

Jelmer:  Can you double-check this?

Andrew Bartlett
2007-10-10 13:17:08 -05:00
Jelmer Vernooij
fcaa9d495c r7037: Add enough pointers in the header file as well
Fix a couple of warnings.
2007-10-10 13:17:07 -05:00
Jelmer Vernooij
86de98ee09 r7036: Allow more operations in several properties (such as size_is, length_is,
switch_is, etc) and simplify the code involved
2007-10-10 13:17:07 -05:00
Jelmer Vernooij
ecf583da71 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
2007-10-10 13:17:07 -05:00
Andrew Tridgell
ef998f9f8f r7023: reduced the number of warnings in building ejs and esp 2007-10-10 13:17:07 -05:00
Jelmer Vernooij
a34f848b02 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.
2007-10-10 13:17:07 -05:00
Andrew Tridgell
94308d8fed r7019: - added esp call lpServices() which returns a list of services in smb.conf.
- added a test of lpServices() in the esptest scripts
2007-10-10 13:17:07 -05:00
Andrew Tridgell
519bdcac96 r7018: take advantage of the server[TLS_SUPPORT] variable to auto-redirect the home
page of swat to https:// if TLS is initialised OK
2007-10-10 13:17:07 -05:00
Andrew Tridgell
fbf4552cd5 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
2007-10-10 13:17:06 -05:00
Andrew Tridgell
bbafdeae3a 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
2007-10-10 13:17:06 -05:00
Andrew Tridgell
814c3674f8 r7015: use a scripting trick to force images to be sent with http instead of https, which
should make the server more responsive
2007-10-10 13:17:06 -05:00
Andrew Tridgell
e0673dcfc0 r7014: added Content-Length header to both esp and non-esp output 2007-10-10 13:17:06 -05:00
Andrew Tridgell
6369dfb658 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
2007-10-10 13:17:06 -05:00