summaryrefslogtreecommitdiffstats
path: root/install/share
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2010-02-24 11:29:23 -0700
committerJason Gerard DeRose <jderose@redhat.com>2010-03-01 20:22:22 -0700
commit1d529a8d09a2577da9a3883572c2f8ae6dd04d58 (patch)
tree79f3ae824c739232b8c3ac835f04e3799ec4ce60 /install/share
parent942919bef77030b10a96cab66ab878a8a3d7ef10 (diff)
downloadfreeipa-1d529a8d09a2577da9a3883572c2f8ae6dd04d58.tar.gz
freeipa-1d529a8d09a2577da9a3883572c2f8ae6dd04d58.tar.xz
freeipa-1d529a8d09a2577da9a3883572c2f8ae6dd04d58.zip
Run ipaserver under mod_wsgi
Diffstat (limited to 'install/share')
-rw-r--r--install/share/Makefile.am1
-rw-r--r--install/share/wsgi.py13
2 files changed, 14 insertions, 0 deletions
diff --git a/install/share/Makefile.am b/install/share/Makefile.am
index e3e7cf606..92d50775f 100644
--- a/install/share/Makefile.am
+++ b/install/share/Makefile.am
@@ -38,6 +38,7 @@ app_DATA = \
unique-attributes.ldif \
schema_compat.uldif \
ldapi.ldif \
+ wsgi.py \
$(NULL)
EXTRA_DIST = \
diff --git a/install/share/wsgi.py b/install/share/wsgi.py
new file mode 100644
index 000000000..457d8e024
--- /dev/null
+++ b/install/share/wsgi.py
@@ -0,0 +1,13 @@
+"""
+WSGI appliction for IPA server.
+"""
+
+from ipalib import api
+api.bootstrap(context='server', debug=True, log=None)
+api.finalize()
+api.log.info('*** PROCESS START ***')
+import ipawebui
+ui = ipawebui.create_wsgi_app(api)
+
+# This is the WSGI callable:
+application = api.Backend.session