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

Thanks
Alex
LVL 1
awilderbeastAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

danyul_cCommented:
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
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?

thanks
0
danyul_cCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
awilderbeastAuthor Commented:
ok ill get cracking on it

thanks :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.