summaryrefslogtreecommitdiff
path: root/source4/web_server
Commit message (Collapse)AuthorAgeFilesLines
* source4/smbd: Do not overstamp the process model with "single"Gary Lockyer2017-10-191-8/+5
| | | | | | | | | Instead, except in RPC which is a special SNOWFLAKE, we rely on the struct service_details in the init function. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* source4/smbd: refactor the process model for preforkGary Lockyer2017-10-191-4/+11
| | | | | | | | | | | | | | | | | | Refactor the process model code to allow the addition of a prefork process model. - Add a process context to contain process model specific state - Add a service details structure to allow service to indicate which process model options they can support. In the new code the services advertise the features they support to the process model. The process model context is plumbed through to allow the process model to keep track of the supported options, and any state the process model may require. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* s4: Add TALLOC_CTX * to register_server_service().Jeremy Allison2017-05-111-1/+1
| | | | | | | | Use the passed in context from callers. Remove one talloc_autofree_context(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* lib: modules: Change XXX_init interface from XXX_init(void) to ↵Jeremy Allison2017-04-221-2/+2
| | | | | | | | | | | | | | | | | | | | XXX_init(TALLOC_CTX *) Not currently used - no logic changes inside. This will make it possible to pass down a long-lived talloc context from the loading function for modules to use instead of having them internally all use talloc_autofree_context() which is a hidden global. Updated all known module interface numbers, and added a WHATSNEW. Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Ralph Böhme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Apr 22 01:17:00 CEST 2017 on sn-devel-144
* python: Remove Python 2.4 support macrosAndrew Bartlett2016-01-071-7/+0
| | | | | | | We require Python 2.6 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
* web_server: Fix server not to segfault on startupAndrew Bartlett2015-08-311-1/+2
| | | | | | | | Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Aug 31 04:11:55 CEST 2015 on sn-devel-104
* web_server: Use talloc_get_type_abort()Andrew Bartlett2015-08-311-7/+7
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Pair-programmed-with: Garming Sam <garming@catalyst.net.nz>
* s4:lib/socket: simplify iface_list_wildcard() and its callersStefan Metzmacher2014-03-071-2/+2
| | | | | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=10464 Signed-off-by: Stefan Metzmacher <metze@samba.org> Change-Id: Ib317d71dea01fc8ef6b6a26455f15a8a175d59f6 Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Mar 7 02:18:17 CET 2014 on sn-devel-104
* Move python modules from source4/scripting/python/ to python/.Jelmer Vernooij2013-03-021-1/+1
| | | | | | | Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat Mar 2 03:57:34 CET 2013 on sn-devel-104
* wsgi: Serve '500 Internal Server Error' page when errors occur.Jelmer Vernooij2012-12-051-0/+19
| | | | | Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Wed Dec 5 18:40:25 CET 2012 on sn-devel-104
* web_server: Make second argument to websrv_output const.Jelmer Vernooij2012-12-052-2/+2
|
* wsgi: When encountering error in Python code, print traceback to logs.Jelmer Vernooij2012-12-051-9/+52
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* web_server: the web server is not multi-process, indicate so in WSGI.Jelmer Vernooij2012-11-221-1/+1
| | | | | | This is a requirement for some of the paster middleware used by SWAT2. Reviewed-by: Matthieu Patou <mat@matws.net>
* web_server: Properly decrement reference counters for python objects in wsgi.Jelmer Vernooij2012-11-221-29/+81
| | | | Reviewed-by: Matthieu Patou <mat@matws.net>
* web_server: Properly set SCRIPT_NAME and PATH_INFO.Jelmer Vernooij2012-11-221-2/+5
| | | | Reviewed-by: Matthieu Patou <mat@matws.net>
* web_server: Create a string object for SERVER_PORT variable.Jelmer Vernooij2012-11-221-1/+1
| | | | | | This matches the behaviour of other wsgi server implementations. Reviewed-by: Matthieu Patou <mat@matws.net>
* web_server/wsgi: Don't segfault when wsgi app doesn't return iterable.Jelmer Vernooij2012-11-221-0/+5
| | | | | | | There is a bug in the application if this happens, but invalid Python code shouldn't cause segfaults. Reviewed-by: Matthieu Patou <mat@matws.net>
* Introduce system MIT krb5 build with --with-system-mitkrb5 option.Alexander Bokovoy2012-05-231-0/+2
| | | | | | | | | | | | | | | | | System MIT krb5 build also enabled by specifying --without-ad-dc When --with-system-mitkrb5 (or --withou-ad-dc) option is passed to top level configure in WAF build we are trying to detect and use system-wide MIT krb5 libraries. As result, Samba 4 DC functionality will be disabled due to the fact that it is currently impossible to implement embedded KDC server with MIT krb5. Thus, --with-system-mitkrb5/--without-ad-dc build will only produce * Samba 4 client libraries and their Python bindings * Samba 3 server (smbd, nmbd, winbindd from source3/) * Samba 3 client libraries In addition, Samba 4 DC server-specific tests will not be compiled into smbtorture. This in particular affects spoolss_win, spoolss_notify, and remote_pac rpc tests.
* s4:misc: remove last usage of legacy event_ fn namesSimo Sorce2011-08-141-4/+4
| | | | | Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Sun Aug 14 00:38:13 CEST 2011 on sn-devel-104
* s4-ipv6: update callers to load_interface_list()Andrew Tridgell2011-06-061-1/+1
|
* s4-webserver: fixed a talloc reference error on startup failureAndrew Tridgell2011-06-062-3/+4
|
* s4-ipv6: use "ip" instead of "ipv4" for serversAndrew Tridgell2011-06-061-1/+1
| | | | | this allows stream_setup_socket() to work with both v4 and v6 addresses
* s4-ipv6: use iface_list_wildcard() to listen on IPv6Andrew Tridgell2011-06-061-7/+17
| | | | | when we need to listen on a wildcard address, we now listen on a list of sockets, usually 0.0.0.0 and ::
* s4-interfaces Rename interfaces code so not to conflict with source3/Andrew Bartlett2011-05-081-3/+3
| | | | | | | | | The iface_count, iface_n_bcast, and load_interfaces functions conflicted with functions of the same name in source3, so the source4 functions were renamed. Hopefully we can actually wrap one around the other in future. Andrew Bartlett
* source4/: Fix prototypes for all functions in various subsystems.Jelmer Vernooij2011-03-191-0/+2
|
* s4-python Don't force "bin" into the python sys.pathAndrew Bartlett2011-02-071-1/+2
| | | | | | | | | This patch uses the fact that dyn_PYTHONDIR and dyn_PYTHONARCHDIR is now set properly at all times, incluidng for installed and build-directory binaries. So we don't need to make assumptions about bin being magic any more. Andrew Bartlett
* web_server: Fix initialization.Jelmer Vernooij2011-01-171-3/+6
|
* web_server: Avoid references to swat. Load samba.web_server instead.Jelmer Vernooij2011-01-172-44/+8
|
* s4:web_server - immeditately assign "wdata" as private data for the stream ↵Matthias Dieter Wallnöfer2011-01-141-11/+11
| | | | | | | | | socket This fixes bug #7887. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Jan 14 22:33:13 CET 2011 on sn-devel-104
* s4-python: Only set BASETYPE flag if subclassing is supported.Jelmer Vernooij2011-01-011-3/+3
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Jan 1 03:39:58 CET 2011 on sn-devel-104
* s4:dsdb/pydsdb.c and web_server/wsgi.c - remove accidentally introduced ↵Matthias Dieter Wallnöfer2010-12-121-4/+0
| | | | | | | Py_RETURN_NONE This was only thought for Python 2.3 which we generally no longer support (only pyldb in the LDB library is an exception).
* s4:web_server/*.c - optimise includesMatthias Dieter Wallnöfer2010-12-122-8/+2
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Dec 12 18:23:05 CET 2010 on sn-devel-104
* s4:web_server/wsgi.c - fix a counter typeMatthias Dieter Wallnöfer2010-12-121-1/+1
|
* s4:web_server/wsgi.c - add missing Python compatibility codeMatthias Dieter Wallnöfer2010-12-121-0/+11
|
* cldap: Build as shared module.Jelmer Vernooij2010-11-151-1/+1
|
* s4-server: make server sockets a child of the task contextAndrew Tridgell2010-11-151-2/+3
| | | | | | | | | | | | We previously allocated sockets as direct children of the event context. That led to crashes if a service called task_server_terminate(), as it left the socket open and handling events for a dead protocol. Making them a child of the task allows the task to terminate and take all its sockets with it. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* web_server: Build as module.Jelmer Vernooij2010-11-143-8/+14
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Nov 14 17:58:05 UTC 2010 on sn-devel-104
* s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij2010-10-311-14/+0
| | | | | | | | The new waf-based build system now has all the same functionality, and the old build system has been broken for quite some time. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
* s4-smbd: don't initialise process models more than onceAndrew Tridgell2010-10-301-1/+1
| | | | | | | | | this also removes the event_context parameter from process model initialisation. It isn't needed, and is confusing when a process model init can be called from more than one place, possibly with different event contexts. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-waf: removed dependencies on missing subsystemsAndrew Tridgell2010-10-211-1/+1
| | | | these were left over from the old config.mk system
* wafsamba: Fix handling of pyembed/pyext.Jelmer Vernooij2010-10-101-11/+12
|
* wafsamba: Clarify needs_python argument name, use pyembed/pyext whereJelmer Vernooij2010-10-101-3/+3
| | | | | | | | | applicable. Allow using both pyembed and pyext, to prevent unresolved symbols. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 10 03:54:01 UTC 2010 on sn-devel-104
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-7/+7
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-python: python is not always in /usr/binAndrew Tridgell2010-06-241-1/+1
| | | | | | | | Using "#!/usr/bin/env python" is more portable. It still isn't ideal though, as we should really use the python path found at configure time. We do that in many places already, but some don't. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* web_server: Don't build wsgi support as python module but rather asJelmer Vernooij2010-06-181-2/+3
| | | | subsystem so we don't install it into /usr/lib.
* s4:web_server/wsgi.c - free the "env" and "inputstream" objects on an ↵Matthias Dieter Wallnöfer2010-05-301-0/+2
| | | | "asprintf" failure
* s4:web_server/wsgi.c - provide a better out-of-memory handling for an ↵Matthias Dieter Wallnöfer2010-05-281-1/+2
| | | | "asprintf" call
* s4:web_server/wsgi.c - fix "asprintf" callMatthias Dieter Wallnöfer2010-05-281-1/+3
|
* s4:web_server: use tsocket_address functions to get the local ip and portStefan Metzmacher2010-04-283-7/+13
| | | | | metze (cherry picked from commit 9a1a00199c2603376eacfdba7e7d0d55bc64f405)
* Revert "s4:web_server: use tsocket_address functions to get the local ip and ↵Matthias Dieter Wallnöfer2010-04-271-11/+5
| | | | | | | | port" This reverts commit 9a1a00199c2603376eacfdba7e7d0d55bc64f405. This broke the build.