Locating Users on a Network
Locating users on a network with PlaceOS
Using existing infrastructure, there is typically enough data available to accurately locate staff. Wireless networks provide a rough indication of location. Cabled infrastructure accurately shows who is sitting at individual desk locations.
You can also augment this with sensors as required. Sensors show desk usage and will need to fall back to Wi-Fi for staff location.
The Lookup Process:
Lookup the username or email address of the person in question (staff search)
Grab the device mappings for that user (as per the diagram above)
Check if any of those devices are plugged in to a switch port (or have a desk reserved)
If not, fall back to wireless lookup of username, email or wireless MAC address
Desk Locating Requirements
Switch IP addresses
SNMP or SSH service enabled on the switch (SSH preferred as it's easier to troubleshoot and secure)
A list of switch ports to desk mappings
A method for pairing staff to their devices
Most switches expose a SNMP service for locating details of port usage and the devices connected to each port. This is an industry standard common to most network hardware manufacturers. CISCO switches support SSH and PlaceOS supports SSHv2 for secure data transfer.
Laptop Docking Stations
Desk locating relies on device MAC addresses to identify staff as they move around a building. Docking stations often sit between the laptop and the switch. We need to ensure that the MAC address exposed by the docking station is unique to each staff member.
All commercial docking solutions offer a method for passing on a unique MAC, or do this by default. Two of the more common docking solutions are HP (BIOS or EFI configuration) and Displaylink USB docks (Dell, Lenovo, Fujitsu, Targus, Kensington, HP and Toshiba among others).
Display Link provides a PowerShell script to automate the configuration which can be deployed via SCCM.
This alternative script provides detailed logging which can be useful when deploying.
User Device Discovery
We automate the mapping of laptops and phones to staff.
This is a two step process.
Firstly we need to discover the IP addresses of the devices in use by a user
Once we have the IP address we need to find the associated MAC addresses
This maintains a mapping of MAC addresses to user accounts which can be used in conjunction with port usage to determine the location of users.
User Account To IP Address Mapping
There are multiple ways to obtain this information and these can be used simultaneously.
Users connecting to the staff application
Users logging on to their machines triggering an event on the Windows domain controller
Users connecting to a file share or print server
Custom tray application locating the logged in user, any IP address changes and associated MAC addresses
Windows Domain Controller
The Windows domain controller is used to authenticate users as they log onto a device. This would typically be a laptop, desktop computer or thin client.
By auditing credential validation events it's possible to query these logs to inform PlaceOS of the user account and the corresponding IP address associated with the event.
https://technet.microsoft.com/en-us/library/dd772679%28v=ws.10%29.aspx
File Share Or Print Server
Similar to the Windows domain controller method, audit logging can be enabled for file share access events.
https://technet.microsoft.com/en-us/library/dn311489%28v=ws.11%29.aspx
https://blogs.technet.microsoft.com/mspfe/2013/08/26/auditing-file-access-on-file-servers/
IP Address To Mac Address Resolution
At this point we have a user account and an IP address. We need to lookup the MAC address associated with the IP address so we can associate the user to the MAC address / device.
PlaceOS will communicate with the switches over UDP port 161 or TCP port 22
The switches may communicate to PlaceOS over UDP port 162 (Not required for SSH connections)
Switch DHCP Snooping Table
We query DHCP snooping tables on level 2 switches as they maintain a list of DHCP allocated IP addresses and the MAC addresses of assigned devices.
DHCP snooping is a security feature and enabling it has additional advantages beyond user locating.
If DHCP snooping is undesirable, DHCP Gleaning can be used instead.
Example PowerShell Scripts
This covers the basics of user discovery using a domain controller. A third-party machine can be configured to query server logs remotely - see the detailed scripts for how this is achieved
It's possible to use additional events and modify scripts as required for security compliance.
For more details on how this is implemented please see our detailed configuration guide.
Wireless Location
There are many methods for locating users on the wireless network and PlaceOS has integrations for various systems.
Depending on the wireless solution in place and it’s level of integration we may still need server notification scripts even in a wireless only environment.
CISCO CMX for instance can provide usernames when users are connected to the wireless, if configured to do so.
Microsoft FindMe will always provide a username
Huawei provides raw RSSI values, IP and MAC addresses. PlaceOS manages floor fingerprinting and estimating location based on these values
Shared Desktop Configuration
For monitoring desktop computer usage, such as locating a computer in a call center, you need to capture log-off events. You can only get these from the machine itself.
This is a simplified overview of data extraction from auditing events
Enable Auditing In
User Notification Script
This script can be modified to filter notifications for a subset of users, such as those in a specific domain or IP range.
Filename: user_ip.ps1
Create An Action For The Event
Create a basic task that runs an application (click through next in the wizard)
Program / Script:
PowerShell
Arguments:
-ExecutionPolicy Bypass -windowstyle hidden c:\aca-apps\user_ip.ps1 -ip $(ip) -username $(username) -domain $(domain)
Open Task Scheduler -> Event Viewer Tasks -> (task name)
Export the task
Add the
ValueQueries
(below, more details)Delete the task
Import the edited task
Last updated