Projet

Général

Profil

Paste
Télécharger (1,3 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / ldap / ldap_servers / ldap_types / LdapTypeActiveDirectory.class.php @ bc175c27

1
<?php
2

    
3
/**
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
8
 *
9
 */
10

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

    
13
class LdapTypeActiveDirectory extends LdapTypeAbstract {
14

    
15
  // generic properties
16
  public $name = 'Active Directory LDAP';
17
  public $typeId = 'ActiveDirectory';
18
  public $description = 'Microsoft Active Directory';
19

    
20
  // ldap_servers configuration
21
  public $port = 389;
22
  public $tls = 1;
23
  public $encrypted = 0;
24
  public $user_attr = 'sAMAccountName';
25
  public $mail_attr = 'mail';
26

    
27
  /** the following pairs all work in Active Directory,
28
   * but there is no assurance that any of them will survive
29
   * 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
31
   *
32
   * uidNumber  - not binary
33
   * objectSid  - binary
34
   * objectGuid - binary
35
   */
36

    
37
  public $unique_persistent_attr = 'uidNumber';
38
  public $unique_persistent_attr_binary = FALSE;
39

    
40

    
41

    
42
  public $groupObjectClassDefault = 'group';
43

    
44
  // ldap_authorization configuration
45
  public $groupDerivationModelDefault = LDAP_SERVERS_DERIVE_GROUP_FROM_ATTRIBUTE;
46
  public $deriveFromAttr = TRUE;
47
  public $groupUserMembershipsAttr = 'memberOf';
48

    
49

    
50

    
51
}