1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-05 12:23:50 +03:00
Commit Graph

4482 Commits

Author SHA1 Message Date
Andrew Tridgell
0c2e42986c r7107: detect when a users session has expired and set request['SESSION_EXPIRED'] 2007-10-10 13:17:17 -05:00
Andrew Tridgell
6ca3e3af89 r7104: add support into the web server for session[] variables without cookies by using
query strings
2007-10-10 13:17:17 -05:00
Stefan Metzmacher
46e3f57f0e r7103: fix make installswat again:-)
metze
2007-10-10 13:17:16 -05:00
Stefan Metzmacher
81c878b7b2 r7102: fix subcontext(0)
metze
2007-10-10 13:17:16 -05:00
Stefan Metzmacher
067f3a4da2 r7100: install lately added files too
metze
2007-10-10 13:17:16 -05:00
Stefan Metzmacher
189730d143 r7098: - make use of the NDR table instead of the IDL table in the client and server generation
- add 'noid' property to allow functions to be not present in the function table,
  and not generate client and server functions for them
- print out a warning about [id()] not being correctly supported yet

metze
2007-10-10 13:17:16 -05:00
Andrew Tridgell
6a876d6611 r7087: always run the /scripting/preauth.esp page before processing any
request. If this page produces any output then that output is sent to
the browser and the request is not processed

This allows us to ensure that all pages are authenticated
2007-10-10 13:17:14 -05:00
Andrew Tridgell
af97ded8d4 r7086: make include() recognise the ".esp" extension and include the file as
an esp script instead of as a ejs script
2007-10-10 13:17:14 -05:00
Andrew Tridgell
722950c213 r7085: fixed a bug in ejs with setting up the arguments[] array 2007-10-10 13:17:14 -05:00
Stefan Metzmacher
e1fa7ae6c8 r7084: - readd the work from rev 6516,6517,6572
- use a single list of scalars

- let "string" not be so special anymore

- fix support for "string_array"

metze
2007-10-10 13:17:14 -05:00
Tim Potter
6911e46c6a r7083: Add a ejs hook to the resolve_name() function.
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.
2007-10-10 13:17:14 -05:00
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
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
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
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
d6fa280808 r7055: automatically add the dn to all ldbSearch results 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 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
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