Stefan Metzmacher
9a1a00199c
s4:web_server: use tsocket_address functions to get the local ip and port
...
metze
2010-04-27 17:05:30 +02:00
Andrew Tridgell
b0fb567f04
s4-waf: more dependencies on talloc
...
these are needed so we can support a system talloc without using the
bundled talloc.h
2010-04-06 20:27:13 +10:00
Andrew Tridgell
f9eae32f4b
s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them
2010-04-06 20:27:11 +10:00
Andrew Tridgell
845e0cbe6f
build: commit all the waf build files in the tree
2010-04-06 20:26:48 +10:00
Matthias Dieter Wallnöfer
e34637b2a6
s4:Remove "Py_RETURN_NONE" compatibility code
...
This was needed only by Python 2.3 which we no longer support.
2010-02-09 17:53:09 +01:00
Andrew Tridgell
3050f83288
s4-python: we need to include Python.h first
...
If we don't include Python.h first then we get a pile of warnings due
to broken redefines of XOPEN_SOURCE in the Python includes.
2009-10-23 16:23:01 +11:00
Andrew Tridgell
e9a589feac
s4-server: kill main daemon if a task fails to initialise
...
When one of our core tasks fails to initialise it can now ask for the
server as a whole to die, rather than limping along in a degraded
state.
2009-09-18 18:05:55 -07:00
Stefan Metzmacher
d9c30894a1
s4:service_stream: s/private/private_data
...
metze
2009-02-02 13:09:00 +01:00
Stefan Metzmacher
1441e87e24
s4:service_task: s/private/private_data
...
metze
2009-02-02 13:08:59 +01:00
Stefan Metzmacher
62c8f6b1a5
s4:web_server: s/private/private_data
...
metze
2009-02-02 13:08:50 +01:00
Stefan Metzmacher
100f4e318e
s4:web_server: s/private/private_data
...
metze
2009-02-02 13:08:37 +01:00
Jelmer Vernooij
ba5d6e6d70
Avoid using a utility header for Python replacements included in Samba,
...
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-08 12:20:20 +01:00
Tim Prouty
61a23c5eea
s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4
2009-01-07 15:03:16 -08:00
Jelmer Vernooij
d2c70d24e1
py: Properly increase the reference counter of Py_None.
2009-01-06 04:13:57 +01:00
Stefan Metzmacher
183c379fe5
s4:lib/tevent: rename structs
...
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"
for s in $list; do
o=`echo $s | cut -d ':' -f1`
n=`echo $s | cut -d ':' -f2`
r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
for f in $files; do
cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
mv $f.tmp $f
done
done
metze
2008-12-29 20:46:40 +01:00
Jelmer Vernooij
bd64688c6a
Fix more compiler warnings in various places.
2008-12-23 22:57:11 +01:00
Jelmer Vernooij
c023828962
Fix missing symbols issues when building with shared libraries.
2008-12-22 21:03:09 +01:00
Jelmer Vernooij
9565999755
Fix include paths to new location of libutil.
2008-10-11 21:31:42 +02:00
Jelmer Vernooij
6a689c23e8
Rename smbd -> samba.
...
This reverts commit 05ea5e23cf
.
Conflicts:
source4/smbd/server.c
2008-09-24 03:16:15 +02:00
Stefan Metzmacher
1d92b2211c
s4: allways initialize the process model before it's used
...
metze
2008-09-22 18:16:09 +02:00
Jelmer Vernooij
05ea5e23cf
Revert "Rename smbd -> samba."
...
This reverts commit 0e9008be35
.
2008-09-21 21:32:40 +02:00
Jelmer Vernooij
0e9008be35
Rename smbd -> samba.
2008-09-21 21:26:40 +02:00
Jelmer Vernooij
bbfce1b43d
Allow SWAT to be run outside of smbd.
2008-09-21 20:06:18 +02:00
Jelmer Vernooij
f3d513b378
Support POST requests again, provide more variables in environment.
2008-09-21 20:01:00 +02:00
Jelmer Vernooij
ef8d9f8a75
Make standard SWAT script print received headers.
2008-09-21 20:00:44 +02:00
Jelmer Vernooij
1ed040d8e2
First GET request works. SWAT now displays a Hello world message.
2008-09-21 19:03:12 +02:00
Jelmer Vernooij
4141e70da9
Properly call WSGI request handler when requests come in.
2008-09-21 18:45:09 +02:00
Jelmer Vernooij
1271066234
Remove support for ESP in the web server.
2008-09-21 16:53:29 +02:00
Jelmer Vernooij
fda85985e9
Remove some dependencies of the web server on esp.
2008-09-21 16:03:52 +02:00
Jelmer Vernooij
2df040d899
Add input / error stream objects in WSGI implementation.
2008-09-21 16:03:52 +02:00
Jelmer Vernooij
a4e8ff7429
Add more parts of the WSGI implementation.
2008-09-21 16:03:52 +02:00
Jelmer Vernooij
4bb17b60ef
Add initial work on WSGI support in the web server.
2008-09-21 16:03:52 +02:00
Jelmer Vernooij
ef5a04485a
Rename http to esp, in preparation of adding a python backend.
2008-09-21 16:03:52 +02:00
Jelmer Vernooij
197870a731
Remove remaining embedded JavaScript support.
2008-09-16 18:05:53 +02:00
Jelmer Vernooij
58b1ab92a1
Fix import.
...
(This used to be commit 17231443a0
)
2008-05-26 05:15:19 +02:00
Jelmer Vernooij
4c70cda986
Fix a couple (well, little more than that..) of typos.
...
(This used to be commit a6b5211994
)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147
Create prototype headers from Makefile directory, without smb_build in the middle.
...
(This used to be commit f4a77b96f9
)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
03643aec88
Use variables for source directory in a couple more places.
...
(This used to be commit c41bd3005f
)
2008-05-18 19:54:27 +02:00
Jelmer Vernooij
fb6fdfce37
Fix the build.
...
(This used to be commit f2e4974471
)
2008-03-08 17:02:40 +01:00
Jelmer Vernooij
b29d47edcf
Move object file lists to the Makefile.
...
(This used to be commit a7e6d2a183
)
2008-03-03 18:25:28 +01:00
Andrew Bartlett
0f8eeb81ec
Remove useless layer of indirection, where every service called
...
task_service_init() manually. Now this is called from service.c for
all services.
Andrew Bartlett
(This used to be commit 9c9a4731ca
)
2008-02-04 21:58:29 +11:00
Andrew Bartlett
23d681caf9
Rework service init functions to pass down service name. This is
...
needed to change prefork behaviour based on what service is being
started.
Andrew Bartlett and David Disseldorp
(This used to be commit 0d830580e3
)
2008-02-04 17:48:51 +11:00
Jelmer Vernooij
df408d056e
r26672: Janitorial: Remove uses of global_loadparm.
...
(This used to be commit 18cd08623e
)
2008-01-05 13:06:03 -06:00
Jelmer Vernooij
70f1f33af8
r26402: Require a talloc context in libnetif.
...
(This used to be commit a35e51871b
)
2007-12-21 05:49:33 +01:00
Jelmer Vernooij
6f2252dace
r26401: Don't cache interfaces context in libnetif.
...
(This used to be commit 9f975417cc
)
2007-12-21 05:49:32 +01:00
Jelmer Vernooij
c5bf20c5fe
r26325: Remove use of global_loadparm in netif.
...
(This used to be commit e452cb2859
)
2007-12-21 05:48:37 +01:00
Jelmer Vernooij
2f5ca872a8
r26313: Fix more uses of static loadparm.
...
(This used to be commit 6fd0d9d3b7
)
2007-12-21 05:48:25 +01:00
Jelmer Vernooij
509e82e402
r26272: Remove global_loadparm in some more places.
...
(This used to be commit 1ab76ecc53
)
2007-12-21 05:47:55 +01:00
Jelmer Vernooij
bbdfbf8d9d
r26238: Add a loadparm context parameter to torture_context, remove more uses of global_loadparm.
...
(This used to be commit a33a553054
)
2007-12-21 05:47:20 +01:00
Jelmer Vernooij
291ddf4336
r26237: Add loadparm context to the server service interface.
...
(This used to be commit 1386c5c925
)
2007-12-21 05:47:15 +01:00
Jelmer Vernooij
934e932387
r26235: Avoid global_loadparm.
...
(This used to be commit e903978220
)
2007-12-21 05:47:13 +01:00
Jelmer Vernooij
f4a1083cf9
r26227: Make loadparm_context part of a server task, move loadparm_contexts further up the call stack.
...
(This used to be commit 0721a07aad
)
2007-12-21 05:47:04 +01:00
Jelmer Vernooij
efa384375f
r25454: Use standard bool types in a couple more places.
...
(This used to be commit 9243b551f3
)
2007-10-10 15:07:38 -05:00
Jelmer Vernooij
60a1046c5c
r25430: Add the loadparm context to all parametric options.
...
(This used to be commit fd697d77c9
)
2007-10-10 15:07:31 -05:00
Jelmer Vernooij
37d53832a4
r25398: Parse loadparm context to all lp_*() functions.
...
(This used to be commit 3fcc960839
)
2007-10-10 15:07:25 -05:00
Jeremy Allison
9a012df08e
r25175: Change to talloc_asprintf_append_buffer().
...
Jeremy.
(This used to be commit 0844dbf597
)
2007-10-10 15:06:46 -05:00
Andrew Bartlett
15c1801a5c
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
(This used to be commit cda965e908
)
2007-10-10 15:05:50 -05:00
Jelmer Vernooij
98b57d5eb6
r25035: Fix some more warnings, use service pointer rather than service number in more places.
...
(This used to be commit df9cebcb97
)
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
ffeee68e4b
r25026: Move param/param.h out of includes.h
...
(This used to be commit abe8349f9b
)
2007-10-10 15:05:38 -05:00
Jelmer Vernooij
0b91f39164
r24780: More work allowing libutil to be used by external users.
...
(This used to be commit 31993cf67b
)
2007-10-10 15:03:10 -05:00
Jelmer Vernooij
61ffa08f4c
r24712: No longer expose the 'BOOL' data type in any interfaces.
...
(This used to be commit 1ce32673d9
)
2007-10-10 15:02:54 -05:00
Andrew Tridgell
0479a2f1cb
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.
(This used to be commit fcf38a38ac
)
2007-10-10 14:59:12 -05:00
Stefan Metzmacher
35ffca8932
r22403: this dependencies should be private
...
metze
(This used to be commit c3cc03ffb2
)
2007-10-10 14:51:14 -05:00
Stefan Metzmacher
71f6a4d05b
r20816: merge from samba3:
...
include setjmp.h via system/wait.h
metze
(This used to be commit 1b10cbb629
)
2007-10-10 14:43:35 -05:00
Derrell Lipman
2c5a1e6bdd
r20723: Web Application Framework
...
- Clearly no one has ever tried to obtain the Referer from the web server
before. :-)
- Send the Referer from the web application, in preparation for later security
updates. (These updates are not immediately necessary, as ScriptTransport
is disabled and we check the content type on XmlHttpTransport. This isn't
anything to worry about.)
(This used to be commit 33c07f4b92
)
2007-10-10 14:40:31 -05:00
Derrell Lipman
d0d846cd9b
r20519: Web Application Framework
...
- No path given to web server means use old scripts (missed check-in)
- Build Web Application (qooxdoo stuff) from autogen.sh since python isn't
available or is differently-configured on various build-farm machines
- Don't continually check in generated files
- Properly identify SWAT "Statistics" module as "Status and Statistics"
(This used to be commit 9d89b7663a
)
2007-10-10 14:36:10 -05:00
Derrell Lipman
43470b5ec3
r20444: WEB Application framework / SWAT.
...
We're now at the stage where the web application framework should build and
install automatically.
Derrell
(This used to be commit 0201baef46
)
2007-10-10 14:30:39 -05:00
Derrell Lipman
68453d1da2
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
(This used to be commit 2406af1079
)
2007-10-10 14:21:33 -05:00
Andrew Bartlett
46aa292ecf
r19225: 30 seconds is too short for a Samba4 provision to finish. Make the
...
timeout longer.
Andrew Bartlett
(This used to be commit cc03ffd0e9
)
2007-10-10 14:20:55 -05:00
Derrell Lipman
1c681891b2
r19165: handle errors better for jsonrpc. generate an error object whenever possible
...
(This used to be commit aa8e4227a1
)
2007-10-10 14:20:47 -05:00
Derrell Lipman
213f0d62f1
r19139: typos; consitent ordering of operations
...
(This used to be commit aaab47cb91
)
2007-10-10 14:20:38 -05:00
Andrew Tridgell
53bb89680c
r19111: fixed basic web server operation
...
(This used to be commit 290468ede5
)
2007-10-10 14:20:35 -05:00
Derrell Lipman
94eddd62ad
r19059: allow dash in URLs
...
(This used to be commit 3dade8d761
)
2007-10-10 14:20:32 -05:00
Derrell Lipman
882d352151
r19051: JSON-RPC server work-in-progress. It's almost working.
...
(This used to be commit 6e9cb2ed1c
)
2007-10-10 14:20:31 -05:00
Stefan Metzmacher
315f04caa8
r18944: talloc_reference() can fail...
...
(remove compiler warning)
metze
(This used to be commit 515f4eb1ce
)
2007-10-10 14:20:23 -05:00
Derrell Lipman
c5718959e6
r18880: JSON-RPC work in progress
...
(This used to be commit 34bffbaebf
)
2007-10-10 14:20:17 -05:00
Jelmer Vernooij
0329d755a7
r17930: Merge noinclude branch:
...
* Move dlinklist.h, smb.h to subsystem-specific directories
* Clean up ads.h and move what is left of it to dsdb/
(only place where it's used)
(This used to be commit f7afa1cb77
)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
a2eca9174c
r17586: merge lib/netif into lib/socket and use -lnsl -lsocket on the
...
configure check for the interfaces.
should fix the build on some old sun boxes
metze
(This used to be commit f20e251bfd
)
2007-10-10 14:15:39 -05:00
Stefan Metzmacher
9b6f35edbf
r17339: pass the event context and messaging context together to the
...
smb ejs functions
metze
(This used to be commit 0397911b41
)
2007-10-10 14:15:16 -05:00
Andrew Bartlett
84b0eb6a57
r17286: Simply fail the tls_initialise if we don't have TLS compiled in.
...
Adjust the web_server code to cope with this.
Andrew Bartlett
(This used to be commit 3043969708
)
2007-10-10 14:15:06 -05:00
Andrew Tridgell
92acfc0799
r15855: more talloc_set_destructor() typesafe fixes. nearly done ...
...
(This used to be commit 396d82a231
)
2007-10-10 14:08:33 -05:00
Andrew Bartlett
742c110cd6
r15400: Move the TLS code behind the socket interface.
...
This reduces caller complexity, because the TLS code is now called
just like any other socket. (A new socket context is returned by the
tls_init_server and tls_init_client routines).
When TLS is not available, the original socket is returned.
Andrew Bartlett
(This used to be commit 09b2f30dfa
)
2007-10-10 14:05:32 -05:00
Jelmer Vernooij
806c5c9621
r15371: Revert some of my previous patch as it was breaking the plain build
...
(This used to be commit fac9871122
)
2007-10-10 14:05:28 -05:00
Jelmer Vernooij
47bf79eac5
r15370: Fix more dependencies for shared libs
...
(This used to be commit 9a518661fb
)
2007-10-10 14:05:27 -05:00
Jelmer Vernooij
b00c236906
r15301: Use static libraries internally. This required a few hacks in the build
...
system - these should be removed later on.
(This used to be commit 0654739166
)
2007-10-10 14:05:07 -05:00
Jelmer Vernooij
69b51f702a
r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
...
for REQUIRED_SUBSYSTEMS.
(This used to be commit adc8a019b6
)
2007-10-10 14:04:18 -05:00
Jelmer Vernooij
dab516d3e7
r14603: Fix building of ejs modules as shared libs
...
Fix calling of ejs_exception() without requiring --export-dynamic
(This used to be commit 8575e9a490
)
2007-10-10 13:58:59 -05:00
Jelmer Vernooij
9565c70898
r14567: Make some more functions public.
...
(This used to be commit 8e84e6cb6b
)
2007-10-10 13:58:48 -05:00
Jelmer Vernooij
2f65012d3d
r14500: Make some more functions public
...
(This used to be commit 867fc48922
)
2007-10-10 13:57:34 -05:00
Jelmer Vernooij
e3f2414cf9
r14380: Reduce the size of structs.h
...
(This used to be commit 1a16a6f1df
)
2007-10-10 13:57:16 -05:00
Jelmer Vernooij
c6519ad9c0
r14109: Modulify the smbcalls subsystem.
...
(This used to be commit d538eac9db
)
2007-10-10 13:56:51 -05:00
Stefan Metzmacher
651ca6553e
r14079: I just found the setproctitle library from alt linux:-)
...
- add set_title hook to the process models
- use setproctitle library in process_model standard if available
- the the title for the task servers and on connections
metze
(This used to be commit 526f20bbec
)
2007-10-10 13:56:49 -05:00
Stefan Metzmacher
c9e5d884fc
r13941: fix the build
...
metze
(This used to be commit d9da948b0f
)
2007-10-10 13:52:29 -05:00
Jelmer Vernooij
9bd7dd9121
r13926: More header splitups.
...
(This used to be commit 930daa9f41
)
2007-10-10 13:52:26 -05:00
Jelmer Vernooij
4ac2be9958
r13924: Split more prototypes out of include/proto.h + initial work on header
...
file dependencies
(This used to be commit 1228358767
)
2007-10-10 13:52:24 -05:00
Jelmer Vernooij
c389883ba2
r13902: Stricter checking for the -fvisibility flag
...
Add two more proto headers.
(This used to be commit 0c95bf0cd3
)
2007-10-10 13:52:21 -05:00
Andrew Bartlett
4222bee0ee
r12817: Create a ESP variable with the struct socket_address * in it, so we
...
can pass that do the auth subsystem.
Andrew Bartlett
(This used to be commit 699f06e5e8
)
2007-10-10 13:50:01 -05:00
Andrew Bartlett
81dc03b290
r12813: Remove unused file to avoid confusion. We now go via the auth
...
subsystem.
Andrew Bartlett
(This used to be commit 15a6f098ff
)
2007-10-10 13:49:59 -05:00
Andrew Bartlett
f55ea8bb3d
r12804: This patch reworks the Samba4 sockets layer to use a socket_address
...
structure that is more generic than just 'IP/port'.
It now passes make test, and has been reviewed and updated by
metze. (Thankyou *very* much).
This passes 'make test' as well as kerberos use (not currently in the
testsuite).
The original purpose of this patch was to have Samba able to pass a
socket address stucture from the BSD layer into the kerberos routines
and back again. It also removes nbt_peer_addr, which was being used
for a similar purpose.
It is a large change, but worthwhile I feel.
Andrew Bartlett
(This used to be commit 88198c4881
)
2007-10-10 13:49:57 -05:00
Jelmer Vernooij
5c8447773f
r12801: Some more include/ cleanups (remove unused macros + move files
...
to specific dirs)
(This used to be commit 243cf760b0
)
2007-10-10 13:49:57 -05:00