A
A
Alyosha2018-02-12 11:16:36
PHP
Alyosha, 2018-02-12 11:16:36

How to connect ldap to php 7?

Opened a line with php_ldap.dll in Extensions ( extension=php_ldap.dll )
There is a file in the directory: ssleay32.dll, libeay32.dll
Reloaded Apache
But when trying to connect, the error still appears:
Fatal error: Uncaught Error: Call to undefined function ldap_connect( ) in the path to the script file:2 Stack trace: #0 {main} thrown in the path to the script file on line 2
The script itself:
<?php
$ldap_con = ldap_connect("here is my url");
if (ldap_bind($ldap_con, $ldap_dn, $ldap_password)) {
echo 'ez';
}
?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem, 2018-02-12
@proudmore

extension_loaded('ldap')?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question