troubleshooting Question

Looking to read SM_USER variable from host headers using PHP

Avatar of PaulyWolly
PaulyWolly asked on
SoftwarePHPWeb Components
3 Comments1 Solution2636 ViewsLast Modified:
I have an application that uses an Oracle backend. The application uses PHP as the server side code to interact with the Database. Within this Oracle database I have a USER table with one of the fields called 'USER_NAME' which contains the 'user_name' for the contact, and another called ADMIN_ACCESS with Yes or No as the acceptable values in this field. If the user logging on has ADMIN_ACCESS == 'Yes' then they are authenticated to see ADMIN level controls and perform ADMIN level functions on the application.

My company uses SiteMinder to authenticate web users. According to info I have found, there is a variable called 'SM_USER' that is created by the SiteMinder agent, that contains the 'user_name' as a value passed back in to the HTTP header for the page they are trying to access.  

What I need to do is, using PHP, grab this value from the SM_USER variable in the header and then compare the value with the 'user_name' field in the Oracle database for this user logging on, so that the application can determine as to whether they have ADMIN_ACCESS or not, allowing me to direct their session accordingly.
ASKER CERTIFIED SOLUTION
ahoffmann

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros