How to pass Kerberos tickets via Apache server to Python services

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



How to pass Kerberos tickets via Apache server to Python services



I am using Apache Server 2.4.6 configured to get user using mod_auth_kerb with the below configurations


mod_auth_kerb


<Location /my-web-site>
AuthType Kerberos
RequestHeader set X-Remote-User "%REMOTE_USERs" env=REMOTE_USER
RequestHeader set X-Auth-User "%AUTH_USERs" env=AUTH_USER
RewriteEngine On
RewriteCond %LA-U:REMOTE_USER (.+)
RewriteRule .* - [E=RU:%LA-U:REMOTE_USER,NS]
RequestHeader set X-Remote-User "%RUe" env=RU
RequestHeader set Remote-User "%RUe" env=RU
Header set Remote-User "%RUe" env=RU
AuthName "Kerberos Login"
KrbMethodNegotiate on
KrbMethodK5Passwd on
KrbLocalUserMapping off
KrbAuthRealms MY.REALM.COM
KrbServiceName Any
Krb5KeyTab /path/to/my-keytab
require valid-user
</Location>



I am able to resolve the username from Apache server and pass it to the my python services running in the back-end. However, now I need to send (or delegate) the Kerberos ticket to my back-end services.



Any pointers will be highly appreciated.









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard