You are here

public function Server::connectAndBindIfNotAlready in Lightweight Directory Access Protocol (LDAP) 8.3

Checks if connected and connects and binds otherwise.

7 calls to Server::connectAndBindIfNotAlready()
Server::createLdapEntry in ldap_servers/src/Entity/Server.php
Create LDAP entry.
Server::deleteLdapEntry in ldap_servers/src/Entity/Server.php
Perform an LDAP delete.
Server::groupAddMember in ldap_servers/src/Entity/Server.php
Add a member to a group.
Server::groupRemoveMember in ldap_servers/src/Entity/Server.php
Remove a member from a group.
Server::ldapQuery in ldap_servers/src/Entity/Server.php
Execute LDAP query and return LDAP records.

... See full list

File

ldap_servers/src/Entity/Server.php, line 335

Class

Server
Defines the Server entity.

Namespace

Drupal\ldap_servers\Entity

Code

public function connectAndBindIfNotAlready() {
  if (!$this->connection) {
    $this
      ->connect();
    $this
      ->bind();
  }
}