Lines Matching defs:entry
113 * Check whether an entry matches a certain attribute and value.
131 * Create a new entry.
133 * @param Entry $entry
138 public function create(Entry $entry, Control ...$controls): LdapMessageResponse
140 $response = $this->sendAndReceive(Operations::add($entry), ...$controls);
141 $entry->changes()->reset();
147 * Read an entry.
149 * @param string $entry
155 public function read(string $entry = '', $attributes = [], Control ...$controls): ?Entry
158 return $this->readOrFail($entry, $attributes, ...$controls);
168 * Read an entry from LDAP. If the entry is not found an OperationException is thrown.
170 * @param string $entry
176 public function readOrFail(string $entry = '', $attributes = [], Control ...$controls): Entry
178 $entryObj = $this->search(Operations::read($entry, ...$attributes), ...$controls)->first();
181 'The entry "%s" was not found.',
182 $entry
190 * Delete an entry.
192 * @param string $entry
197 public function delete(string $entry, Control ...$controls): LdapMessageResponse
199 return $this->sendAndReceive(Operations::delete($entry), ...$controls);
203 * Update an existing entry.
205 * @param Entry $entry
210 public function update(Entry $entry, Control ...$controls): LdapMessageResponse
212 $response = $this->sendAndReceive(Operations::modify($entry->getDn(), ...$entry->changes()), ...$controls);
213 $entry->changes()->reset();
219 * Move an entry to a new location.
232 * Rename an entry (changing the RDN).