class EntryManager implements EntryManagerInterface

Methods

__construct(Connection $connection)

No description

add(Entry $entry)

Adds a new entry in the Ldap server.

update(Entry $entry)

Updates an entry from the Ldap server.

remove(Entry $entry)

Removes an entry from the Ldap server.

addAttributeValues(Entry $entry, string $attribute, array $values)

Adds values to an entry's multi-valued attribute from the LDAP server.

removeAttributeValues(Entry $entry, string $attribute, array $values)

Removes values from an entry's multi-valued attribute from the LDAP server.

rename(Entry $entry, string $newRdn, bool $removeOldRdn = true)

Renames an entry on the Ldap server.

void
applyOperations(string $dn, iterable $operations)

No description

Details

__construct(Connection $connection)

Parameters

Connection $connection

add(Entry $entry)

Adds a new entry in the Ldap server.

Parameters

Entry $entry

Exceptions

NotBoundException
LdapException

update(Entry $entry)

Updates an entry from the Ldap server.

Parameters

Entry $entry

Exceptions

NotBoundException
LdapException

remove(Entry $entry)

Removes an entry from the Ldap server.

Parameters

Entry $entry

Exceptions

NotBoundException
LdapException

addAttributeValues(Entry $entry, string $attribute, array $values)

Adds values to an entry's multi-valued attribute from the LDAP server.

Parameters

Entry $entry
string $attribute
array $values

Exceptions

NotBoundException
LdapException

removeAttributeValues(Entry $entry, string $attribute, array $values)

Removes values from an entry's multi-valued attribute from the LDAP server.

Parameters

Entry $entry
string $attribute
array $values

Exceptions

NotBoundException
LdapException

rename(Entry $entry, string $newRdn, bool $removeOldRdn = true)

Renames an entry on the Ldap server.

Parameters

Entry $entry
string $newRdn
bool $removeOldRdn

void applyOperations(string $dn, iterable $operations)

Parameters

string $dn
iterable $operations

Return Value

void

Exceptions

UpdateOperationException in case of an error