Page 1 of 1
CALL TO UNDEFINED FUNCTION LDAP
Posted: Fri May 23, 2008 4:31 pm
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
Re: CALL TO UNDEFINED FUNCTION LDAP
Posted: Fri May 23, 2008 4:33 pm
by ralphsawaya
excuse me the error is "call to undefined function ldap_connect"
Re: CALL TO UNDEFINED FUNCTION LDAP
Posted: Fri May 23, 2008 4:39 pm
by John Cartwright
Re: CALL TO UNDEFINED FUNCTION LDAP
Posted: Sun May 25, 2008 2:55 pm
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
Re: CALL TO UNDEFINED FUNCTION LDAP
Posted: Mon May 26, 2008 10:23 am
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.
Re: CALL TO UNDEFINED FUNCTION LDAP
Posted: Mon May 26, 2008 4:21 pm
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

Re: CALL TO UNDEFINED FUNCTION LDAP
Posted: Mon May 26, 2008 4:34 pm
by pickle
Make a phpinfo() page - it'll tell you which php.ini file you need to edit.
Re: CALL TO UNDEFINED FUNCTION LDAP
Posted: Mon May 26, 2008 5:31 pm
by ralphsawaya
i love u man

.
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
Re: CALL TO UNDEFINED FUNCTION LDAP
Posted: Mon May 26, 2008 5:43 pm
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.
Re: CALL TO UNDEFINED FUNCTION LDAP
Posted: Wed Apr 22, 2009 8:10 am
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.