PHP 8.4.6 Released!

ldap_close

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

ldap_closeПсевдонім ldap_unbind()

Опис

Ця функція є псевдонімом до: ldap_unbind().

add a note

User Contributed Notes 1 note

up
1
Anonymous
23 years ago
<?php
$ds
=ldap_connect("localhost"); / assuming the LDAP server is on this host

if ($ds) {
$r=ldap_bind($ds,"cn=root, o=My Company, c=US", "secret");
$info["cn"]="Roberto Celestino";
$info["sn"]="Roberto";
$info["mail"]="[email protected]";
$info["objectclass"]="person";

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

}
?>
To Top

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant