Hi,
i want to get all info about a certain user in the Active Directory,
i tried to use the following code:
VB Code:
  1. Set oContainer = GetObject("WinNT://" + "ITAcademy.com")
  2.  
  3.     For Each oIADs In oContainer
  4.         If (oIADs.Class = "User") Then
  5.            Set oUser = oIADs
When i use this code it can give me small portion of info such as Full Name, but i cant get the mail address, cause i have an error as follows:
VB Code:
  1. ' The directory property cannpt be found in the cache
googlin around i found the winNt objects doesn't support such info, so i need to use LDAP code, is there any sample around?

thanks,