g'day,
Thanks for the suggestions. I can get the data in some of the attribute fields, thanks to your help. Attribute fields that can hold multiple entries will return a value. Attribute fields like 'displayName', where only a single entry is allowed, still do not pass on the data to the variable. 'givenName' can hold multiple entries but in this case has only one, and it can be recovered.
Code:
? $objOU.Name
if VarTypeName($objOU)='Object'
? "object found "
; $objOU.GetInfo (this did not seem to be needed)
$dispName = $objOU.Get("displayName")
$dispTitle = $objOU.Get("title")
$dispGName = $objOU.Get("givenName")
? $dispName
? len($dispName)
? $dispGName
for each $item in $dispTitle
? $item
next
------
returns -->
------
uid=akn
object found
0
Agivenname
master
mistress
general
Can someone help by passing on the proper syntax to read single entry fields from the attributes?
akn