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 6220225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:55:17+00:00 2026-05-24T07:55:17+00:00

I used to work for a bank, that had a very cool feature in

  • 0

I used to work for a bank, that had a very cool feature in it’s intranet. Once you logged in your computer, there were global variables set in PHP through Apache, and they contained the identity of the user that was logged on on the computer. Now I’m at a new job, and I’m wondering, how this thing worked! I would like to implement this kind of thing once again.

What I’m working with here:

  • FreeBSD server, version is unknown to me.
  • Apache 2.2 web server
  • PHP 5, some custom compilation, that for various reasons, I can’t upgrade or modify.
  • MS AD
  • All of the users logging on to their computers are using active directory, all are in the same domain.

What I used to have was something like this:

echo $_SERVER['username']

which would print the username of the user currently logged in.

Could someone explain, how this could be done?

P.S. If any of my server settings are not what is required, say so, because then I will have a reason to ask the bosses to give me one of my own, with more control.

  • 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-24T07:55:18+00:00Added an answer on May 24, 2026 at 7:55 am

    There’s lots of ways this might be implemented. However a lot of them depend on having control over the client as well as the server.

    Obvious sources of data include:

    • NTLM
    • Client side certificates
    • The Ident protocol (not very secure without the encryption extensions)
    • A long lasting cookie (again, not secure)
    • HTTP authentication methods

    However none of these explain how the value appeared in the session – this must have been implemented within the PHP code.

    So without knowing how it was implemented at your previous site we can’t tell you:

    • Whether it was secure and correctly implemented
    • how to replicate the behaviour

    Given your resource list, while it would be possible to implement authentication based on direct LDAP calls, passing the username and password through your application, I would strongly recommend using (e.g.) openId – but restricting the providers to just your openid provider – which would use the MSAD as the backend.

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

Sidebar

Related Questions

I used to work in JavaScript a lot and one thing that really bothered
I'm not used to work with values that should decrement every a timelapse like
This used to work for me, though I just recently formatted my computer and
I used to work at some place that could select a line of code,
So on my older work, I had always used the 'text' data type to
I am used to work in Struts Framework. The things there are pretty straight
I used to work with Hudson on my project, and lately I had to
I used to work with XAMPP to build PHP applications. Once I tried Zend
I used to work only with asp.net websites before. I know that in ASP.NET
This used to work on my last computer, but I created a CSR and

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.