You should put a 'objectClass' attribute into the $attrs so the
directory server knows which object you want to create. However, you may
omit this in case you don't want to add this entry to a directory
server.
The attributes parameter is as following:
$attrs = array('attribute1' => array('value1', 'value2'),
'attribute2' => 'single value');
public static createFresh ( string $dn, array $attrs = [] ) : Horde_Ldap_Entry | ||
$dn | string | DN of the entry. |
$attrs | array | Attributes of the entry. |
리턴 | Horde_Ldap_Entry |