CALL TO UNDEFINED FUNCTION LDAP

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
ralphsawaya
Forum Newbie
Posts: 5
Joined: Fri May 23, 2008 4:25 pm

CALL TO UNDEFINED FUNCTION LDAP

Post by ralphsawaya »

hi everybody,

lately i have been trying tosynchronize the active directory with VTIGER(CRM) for user authentication.
but i have a little problem.

the error "call to undefined function ldap" stops me from doing that.
i made some searches about this subject but nothing was fruitful.

hope u can help.
thanks
ralphsawaya
Forum Newbie
Posts: 5
Joined: Fri May 23, 2008 4:25 pm

Re: CALL TO UNDEFINED FUNCTION LDAP

Post by ralphsawaya »

excuse me the error is "call to undefined function ldap_connect"
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: CALL TO UNDEFINED FUNCTION LDAP

Post by John Cartwright »

ralphsawaya
Forum Newbie
Posts: 5
Joined: Fri May 23, 2008 4:25 pm

Re: CALL TO UNDEFINED FUNCTION LDAP

Post by ralphsawaya »

hello again,

i have a test.php file(contains the function ldap_connect) that when i run it from the prompt command doesn't give me the error (i removed the semicolomn from the php.ini file before extension=php_ldap.dll).

BUT when i run the test.php file from the browser the error appears !!!!!!!!???????

y is that?

Plzzzzzzzzzzzz heeeeeeeeelpp . i'm getting crazy
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: CALL TO UNDEFINED FUNCTION LDAP

Post by pickle »

PHP5 has 2 different configuration files - 1 for CGI (which is what you'd use from the command line) and 1 for the Apache module. Make a phpinfo() page & see if the module is enabled.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
ralphsawaya
Forum Newbie
Posts: 5
Joined: Fri May 23, 2008 4:25 pm

Re: CALL TO UNDEFINED FUNCTION LDAP

Post by ralphsawaya »

so what do u suggest me to do ?

what is the name of this second config php file for apache?

where i can find it?
and what am i supposed to do with it?

plz help me. i'am half crazy right now :)
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: CALL TO UNDEFINED FUNCTION LDAP

Post by pickle »

Make a phpinfo() page - it'll tell you which php.ini file you need to edit.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
ralphsawaya
Forum Newbie
Posts: 5
Joined: Fri May 23, 2008 4:25 pm

Re: CALL TO UNDEFINED FUNCTION LDAP

Post by ralphsawaya »

i love u man :D .
it worked like a charm.
holy crap it took me 3 days to fix it.

but y in hell would the php.ini be located in c:\windows and not where the php folder is?

anyway i dont care.

10x
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: CALL TO UNDEFINED FUNCTION LDAP

Post by pickle »

c:\windows is probably where a bunch of config files go. In Linux, the config file usually goes in the /etc directory or in with all the Apache config files. The idea I think is to keep all config files in the same place, rather than all PHP related files in the same place.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: CALL TO UNDEFINED FUNCTION LDAP

Post by simonmlewis »

Hello

I have the same problem.

I found an additional php.ini file in apache/bin, so uncommented the bit, but still get the error.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Post Reply