LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Secure authentication between Active Directory and linux PHP (http://www.linuxquestions.org/questions/linux-software-2/secure-authentication-between-active-directory-and-linux-php-861683/)

W_Chevezman 02-09-2011 03:56 PM

Secure authentication between Active Directory and linux PHP
 
Hi everyone
I'm having a little problem. My company have an Active Directory to authenticate the user. Now we're implementing a web page in a linux webserver using PHP but one new request is to authenticate the user against AD. The problem is that we need to use SSL or another way to make secure the authentication.
We don't know if using openldap and php can do this in a easy way.
Anybody have an idea.
Thanks.

frieza 02-09-2011 05:27 PM

looks like there is no 'easy' way
http://www.developer.com/open/articl...y-with-PHP.htm
http://us3.php.net/ldap

hope that helps

Noway2 02-09-2011 07:16 PM

It isn't particularly easy, but it isn't TOO difficult either. I have a very similar situation, where I created a Linux based web server that would authenticate to an AD domain and become accessible via the AD machines and share resoures like the AD DNS. The approach I took was to user Kerberos which I think is a default mechanism in modern AD and compile LDAP with Kerberos support and then compile Samba with LDAP and Kerberos support. Once I did that, it was an easy matter to follow a basic how - to document (I may still have links on my machine at work) and give a few commands to 'join' the domain. To do so did require domain administrative privilege. I think all told, I spent about 2 working days figuring it all out - while really learning Slackware's package management system and some of its other intricacies in the process.


All times are GMT -5. The time now is 08:59 AM.