23 |
description: main processing file for LuDAP |
description: main processing file for LuDAP |
24 |
*/ |
*/ |
25 |
|
|
26 |
if (!extension_loaded('ldap')) { |
|
27 |
if (!dl('ldap.so')) { |
if (!function_exists("ldap_connect")) { |
28 |
echo "LDAP not enabled with PHP. Please fix it."; |
if (!extension_loaded('ldap')) { |
29 |
die; |
if (strtoupper(substr(PHP_OS, 0,3) == 'WIN')) { |
30 |
|
$dllso = "ldap.dll"; |
31 |
|
} else { |
32 |
|
$dllso = "ldap.so"; |
33 |
|
} |
34 |
|
if (!dl($dllso)) die("LDAP support not compiled in PHP, and dynamic LDAP module $ddlso unable to load."); |
35 |
|
} else { |
36 |
|
die("LDAP module found, but not working."); |
37 |
} |
} |
38 |
} |
} |
39 |
|
|
40 |
include './ludap.lib.php'; |
include 'ludap.lib.php'; |
41 |
$ludap_version = "0.5"; |
$ludap_version = "0.5"; |
42 |
$ludap_conf = '/etc/ludap.conf'; |
$ludap_conf = '/etc/ludap.conf'; |
43 |
$conf = readconf($ludap_conf); |
$conf = readconf($ludap_conf); |