Using AD and SQL to authenticate Wi-Fi users