Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7401925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:36:37+00:00 2026-05-29T04:36:37+00:00

I have a security.conf file that requires users to login whenever they visit my

  • 0

I have a security.conf file that requires users to login whenever they visit my site.
Now I want the php pages to only show certain links to the users that are in the admins group in my .htgroup file. So the question is how do I get the group(s) that a user, that was authenticated by apache, is in, for use in my php scripts.

my .htgroup file looks like this
admins: user1 user2
users: user1 user2 user3 user4 user 5….

so it IS possible that a user is part of multiple groups because for certain parts of the site I only require that the person is a user. Other parts of the site I require that he/she is an admin, and for some parts I require a specific user.

If you have any ideas I would really appreciate it.

Thanks, Tom

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T04:36:38+00:00Added an answer on May 29, 2026 at 4:36 am

    $_SERVER['REMOTE_USER'] will contain the Apache-authenticated username.

    You can parse the .htgroup file to determine to which groups that corresponds, or connect to (and query) the original source of the group information. So far as I know, it’s not handed from Apache to PHP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to see users that have certain security role assigned? I'm
I have a security descriptor for an object. I want to get users and
I have a /etc/security/limits.conf file as follows manu - memlock unlimited manu - rtprio
I have a security consultant demanding that we implement encrypted connections to mySQL. He
In my project,I have integrated Spring Security with CAS server authentication. Now my project
I have problem with WebService client that has to use WS-Security. My client is
I have a JCEKS keystore that I am loading from a war file as
We have security set up for an intranet site as follows through active directory.
I have a security problem. I think to lock a table would be a
I have a security function which is part of a script. It's supposed to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.