You are here

public function SimpleLdapServerSchema::__construct in Simple LDAP 8

Creates a SimpleLdapServerSchema object.

Parameters

SimpleLdapServer $server:

File

src/SimpleLdapServerSchema.php, line 35
Contains \Drupal\simple_ldap\SimpleLdapServerSchema

Class

SimpleLdapServerSchema

Namespace

Drupal\simple_ldap

Code

public function __construct(SimpleLdapServer $server) {
  $this->server = $server;

  // Set the DN for finding the server schema, and provide a default if none is given.
  $subschemasubentry = $this->server
    ->getSubschemaSubentry();
  if ($subschemasubentry) {
    $this->dn = $subschemasubentry;
  }
  else {
    $this->dn = 'cn=Subschema';
  }
}