| @@ 78-93 (lines=16) @@ | ||
| 75 | return $list; |
|
| 76 | } |
|
| 77 | ||
| 78 | public function UsersSearchLocations() |
|
| 79 | { |
|
| 80 | $locations = Config::inst()->get('SilverStripe\\ActiveDirectory\\Services\\LDAPService', 'users_search_locations'); |
|
| 81 | $list = new ArrayList(); |
|
| 82 | if ($locations) { |
|
| 83 | foreach ($locations as $location) { |
|
| 84 | $list->push(new ArrayData([ |
|
| 85 | 'Value' => $location |
|
| 86 | ])); |
|
| 87 | } |
|
| 88 | } else { |
|
| 89 | $list->push($this->Options()->find('Name', 'baseDn')); |
|
| 90 | } |
|
| 91 | ||
| 92 | return $list; |
|
| 93 | } |
|
| 94 | ||
| 95 | public function GroupsSearchLocations() |
|
| 96 | { |
|
| @@ 95-110 (lines=16) @@ | ||
| 92 | return $list; |
|
| 93 | } |
|
| 94 | ||
| 95 | public function GroupsSearchLocations() |
|
| 96 | { |
|
| 97 | $locations = Config::inst()->get('SilverStripe\\ActiveDirectory\\Services\\LDAPService', 'groups_search_locations'); |
|
| 98 | $list = new ArrayList(); |
|
| 99 | if ($locations) { |
|
| 100 | foreach ($locations as $location) { |
|
| 101 | $list->push(new ArrayData([ |
|
| 102 | 'Value' => $location |
|
| 103 | ])); |
|
| 104 | } |
|
| 105 | } else { |
|
| 106 | $list->push($this->Options()->find('Name', 'baseDn')); |
|
| 107 | } |
|
| 108 | ||
| 109 | return $list; |
|
| 110 | } |
|
| 111 | ||
| 112 | public function DefaultGroup() |
|
| 113 | { |
|