root / drupal7 / sites / all / modules / ldap / ldap_servers / ldap_types / LdapTypeDefault.class.php @ fc2c1c7a
1 |
<?php
|
---|---|
2 |
|
3 |
/**
|
4 |
* @file
|
5 |
* Generic LDAP Implementation Details
|
6 |
*
|
7 |
*/
|
8 |
|
9 |
module_load_include('php', 'ldap_servers', 'ldap_types/LdapTypeAbstract.class'); |
10 |
|
11 |
class LdapTypeDefault extends LdapTypeAbstract { |
12 |
|
13 |
public $name = 'Default LDAP'; |
14 |
public $typeId = 'Default'; |
15 |
public $description = 'Other LDAP Type'; |
16 |
public $port = 389; |
17 |
public $tls = 1; |
18 |
public $encrypted = 0; |
19 |
public $user_attr = 'cn'; |
20 |
public $mail_attr = 'mail'; |
21 |
public $supportsNestGroups = FALSE; |
22 |
|
23 |
/**
|
24 |
* Constructor Method
|
25 |
*
|
26 |
*/
|
27 |
function __construct($params = array()) { |
28 |
foreach ($params as $k => $v) { |
29 |
if (property_exists($this, $k)) { |
30 |
$this->{$k} = $v; |
31 |
} |
32 |
} |
33 |
} |
34 |
|
35 |
} |