• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 448
  • Last Modified:

intranet to run on php and use active directory user credentials

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

  • 2
  • 2
1 Solution
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.
awilderbeastAuthor Commented:
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?

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,
awilderbeastAuthor Commented:
ok ill get cracking on it

thanks :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now