Servers

get('admin')) { ?>

Server list

Filter options

Key management

$label) { $checked = in_array($value, $this->get('filter')['key_management']) ? ' checked' : ''; ?>

Sync status

$label) { $checked = in_array($value, $this->get('filter')['sync_status']) ? ' checked' : ''; ?>

get('servers')); out(number_format($total).' server'.($total == 1 ? '' : 's').' found')?>

get('admin')) { ?> get('servers') as $server) { if($server->key_management != 'keys') { $syncclass = ''; } else { switch($server->sync_status) { case 'not synced yet': $syncclass = 'warning'; break; case 'sync failure': $syncclass = 'danger'; break; case 'sync success': $syncclass = 'success'; break; case 'sync warning': $syncclass = 'warning'; break; } } if($last_sync = $server->get_last_sync_event()) { $sync_details = json_decode($last_sync->details)->value; } else { $sync_details = ucfirst($server->sync_status); } ?> get('admin')) { ?> admins)) { ?> key_management == 'keys') out(' class="danger"', ESC_NONE)?>>Server has no administrators
Hostname Config Admins Status
hostname) ?> pending_requests > 0 && $this->get('admin')) { ?> pending_requests)) ?> key_management) { case 'keys': switch($server->authorization) { case 'manual': out('Manual account management'); break; case 'automatic LDAP': out('LDAP accounts - automatic'); break; case 'manual LDAP': out('LDAP accounts - manual'); break; } break; case 'other': out('Managed by another system'); break; case 'none': out('Unmanaged'); break; case 'decommissioned': out('Decommissioned'); break; } ?> admins); $admin_list = ''; foreach($admins as $admin) { $type = substr($admin, 0, 1); $name = substr($admin, 2); if($type == 'G') { $admin_list .= ' '; } $admin_list .= hesc($name).', '; } $admin_list = substr($admin_list, 0, -2); out($admin_list, ESC_NONE); ?> key_management != 'none') out($sync_details) ?>
get('admin')) { ?>

Add server

See the sync setup instructions for how to set up the server for key synchronization.
get('active_user')->get_csrf_field(), ESC_NONE) ?>
get('all_users') as $user) { ?>