Solved

Windows logon and Webpages

Posted on 2003-10-29
6
158 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now