mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
Replace hard-coded kdcproxy path with WSGI script
mod_wsgi has no way to import a WSGI module by dotted module name. A new kdcproxy.wsgi script is used to import kdcproxy from whatever Python version mod_wsgi is compiled against. This will simplify moving FreeIPA to Python 3 and solves an import problem on Debian. Resolves: https://pagure.io/freeipa/issue/6834 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
parent
1160dc5d8b
commit
2cd6788c3f
@ -1260,6 +1260,7 @@ fi
|
||||
# END
|
||||
%dir %{_usr}/share/ipa
|
||||
%{_usr}/share/ipa/wsgi.py*
|
||||
%{_usr}/share/ipa/kdcproxy.wsgi
|
||||
%{_usr}/share/ipa/*.ldif
|
||||
%{_usr}/share/ipa/*.uldif
|
||||
%{_usr}/share/ipa/*.template
|
||||
|
@ -16,9 +16,9 @@
|
||||
|
||||
WSGIDaemonProcess kdcproxy processes=2 threads=15 maximum-requests=5000 \
|
||||
user=kdcproxy group=kdcproxy display-name=%{GROUP}
|
||||
WSGIImportScript /usr/lib/python2.7/site-packages/kdcproxy/__init__.py \
|
||||
WSGIImportScript /usr/share/ipa/kdcproxy.wsgi \
|
||||
process-group=kdcproxy application-group=kdcproxy
|
||||
WSGIScriptAlias /KdcProxy /usr/lib/python2.7/site-packages/kdcproxy/__init__.py
|
||||
WSGIScriptAlias /KdcProxy /usr/share/ipa/kdcproxy.wsgi
|
||||
WSGIScriptReloading Off
|
||||
|
||||
<Location "/KdcProxy">
|
||||
|
@ -90,6 +90,7 @@ dist_app_DATA = \
|
||||
gssapi.login \
|
||||
ipa.conf.tmpfiles \
|
||||
gssproxy.conf.template \
|
||||
kdcproxy.wsgi \
|
||||
$(NULL)
|
||||
|
||||
kdcproxyconfdir = $(IPA_SYSCONF_DIR)/kdcproxy
|
||||
|
5
install/share/kdcproxy.wsgi
Normal file
5
install/share/kdcproxy.wsgi
Normal file
@ -0,0 +1,5 @@
|
||||
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
|
||||
"""WSGI entry point for kdcproxy
|
||||
"""
|
||||
from kdcproxy import application
|
||||
|
Loading…
Reference in New Issue
Block a user