× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Make sure QTMHHTTP has execute authority to each folder in the path "/QOpenSys/test/appl/bin"

I'd suggest just granting Public Execute authority to each folder in the path.
If you can't or won't grant Public Execute authority, then just make sure QTMHHTTP has it.

I was able to replicate the 403 after I removed public execute to the my /QOpenSys/.../ path.
And I was able to fix it after granting public or QTMHHTTP execute authority to the path.



From
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_71/rzaie/rzag3ch2enablesrvrcgipms.htm?view=embed

3. Ensure that your program has the correct authority using *PUBLIC, QTMHHTTP or QTMHHTP1.

If the UserID directive is not active, the server profile QTMHHTP1 needs access to the CGI program and all objects the program accesses. If the UserID directive is active, the UserID profile needs access to the CGI program and all objects the program accesses.



Chris Hiebert
Senior Programmer/Analyst
Disclaimer: Any views or opinions presented are solely those of the author and do not necessarily represent those of the company.


-----Original Message-----
From: WEB400 <web400-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Frenk Mo via WEB400
Sent: Wednesday, December 18, 2019 7:29 AM
To: web400@xxxxxxxxxxxxxxxxxx
Cc: Frenk Mo <frenkmo@xxxxxxxxx>
Subject: [WEB400] EIM and kerberos authentication in http


I need to know the username of remote users who accesses to the webserver via browser

I configured EIM on MYAS400 and the entries listed below are in keytab

krbsvr400/MYAS400@xxxxxxxxxx
HTTP/MYAS400@xxxxxxxxxx
HOST/MYAS400@xxxxxxxxxx
cifs/MYAS400@xxxxxxxxxx
krbsvr400/MYAS400.societa.it@xxxxxxxxxx
HTTP/MYAS400.SOCIETA.IT@xxxxxxxxxx
HOST/MYAS400.societa.it@xxxxxxxxxx
cifs/MYAS400.societa.it@xxxxxxxxxx


I have configured a webserver in /QOpenSys /QOpenSys/test and in /QOpenSys/test/appl/bin  I put a script  testcgi.sh  to run


Script testcgi.sh:

#!/QOpenSys/usr/bin/sh
echo "Content-type: text/plain\n\n<HTML>\n"
echo "---- test environment variable REMOTE_USER ----"
echo REMOTE_USER=[$REMOTE_USER] "\n"


I entered in httpd.conf  the entries for kerberos authentication

<Directory /QOpenSys/test/appl/bin>
   order allow,deny
   allow from all
   AuthType Kerberos
   PasswdFile %%KERBEROS%%
   UserID %%CLIENT%%
   Require valid-user
</Directory>
ScriptAlias /testcgi/         /QOpenSys/test/appl/bin/


when I run the script http://MYAS400/testcgi/testcgi.sh
I get the error 403

removing the entrances for KERBEROS authentication the script works correctly but REMOTE_USER variable is not set


can anyone help my ?
thanks

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.