silverspecv
Programmer
I have some active directory oriented code, and I have it working, but it all starts with something like
but how do I get info that goes inside the quotes? I currently have it hard coded for my domain here, but I will need it to pick up the user's domain once the app is deployed. I can get the "domain" portion of that by getting the currently logged on user as "domain\username" etc, but I can't find the "com" part anywhere
Code:
Dim dEntry As New DirectoryEntry("LDAP://DC=domain,DC=com")
but how do I get info that goes inside the quotes? I currently have it hard coded for my domain here, but I will need it to pick up the user's domain once the app is deployed. I can get the "domain" portion of that by getting the currently logged on user as "domain\username" etc, but I can't find the "com" part anywhere