Solved

intranet to run on php and use active directory user credentials

Posted on 2009-07-08
4
436 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
ID: 24807382
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
ID: 24812096
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
ID: 24814515
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
ID: 31601226
ok ill get cracking on it

thanks :)
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

786 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