You are here

abstract class LdapTypeAbstract in Lightweight Directory Access Protocol (LDAP) 8.2

Same name and namespace in other branches
  1. 7.2 ldap_servers/ldap_types/LdapTypeAbstract.class.php \LdapTypeAbstract
  2. 7 ldap_servers/ldap_types/LdapTypeAbstract.class.php \LdapTypeAbstract

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

Hierarchy

Expanded class hierarchy of LdapTypeAbstract

File

ldap_servers/ldap_types/LdapTypeAbstract.class.php, line 10
abstract class to represent an ldap implementation type such as active directory, open ldap, novell, etc.

View source
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;
  public $groupMembershipsAttrMatchingUserAttr = FALSE;

  // can be removed in 2.0 branch

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

}

Members