note 54813 deleted from function.ldap-add by mazzanet

From: Date: Fri, 15 Jul 2005 22:00:51 +0000
Subject: note 54813 deleted from function.ldap-add by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-92041@lists.php.net to get a copy of this message
Note Submitter: theiderich at laweekly dot com ---- When adding/editing attributes for a user, keep in mind that the 'memberof' attribute is a special case. The memberOf attribute is not an accessible attribute of the user schema. To add someone to a group, you have to add the user in the group, and not the group in the user. You can do this by accessing the group attribute 'member': <?php $group_name = "CN=MyGroup,OU=Groups,DC=example,DC=com"; $group_info['member'] = $dn; // User's DN is added to group's 'member' array ldap_mod_add($connect,$group_name,$group_info); ?>

« previous php.notes (#92041) next »