Using Flex 4 / Air 2.0.3
Is it possible to get the active directory domain name associated with the logged on user?
This page (Get the current logged in OS user in Adobe Air) shows the user name can be inferred from the user directory folder name, however is there a way to get the domain name? (This is assuming the user is part of a domain!)
Assuming I am part of a domain “office” and my login is “j.jones”, I want to retrieve both the “j.jones” and the “office” parts.
Thank you,
Jonsie
AIR 2.0 is able to run native processes and read their standard output. So, if your machine has AD console tools installed, you could run dsget user from AIR and read result. Also, you could take tools with your program (I have had creating AIR distribs bundled with java runtime).