Solved

Windows logon and Webpages

Posted on 2003-10-29
6
161 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
  • 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 500 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RSS Feeds--IE 13 185
Share post from Facebook Tab Application 6 41
How to i line up css containers from left to right 35 23
Grunt Copy file to another destination. 1 55
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

792 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