Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't Find AD Attributes

Status
Not open for further replies.

ClulessChris

IS-IT--Management
Jan 27, 2003
890
GB
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.
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top