Projet

Général

Profil

Paste
Télécharger (1000 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / ldap / ldap_servers / ldap_types / LdapTypeAbstract.class.php @ 32700c57

1
<?php
2

    
3
/**
4
 * @file
5
 * Abstract class to represent an ldap implementation type
6
 * such as active directory, open ldap, novell, etc.
7
 */
8

    
9
/**
10
 *
11
 */
12
abstract class LdapTypeAbstract {
13

    
14
  public $name;
15
  public $typeId;
16
  public $description;
17

    
18
  /**
19
   * Ldap_servers configuration.
20
   */
21
  public $port = 389;
22
  public $tls = 0;
23
  public $encrypted = 0;
24
  public $user_attr = 'cn';
25
  public $mail_attr = 'mail';
26
  public $groupObjectClassDefault = NULL;
27
  public $groupDerivationModelDefault = NULL;
28

    
29
  /**
30
   * Ldap_authorization configuration.
31
   */
32
  public $deriveFromDn = FALSE;
33
  public $deriveFromAttr = FALSE;
34
  public $deriveFromEntry = FALSE;
35
  public $groupMembershipsAttr = NULL;
36
  /**
37
   * Can be removed in 2.0 branch.
38
   */
39
  public $groupMembershipsAttrMatchingUserAttr = FALSE;
40

    
41
  /**
42
   * Constructor Method.
43
   */
44
  public function __construct($params = []) {
45
    foreach ($params as $k => $v) {
46
      if (property_exists($this, $k)) {
47
        $this->{$k} = $v;
48
      }
49
    }
50
  }
51

    
52
}