ClulessChris
IS-IT--Management
I'm refrencing the Active DS Type library and using ADO to query active directory with an LDAP syntax.
All it well for the most part. However for some attributes I get the error: -2147463155 "The directory property cannot be found in the cache."
I've tried using the IADsUser object and the following method to no avail.
I know these attribute are present as I can see them using a directory explorer app.
Please help
Never knock on Death's door: ring the bell and run away! Death really hates that!
All it well for the most part. However for some attributes I get the error: -2147463155 "The directory property cannot be found in the cache."
I've tried using the IADsUser object and the following method to no avail.
Code:
Set propList = GetObject(Rs!ADsPath)
propList.GetInfo
Set propEntry = propList.GetPropertyItem("Locality", ADSTYPE_CASE_IGNORE_STRING)
For Each V In propEntry.Values
Set propVal = V
Select Case propVal.ADsType
Case ADSTYPE_CASE_EXACT_STRING
sRtn = propVal.CaseExactString
Case ADSTYPE_CASE_IGNORE_STRING
sRtn = propVal.CaseIgnoreString
Case Else
sRtn = "Value not found"
End Select
I know these attribute are present as I can see them using a directory explorer app.
Please help
Never knock on Death's door: ring the bell and run away! Death really hates that!