Constructor checks for LDAP support in PHP.
authorpallo <pallo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 28 Mar 2000 19:28:42 +0000 (19:28 +0000)
committerpallo <pallo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 28 Mar 2000 19:28:42 +0000 (19:28 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@354 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/abook_ldap_server.php

index dcf189d39419e9e26b1594bb5192286aff5023b3..64d949f7d518263a6e9d977a99d835e424761eef 100644 (file)
 
      // Constructor. Connects to database
      function abook_ldap_server($param) {
+       if(!function_exists("ldap_connect")) {
+         $this->set_error("LDAP support missing from PHP");
+         return;
+       }
        if(is_array($param)) {
         $this->server = $param["host"];
         $this->basedn = $param["base"];