note 46775 added to function.ldap-modify
| From: | eppo at darox dot net | Date: | Fri, 22 Oct 2004 18:17:40 +0000 |
| Subject: | note 46775 added to function.ldap-modify | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78957@lists.php.net to get a copy of this message | ||
you CAN edit objectClass as you want (unless you don't do class object violation editing the
entry).
If you want to remove 'totoClass' in objectClass list, just don't put it in
objectClass array:
$info["objectClass"][] = 'top';
$info["objectClass"][] = 'person';
$info["objectClass"][] = 'shadowAccount';
$info["objectClass"][] = 'posixAccount';
// $info["objectClass"] = 'totoClass'; comment if you want to remove totoClass,
uncomment if you want to add it.
ldap_modify($ldap_conn, $dn, $info);
----
Manual Page -- http://www.php.net/manual/en/function.ldap-modify.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46775
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46775&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46775&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46775&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46775&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46775&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46775&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46775&report=yes
Search -- http://master.php.net/manage/user-notes.php