mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 23:50:03 -06:00
d34db06377
Something went wrong with git subtree merge of the external freeipa-workshop repository. A couple of files accidently ended up in / instead of /doc/workshop/. Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
15 lines
473 B
Python
15 lines
473 B
Python
def application(environ, start_response):
|
|
start_response('200 OK', [('Content-Type', 'text/plain')])
|
|
remote_user = environ.get('REMOTE_USER')
|
|
|
|
if remote_user is not None:
|
|
yield "LOGGED IN AS: {}\n".format(remote_user).encode('utf8')
|
|
else:
|
|
yield b"NOT LOGGED IN\n"
|
|
|
|
yield b"\nREMOTE_* REQUEST VARIABLES:\n\n"
|
|
|
|
for k, v in environ.items():
|
|
if k.startswith('REMOTE_'):
|
|
yield " {}: {}\n".format(k, v).encode('utf8')
|