You are here

LdapTypeAbstract.class.php in Lightweight Directory Access Protocol (LDAP) 7.2

Abstract class to represent an ldap implementation type such as active directory, open ldap, novell, etc.

File

ldap_servers/ldap_types/LdapTypeAbstract.class.php
View source
<?php

/**
 * @file
 * Abstract class to represent an ldap implementation type
 * such as active directory, open ldap, novell, etc.
 */

/**
 *
 */
abstract class LdapTypeAbstract {
  public $name;
  public $typeId;
  public $description;

  /**
   * Ldap_servers configuration.
   */
  public $port = 389;
  public $tls = 0;
  public $encrypted = 0;
  public $user_attr = 'cn';
  public $mail_attr = 'mail';
  public $groupObjectClassDefault = NULL;
  public $groupDerivationModelDefault = NULL;

  /**
   * Ldap_authorization configuration.
   */
  public $deriveFromDn = FALSE;
  public $deriveFromAttr = FALSE;
  public $deriveFromEntry = FALSE;
  public $groupMembershipsAttr = NULL;

  /**
   * Can be removed in 2.0 branch.
   */
  public $groupMembershipsAttrMatchingUserAttr = FALSE;

  /**
   * Constructor Method.
   */
  public function __construct($params = []) {
    foreach ($params as $k => $v) {
      if (property_exists($this, $k)) {
        $this->{$k} = $v;
      }
    }
  }

}

Classes

Namesort descending Description
LdapTypeAbstract