Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

[PHP3] Re: LDAP Script From: Nick Talbott (nickt <email protected>)
Date: 07/31/98

Roger

>
> Thanks for sharing your LDAP script in PHP. I'm trying to get it
> operative, but I am getting an error that looks to me as if I do not
> have PHP3 configured properly.
>
> LDAP query test
>
> Connecting ..
> Fatal error: Call to unsupported or undefined function ldap_connect() in
> C:\root\WebSite\htdocs\ldap1.php3 on line 12
>

When you get the message "Call to unsupported or undefined function xxx() " in
my experience this is because the required additional library routines have not
been compiled into PHP. You need to make sure that prior to compiling PHP you
have obtained and successfully compiled the client libraries for LDAP from
either the University of Michigan ldap-3.3 distribution, or the Netscape
Directory SDK. I use the U.o.M. client library and find it works fine, but
some of the documentation with the Netscape SDK is very helpful. I've not
tried with the Netscape SDK, but I think there are others on this list who
have.

Having done that, run the PHP ./setup script again and make sure you say "Yes"
to LDAP and provide the directory path to the appropriate directory where the
LDAP header and library files sit. (You may find it necessary to delete the
config.cache file from the base directory of the PHP distribution in order to
make sure that any new stuff is found rather than information about your system
from the previous setup run being used.)

If you are running PHP as an Apache module, remember to then run the routines
to install the new PHP module and recompile Apache as described in PHP's
INSTALL file.

Hope this helps

Nick Talbott
Corporate IT Unit, Powys County Council, UK

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3