note 14184 added to function.ldap-close.php

From: Date: Fri, 20 Jul 2001 15:15:35 +0000
Subject: note 14184 added to function.ldap-close.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15613@lists.php.net to get a copy of this message
<?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); } ?> http://www.php.net/manual/en/function.ldap-close.php

« previous php.notes (#15613) next »