Solved

intranet to run on php and use active directory user credentials

Posted on 2009-07-08
4
428 Views
Last Modified: 2013-12-13
hi all,

havent really delved into intranets before, but im guessing the set up is pretty much the same, i put my web files in a directory and point the users to the server address?

how can i set up the servers intranet to run on php and how would i get user names from active directory into the intranet with different levels of access?

so user logs on to domain, intranet is home page, the website knows who they are and what pages there allowed to view on the intranet

Thanks
Alex
0
Comment
Question by:awilderbeast
  • 2
  • 2
4 Comments
 
LVL 9

Expert Comment

by:danyul_c
Comment Utility
I feel like the Zend Framework (http://framework.zend.com/) would suit you perfectly.

It will take a bit to learn it however using their authentication (Zend_Auth) and LDAP (Zend_Ldap and Zend_Auth_Ldap) modules you will be able to achieve Active Directory persistent authentication.

I've attached a basic Login processing class (that I use with flex) and the LDAP config file to show what sort of settings you need to use.

The Zend Reference guide provides some solid information on getting started with using Zend Framework. It may seem like overkill but you are not forced to use the entire thing, only the parts that you need.
Auth.zip
0
 
LVL 1

Author Comment

by:awilderbeast
Comment Utility
ok what im actually doing now is, we have a website hosted
now what im wondering, if possible

would i be able to use the users domain credentials to log into the hosts website using zend?
and what do i do?

do i use that sampe script you gave me, where do i use it?

thanks
0
 
LVL 9

Accepted Solution

by:
danyul_c earned 500 total points
Comment Utility
If you are authenticating against a domain it needs to be specified on the server side where you host the site. You would be able to authenticate against the domain as long as they have LDAP available to the outside of their firewall.

It's bad practise to have the entire server visible however you could forward a port through that zend can access.

The code in the scripts I gave you can be used in your finished product to perform authentication. I do strongly recommend that you read the getting started guide becuase it runs you through setting up the zend framework in a very basic manner so that it operates. Then you just go to the reference guide and look up the authentication section and it gives you examples on how to apply it in your situation.

The code inside the class that I gave you is very transportable. I have it set up like that so that I can authenticate with an AD server using Flex and PHP.

The app.ini file usually goes into a folder called /application/config (you will read about this in the getting started guide). You will need to change the server setting in the app.ini to match your setup and you can specify it to authenticate against as many servers as you need.

Zend is VERY large but as I said before, you dont need to use the entire thing. But reading the getting started guide will probably get you excited to see what it can do as well as giving you code samples to get there,
0
 
LVL 1

Author Closing Comment

by:awilderbeast
Comment Utility
ok ill get cracking on it

thanks :)
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction You may have a need to setup a group of users to allow local administrative access on workstations.  In a domain environment this can easily be achieved with Restricted Groups and Group Policies. This article will demonstrate how to…
Resolve DNS query failed errors for Exchange
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

762 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

6 Experts available now in Live!

Get 1:1 Help Now