Solved

intranet to run on php and use active directory user credentials

Posted on 2009-07-08
4
434 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

932 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

15 Experts available now in Live!

Get 1:1 Help Now