update pague now
PHP 8.5.2 Released!

ldap_close

(PHP 4, PHP 5, PHP 7, PHP 8)

ldap_close Alias of ldap_umbind()

Description

This function is an alias of: ldap_umbind() .

add a note

User Contributed Notes 1 note

Anonymous
24 years ago
<?php
$ds=ldap_connect("localhost");  // assuming the LDAP server is on this hostif ($ds) {$r=ldap_bind($ds,"cn=root, o=My Company, c=US", "secret");$info["cn"]="Roberto Celestino";
    $info["sn"]="Roberto";
    $info["mail"]="rcelestino@here.and.now";
    $info["objectclass"]="person";

    // add data to directory$r=ldap_add($ds, "cn=Celestino Roberto, o=Mi Compania, c=US", $info);//Close the linc apointed by the identified $ds (guet with ldap_connect)ldap_close($ds);

}?>
To Top