Probably your PHP isn't set to use LDAP. That's what usually a "Call to undefined function" means. You should ask your system administrator to enable LDAP in PHP, or if you are system administrator, the enable it by loading the apropriate extension in php.ini.
--
Nothing is impossible. Not if you can imagine it!