| @@ 63-78 (lines=16) @@ | ||
| 60 | return $list; |
|
| 61 | } |
|
| 62 | ||
| 63 | public function UsersSearchLocations() |
|
| 64 | { |
|
| 65 | $locations = Config::inst()->get('LDAPService', 'users_search_locations'); |
|
| 66 | $list = new ArrayList(); |
|
| 67 | if ($locations) { |
|
| 68 | foreach ($locations as $location) { |
|
| 69 | $list->push(new ArrayData([ |
|
| 70 | 'Value' => $location |
|
| 71 | ])); |
|
| 72 | } |
|
| 73 | } else { |
|
| 74 | $list->push($this->Options()->find('Name', 'baseDn')); |
|
| 75 | } |
|
| 76 | ||
| 77 | return $list; |
|
| 78 | } |
|
| 79 | ||
| 80 | public function GroupsSearchLocations() |
|
| 81 | { |
|
| @@ 80-95 (lines=16) @@ | ||
| 77 | return $list; |
|
| 78 | } |
|
| 79 | ||
| 80 | public function GroupsSearchLocations() |
|
| 81 | { |
|
| 82 | $locations = Config::inst()->get('LDAPService', 'groups_search_locations'); |
|
| 83 | $list = new ArrayList(); |
|
| 84 | if ($locations) { |
|
| 85 | foreach ($locations as $location) { |
|
| 86 | $list->push(new ArrayData([ |
|
| 87 | 'Value' => $location |
|
| 88 | ])); |
|
| 89 | } |
|
| 90 | } else { |
|
| 91 | $list->push($this->Options()->find('Name', 'baseDn')); |
|
| 92 | } |
|
| 93 | ||
| 94 | return $list; |
|
| 95 | } |
|
| 96 | ||
| 97 | public function DefaultGroup() |
|
| 98 | { |
|