UNPKG

node-expose-sspi-strict

Version:

Expose the Microsoft Windows SSPI interface in order to do NTLM and Kerberos authentication.

9 lines (7 loc) 321 B
import { sso } from '../src/sso'; console.log('Has admin privileges: ', sso.hasAdminPrivileges()); console.log('Is joined to a domain: ', sso.isOnDomain()); console.log('Domain name: ', sso.getDefaultDomain()); if (sso.isOnDomain()) { console.log('Controller reachable: ', sso.isActiveDirectoryReachable()); }