Is is possible to check vpn connection or machine is connected to trusted network? My app need a connection to LDAP to get some data. this action is started when user login