downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ldap_compare> <ldap_bind
Last updated: Fri, 30 Oct 2009

view this page in

ldap_close

(PHP 4, PHP 5)

ldap_closeVerbindung zum LDAP-Server schließen

Beschreibung

bool ldap_close ( resource $Verbindungs-Kennung )

Gibt bei Erfolg TRUE zurück, im Fehlerfall FALSE.

Die ldap_close() Funktion schließt die Verbindung zum LDAP-Server die zur Verbindungs-Kennung gehört.

Der Aufruf dieser Funktion ist intern identisch zu ldap_unbind(). Die LDAP-API benutzt den Aufruf ldap_unbind(), so dass Sie vielleicht diese Funktion benutzen sollten, anstatt ldap_close() zu verwenden.

Hinweis: Diese Funktion ist ein Alias für ldap_unbind().



add a note add a note User Contributed Notes
ldap_close
20-Jul-2001 08:15
<?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);

}
?>

ldap_compare> <ldap_bind
Last updated: Fri, 30 Oct 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites