As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
Let me see if I can explain what I would like to do in as few words as possible.
I have the WF Server setup so that it will authenticate users against the SYSOP (Windows Domain). I have an application which only a certain set of users are allowed to access. I am using an HTML page with the WF_SIGNON action to process the logon credentials. The problem I am having is when a user enters valid credentials based on the Windows Domain but is NOT in the group that has permissions to a specific directory containing the application files. After a valid logon, the WF Server attempts to run a focexec. I need to check to see if the user has access to the directory before attempting to run a focexec from that directory. If the user is validated but does not have access to the directory with the focexec, WF returns your standard focexec not found message. I want to check privileges before attempting the execution so that I can pass back a nice message saying they do not have access to the application.
Is there any technique to verify that a user has access to a directory before attempting to run a focexec located in that directory?
I am controlling the permissions using the Windows Directory security controls.
Please let me know if this isn't quite clear.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
Thanks for the suggestions. However, I am already doing this. After the logon is validated, the Application Profile FOCEXEC (executed via the _site_profile) which I created PREPENDS the necessary APP Directory to the APP PATH. The problem is that users whith valid credentials based on the SYSOP may not necessarily have access rights to the APP Directory at the OS level and therefore the FOCEXEC CANNOT BE FOUND when WF tries to execute it.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
Since you cannot check for the FOC227 error, how about doing a FILEDEF to a file in the APP folder and then doing a READ. You can then test &IORETURN to verify if the user has access.
Just a thought.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server