note 77885 modified in function.ldap-mod-replace by thiago
| From: | thiago@php.net | Date: | Tue, 29 Nov 2011 15:26:15 +0000 |
| Subject: | note 77885 modified in function.ldap-mod-replace by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-184783@lists.php.net to get a copy of this message | ||
You can use arrays for multiple attributes example:
<?php
$entry[mail] = array("example@example.com","example2@example.com");
$results = ldap_mod_add($ldapConnID,$dn, $entry);
?>
or as i did for creating anew user:
<?php
$adduserAD["objectClass"] =
array("top","person","organizationalPerson","user");
?>
--was--
You can use arrays for multiple attributes example:
$entry[mail] = array("newmail@aelana.com","altnewmail@aelana.com");
$results = ldap_mod_add($ldapConnID,$dn, $entry);
or as i did for creating anew user:
$adduserAD["objectClass"] =
array("top","person","organizationalPerson","user");
http://php.net/manual/en/function.ldap-mod-replace.php