LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Web authentication with PHP on an AD (http://www.linuxquestions.org/questions/slackware-14/web-authentication-with-php-on-an-ad-443347/)

ninobi 05-10-2006 03:53 AM

Web authentication with PHP on an AD
 
Hi all, I am a new user.
First of all, excuse my English: I am Italian.

I have a question I have searched for a long and I hope you can help me about... I also searched in these forums: I found something similiar but it was not useful to me...

I work in an authority where a huge windows net is on.
Being very fond of opensource world, I retrieved an old computer and installed Slackware 10.2 on it with the purpose of making a web server.
So we have an intranet site finely working on it running with php-mysql: also authentication for restricted areas is done by means of mysql...
But now there is the need to authenticate on it using the single-sign-on on Active Directory being effective in our net...
I thought it was a simple thing, but...
Slackware installation of php is evidently missing ldap extensions: I tried to install OpenLdap, but I didn't manage to make it work with php.
Should I install something like a php-ldap extension? Or what?

Thank you in advance,
nino

mdarby 05-10-2006 07:00 AM

Download PHP and manually configure it to include the ldap extensions. ./configure --help will give you all the possible flags.

Alien Bob 05-10-2006 07:02 AM

LDAP support is present in Slackware-current.

You could either download and install the slackware-current package sets, or just download the sources and build scripts that you need from -current. Do not download and install the binary slackware-current packages for use on your slackware 10.2 computer!.
I'd get at least the sources for the openldap-client, pine and php packages, and then compile Slackware packages from those on your Slackware 10.2 computer. Maybe you'll need more, I can't predict that. First build and install openldap-client, then build, not install pine and finally build and install pphp.

If you decide to download and use the slackware-current SlackBuild scripts for those packages, you will have to edit the scripts, look for the string "-mtune" and change that into "-mcpu" or else you will just get compiler errors on Slackware 10.2.

Eric

ninobi 05-10-2006 08:17 AM

Quote:

Originally Posted by mdarby
Download PHP and manually configure it to include the ldap extensions. ./configure --help will give you all the possible flags.

Yes, I just yesterday tried like that (php 4.4.2), but I went in trouble with mysql... Maybe I should install a fitting release of mysql too...
Thank you.
Quote:

Originally Posted by Alien Bob
LDAP support is present in Slackware-current...

Very well, I am going to try...
Thank you.

Bye,
nino

ninobi 05-10-2006 08:42 AM

Quote:

Originally Posted by Alien Bob
... Do not download and install the binary slackware-current packages for use on your slackware 10.2 computer!.
...

And if I upgrade GCC first?
Can I install binaries then?
Thank you,
nino


All times are GMT -5. The time now is 05:06 AM.