W3cubDocs

/Symfony 4.1

EntryManager

class EntryManager implements EntryManagerInterface

Methods

__construct(Connection $connection)
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.

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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Ldap/Adapter/ExtLdap/EntryManager.html