User's Manual

370 | Administration Dell Networking W-ClearPass Guest 6.4 | User Guide
To change the behavior of the select2” control, you need to attach a JavaScript function definition to one or
more properties of the hook function’s argument.
The hook function may also set or update any of the properties specified in the “Select2 Options.
A simple example is included as the default value with the airgroup_shared_user field:
function (args) {
args.formatInputTooShort = function (text) {
return "Start typing a user name.";
};
return args;
}
The functions that may be defined by the Select2 Hook” function shown in the following table:
Function Description
sortResults(results,
container, query)
Used to sort the results list for searching right before it is displayed. Useful for sorting
matches by relevance to
the user’s search term.
formatNoMatches
(term)
Function used to render the “No matches” message. Should return an HTML string.
formatSearching() Function used to render the “Searching…” message that is displayed while a search is in
progress. Should return an HTML string, or null to disable the message.
formatInputTooShort
(term, minLength)
Function used to render the “Search input too short” message. Should return an HTML
string.
formatSelectionTooBig
(maxSize)
Function used to render the “You cannot select any more choices” message. Should
return an HTML string.
Table 97: Select2 Hook Functions
For in-depth technical information about these functions, refer to the Select2 programmer’s documentation at
http://ivaynberg.github.com/select2/. For information on configuring AirGroup for LDAP user search, see
"Configuring LDAP User Search for AirGroup" on page 364.
MACTrac Services
MACTrac allows users to register their personal mobile devices on a local network. Each device registered by an
operator is automatically shared with all of that operator’s registered devices. There is no limit to the number
of device accounts an operator can create, and no expiration time is set on device accounts.
You use W-ClearPass Policy Manager to create MACTrac operators. MACTrac operators can then log in through
Dell Networking W-ClearPass Guest to register and manage their devices.
For example, in a university setting, MACTrac provides a simple way for students to register their various
devices on the network:
l The student is authenticated and can register as many devices as they wish.
l MACTrac automatically detects each device's OS type, letting the network administrator easily build an
inventory of the devices on the network and architect an appropriate network policy.