Is there any way to retrieve the user ID of the currently logged in user from Active Directory services using LDAP over an ADODB connection in VBA?
I have only seen examples of how to query additional information about a user by specifying the user name and password. In those examples the user name is generally retrieved using Environ("username")
, but some of the users of my application log onto the network using a VPN, and their Windows user name may not be the same as the user name used to log onto the network via the VPN.
Thanks!