1 | <?php |
||
13 | class LDAPGroupMapping extends DataObject |
||
14 | { |
||
15 | /** |
||
16 | * {@inheritDoc} |
||
17 | * @var string |
||
18 | */ |
||
19 | private static $table_name = 'LDAPGroupMapping'; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | private static $db = [ |
||
25 | 'DN' => 'Text', // the DN value of the LDAP object in AD, e.g. CN=Users,DN=playpen,DN=local |
||
26 | 'Scope' => 'Enum("Subtree,OneLevel","Subtree")' // the scope of the mapping |
||
27 | ]; |
||
28 | |||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | private static $has_one = [ |
||
33 | 'Group' => 'SilverStripe\\Security\\Group' |
||
34 | ]; |
||
35 | |||
36 | /** |
||
37 | * @var array |
||
38 | */ |
||
39 | private static $summary_fields = [ |
||
40 | 'DN' |
||
41 | ]; |
||
42 | |||
43 | /** |
||
44 | * @var array |
||
45 | */ |
||
46 | private static $dependencies = [ |
||
47 | 'ldapService' => '%$SilverStripe\\ActiveDirectory\\Services\\LDAPService' |
||
48 | ]; |
||
49 | |||
50 | /** |
||
51 | * {@inheritDoc} |
||
52 | * @return FieldList |
||
53 | */ |
||
54 | public function getCMSFields() |
||
85 | } |
||
86 |