Lines Matching full:add
58 * Add a group to a group
80 $add = array();
81 $add["member"] = $childDn;
83 $result = @ldap_mod_add($this->adldap->getLdapConnection(), $parentDn, $add);
91 * Add a user to a group
93 * @param string $group The group to add the user to
94 * @param string $user The user to add to the group
101 // and add it using the full DN of the group
116 $add = array();
117 $add["member"] = $userDn;
119 $result = @ldap_mod_add($this->adldap->getLdapConnection(), $groupDn, $add);
127 * Add a contact to a group
129 * @param string $group The group to add the contact to
130 * @param string $contactDn The DN of the contact to add
135 // To add a contact we take the contact's DN
136 // and add it using the full DN of the group
145 $add = array();
146 $add["member"] = $contactDn;
148 $result = @ldap_mod_add($this->adldap->getLdapConnection(), $groupDn, $add);
174 $add = array();
175 $add["cn"] = $attributes["group_name"];
176 $add["samaccountname"] = $attributes["group_name"];
177 $add["objectClass"] = "Group";
178 $add["description"] = $attributes["description"];
179 //$add["member"] = $member_array; UNTESTED
182 $result = ldap_add($this->adldap->getLdapConnection(), "CN=" . $add["cn"] . ", " . $container . "," . $this->adldap->getBaseDn(), $add);