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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LDAP, ADSI and Openldap: only standard schema

Status
Not open for further replies.

ramass

Programmer
Jul 10, 2001
19
FR
Hello,

Is it possible to use ADSI component with openLdap and read non standard attributes ?

In fact, the rootDSE provides only the standard schema. Can we force it to provide all the schemas ?

Thank you in advance

Matthieu
A french developper
 
Il semble que nous ayons le même problème,
avez vous trouvé une solution ?

pascal.robe@dgccrf.finances.gouv.fr
 
Have you tried the IADsPropertyList.GetPropertyItem method to force a specific syntax?
Maybe this a solution

Marissa
 
Yes !!

Finaly, I have found a solution

Code:
    Dim propList As IADsPropertyList
    Dim propEntry As IADsPropertyEntry
    Dim propVal As IADsPropertyValue
    Dim attributValue As String
  
    Set propList = GetObject(<adsPath>)
    propList.GetInfo
    Set propEntry = propList.GetPropertyItem( _
          &quot;<nomAttribut>&quot;, _
          ADSTYPE_CASE_IGNORE_STRING)
    Set propVal = propEntry.Values(<leNumeroAttribut>)
    attributValue = propVal.CaseIgnoreString

I think it's a good alternative. If you find a better solution, I'm glad to know it !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top