Export (0) Print
Expand All

5.114.6 TransformEntinfToSearchEntry

procedure TransformEntinfToSearchEntry (
    [in] entinf: ENTINF
    [out] searchResultEntry: SearchResultEntry
    )

Informative summary of behavior: The TransformEntinfToSearchEntry procedure transforms an ENTINF structure (entinf) into a SearchResultEntry structure (searchResultEntry).

attrList: AttributeList
attrVals: AttributeVals

TransformDSNameToLdapDN (entinf.pName, searchResultEntry.objectName)

attrList := searchResultEntry.attributes

foreach i in [0 .. entInf.AttrBlock.attrCount -1] do

  attrList.value.type := LDAPDisplayNameFromAttrTyp (
                                 entInf.AttrBlock.pAttr[i].attrTyp)

  attrVals := attrList.value.vals

  foreach j in [0 .. entInf.AttrBlock. pAttr[i].AttrVal.valCount -1] do

     attrVals.value := ValueFromATTRVAL(
                       entInf.AttrBlock.pAttr[i].AttrVal.pAVal[j],
                       Syntax(entInf.AttrBlock.pAttr[i].attrTyp),
                       dc.prefixTable)
     attrVals := attrVals.next
  endfor
  attrList := attrList.next
endfor

return
 
Show:
© 2014 Microsoft