You are not logged in.

#1 2004-08-24 15:03:44

Aletheuo
Member
Registered: 2004-03-26
Posts: 59

PHP5 package compiled with LDAP support?

When I check phpinfo() it appears the PHP5 package was compiled with LDAP support but for some reason when I try a ldap_connect function in php it errors with 'Fatal error: Call to undefined function ldap_connect() in ...'
Anybody have any idea what the problem is?

Thanks,
Craig


Arch Linux (Duke)
JabberID:  cgill27@jabber.org
IRC: Aletheuo
Registered Linux User #354975

Offline

#2 2004-08-24 15:23:03

Aletheuo
Member
Registered: 2004-03-26
Posts: 59

Re: PHP5 package compiled with LDAP support?

BTW, I also have the current version of openldap package installed, 2.2.13-3, so it's not that that package is missing.


Arch Linux (Duke)
JabberID:  cgill27@jabber.org
IRC: Aletheuo
Registered Linux User #354975

Offline

#3 2004-08-24 16:08:14

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: PHP5 package compiled with LDAP support?

is it a php.ini thing? it may be compiled in but it may be disabled in the config file.


AKA uknowme

I am not your friend

Offline

#4 2004-08-24 16:56:55

Aletheuo
Member
Registered: 2004-03-26
Posts: 59

Re: PHP5 package compiled with LDAP support?

I'm not sure about the php.ini thing, I've combed through it looking for idea's as well, but the only ldap string in the whole file is this 'extension=php_ldap.dll' and that doesn't apply to Arch.
Also at http://www.php.net/ldap it talks about requirements etc and I'm almost thinking that the php5 package is not compiled with ldap even though when I do a phpinfo() it does show '--with-ldap' in the compile settings.


Arch Linux (Duke)
JabberID:  cgill27@jabber.org
IRC: Aletheuo
Registered Linux User #354975

Offline

#5 2004-08-24 17:47:27

apeiro
Daddy
From: Victoria, BC, Canada
Registered: 2002-08-12
Posts: 771
Website

Re: PHP5 package compiled with LDAP support?

Add this to the bottom of your /etc/php.ini and restart apache.

extension=ldap.so

Offline

#6 2004-08-24 17:53:39

Aletheuo
Member
Registered: 2004-03-26
Posts: 59

Re: PHP5 package compiled with LDAP support?

Thank you very much that solved it!
And I learned something new about checking for the modules.

Craig


Arch Linux (Duke)
JabberID:  cgill27@jabber.org
IRC: Aletheuo
Registered Linux User #354975

Offline

Board footer

Powered by FluxBB