root / drupal7 / sites / all / modules / ldap / ldap_servers / ldap_types / LdapTypeActiveDirectory.class.php @ 32700c57
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 |
module_load_include('php', 'ldap_servers', 'ldap_types/LdapTypeAbstract.class'); |
11 |
/**
|
12 |
*
|
13 |
*/
|
14 |
class LdapTypeActiveDirectory extends LdapTypeAbstract { |
15 |
|
16 |
/**
|
17 |
* Generic properties.
|
18 |
*/
|
19 |
public $name = 'Active Directory LDAP'; |
20 |
public $typeId = 'ActiveDirectory'; |
21 |
public $description = 'Microsoft Active Directory'; |
22 |
|
23 |
/**
|
24 |
* Ldap_servers configuration.
|
25 |
*/
|
26 |
public $port = 389; |
27 |
public $tls = 1; |
28 |
public $encrypted = 0; |
29 |
public $user_attr = 'sAMAccountName'; |
30 |
public $mail_attr = 'mail'; |
31 |
|
32 |
/**
|
33 |
* The following pairs all work in Active Directory,
|
34 |
* but there is no assurance that any of them will survive
|
35 |
* domain merges and migrations. Its best to pick a true user id
|
36 |
* such as a numeric one given to the user by the organization.
|
37 |
*
|
38 |
* UidNumber - not binary
|
39 |
* objectSid - binary
|
40 |
* objectGuid - binary.
|
41 |
*/
|
42 |
|
43 |
public $unique_persistent_attr = 'uidNumber'; |
44 |
public $unique_persistent_attr_binary = FALSE; |
45 |
|
46 |
|
47 |
|
48 |
public $groupObjectClassDefault = 'group'; |
49 |
|
50 |
/**
|
51 |
* Ldap_authorization configuration.
|
52 |
*/
|
53 |
public $groupDerivationModelDefault = LDAP_SERVERS_DERIVE_GROUP_FROM_ATTRIBUTE; |
54 |
public $deriveFromAttr = TRUE; |
55 |
public $groupUserMembershipsAttr = 'memberOf'; |
56 |
|
57 |
} |