?
Solved

Windows logon and Webpages

Posted on 2003-10-29
6
Medium Priority
?
165 Views
Last Modified: 2010-04-06
Hi,

I have an Apache Server serving PHP pages. Now when ever a user request for a page, I need to check if the user is logged onto a domain(all users are on Windows machine, webserver runs on Linux). If user is logged onto a domain grant acces else deny access.

Detail explanation.

1. User A logs into his computer (running Windows).
2. Request for say index.php on my web server.
3. Here is where I need help. Check user is logged in onto domain say mydomain.
    If user is logged in onto domain, allow access to index.php
   else deny access.

I need to know the answer asap pleas.

Thank You
0
Comment
Question by:team
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
6 Comments
 
LVL 3

Expert Comment

by:red010knight
ID: 9647915
Sounds to me that you are setting up an intraweb? If so, all you need to do is grab the IP address of the requesting party. And if the IP address belongs to the group you have set up.

If you are talking in regards to a secure website, like one does to get into EE. The simplest way though little security is involved is to have a cookie set upon login into the domain. The next thing is the use of a database interface where upon logging in the database is updated to state the user is logged in. Then all PHP has to do is verify that the user and the person logged in is the same.

Otherwise you can always set up an .htaccess file so that only people who know the username and password can get on.

Just a few ways to do what you are asking, hope it helps.
Red010Knight
0
 

Author Comment

by:team
ID: 9650616
Yes, I am setting up a intranet website.

As of now anybody can plug their computer in our nwtwork and access the intranet website or connect through VPN and access it. We want to restrict the access only to authorized users of our compnay and deny access to visitors. All the authorized users of the company are  login to a common domain say mydomain. So now when ever a request comes from someone not logged in to mydomain, deny access.
0
 
LVL 3

Accepted Solution

by:
red010knight earned 2000 total points
ID: 9651509
Do you have MySQL or another database application?

Or in your network settings, your network admin should be able to restrict the access of persons not registered to the server. The most secure way, is to get everyone's MAC address set up in a connection list. So that if Person A's computer is not on the MAC Address list, deny access to things in system and maybe allow for a tunnel through to the www. But what you are asking should be handled by your network admin or take it to the problem to the networking board.

If you want this to be handled via the domain, you need apache and set up a .htaccess file. Or have a user table set up with a database to control who logs in. The use of session ids would also be needed for this.

Hope this helps,
Red010Knight
0
 
LVL 3

Expert Comment

by:red010knight
ID: 9651525
BTW information on .htaccess can be found at:
http://httpd.apache.org/docs/howto/htaccess.html

Red010Knight
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question