略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: ldap_close

2024-11-14

ldap_close

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

ldap_close别名 ldap_unbind()

说明

此函数是该函数的别名: ldap_unbind().

add a noteadd a note

User Contributed Notes 1 note

up
1
Anonymous
20 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"]="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 link apointed by the identified $ds (get with ldap_connect)
   
ldap_close($ds);

}
?>

官方地址:https://www.php.net/manual/en/function.ldap-close.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3