LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-10-2006, 02:53 AM   #1
ninobi
LQ Newbie
 
Registered: May 2006
Posts: 3

Rep: Reputation: 0
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
 
Old 05-10-2006, 06:00 AM   #2
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Download PHP and manually configure it to include the ldap extensions. ./configure --help will give you all the possible flags.
 
Old 05-10-2006, 06:02 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,234

Rep: Reputation: Disabled
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
 
Old 05-10-2006, 07:17 AM   #4
ninobi
LQ Newbie
 
Registered: May 2006
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 05-10-2006, 07:42 AM   #5
ninobi
LQ Newbie
 
Registered: May 2006
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP web authentication using system accounts jineshkj Programming 1 04-30-2006 10:53 PM
apache web page authentication problem jitheshmurali Linux - General 3 04-01-2006 02:51 PM
PHP Authentication jpbarto Programming 1 09-07-2004 10:11 AM
HTTP AUTHENTICATION with PHP lemotion Programming 1 04-22-2004 02:08 PM
PHP Authentication against /etc/shadow mpgram Programming 1 04-13-2004 11:55 PM


All times are GMT -5. The time now is 01:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration