Projet

Général

Profil

Révision 32700c57

Ajouté par Assos Assos il y a environ 5 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ldap/ldap_servers/ldap_types/LdapTypeActiveDirectory.class.php
2 2

  
3 3
/**
4 4
 * @file
5
 * Active Directory LDAP Implementation Details
6
 *
7
 * see http://msdn.microsoft.com/en-us/library/windows/desktop/ms675085(v=vs.85).aspx
5
 * Active Directory LDAP Implementation Details.
8 6
 *
7
 * See http://msdn.microsoft.com/en-us/library/windows/desktop/ms675085(v=vs.85).aspx.
9 8
 */
10 9

  
11 10
module_load_include('php', 'ldap_servers', 'ldap_types/LdapTypeAbstract.class');
12

  
11
/**
12
 *
13
 */
13 14
class LdapTypeActiveDirectory extends LdapTypeAbstract {
14 15

  
15
  // generic properties
16
  /**
17
   * Generic properties.
18
   */
16 19
  public $name = 'Active Directory LDAP';
17 20
  public $typeId = 'ActiveDirectory';
18 21
  public $description = 'Microsoft Active Directory';
19 22

  
20
  // ldap_servers configuration
23
  /**
24
   * Ldap_servers configuration.
25
   */
21 26
  public $port = 389;
22 27
  public $tls = 1;
23 28
  public $encrypted = 0;
24 29
  public $user_attr = 'sAMAccountName';
25 30
  public $mail_attr = 'mail';
26 31

  
27
  /** the following pairs all work in Active Directory,
32
  /**
33
   * The following pairs all work in Active Directory,
28 34
   * but there is no assurance that any of them will survive
29 35
   * domain merges and migrations.  Its best to pick a true user id
30
   * such as a numeric one given to the user by the organization
36
   * such as a numeric one given to the user by the organization.
31 37
   *
32
   * uidNumber  - not binary
38
   * UidNumber  - not binary
33 39
   * objectSid  - binary
34
   * objectGuid - binary
40
   * objectGuid - binary.
35 41
   */
36 42

  
37 43
  public $unique_persistent_attr = 'uidNumber';
......
41 47

  
42 48
  public $groupObjectClassDefault = 'group';
43 49

  
44
  // ldap_authorization configuration
50
  /**
51
   * Ldap_authorization configuration.
52
   */
45 53
  public $groupDerivationModelDefault = LDAP_SERVERS_DERIVE_GROUP_FROM_ATTRIBUTE;
46 54
  public $deriveFromAttr = TRUE;
47 55
  public $groupUserMembershipsAttr = 'memberOf';
48 56

  
49

  
50

  
51 57
}

Formats disponibles : Unified diff