The following example shows how to query for and iterate over a set of LDAP entries using a for each statement with a where clause.
for each hp in humanparticipant
where hp.ou = "Documentation" and hp.cn = "Robert" do
display "The participant: " + hp.cn
end
myDN = "c=Argentina"
result = lookup(country, dn : myDN)
if (result) then
delete country
end
o1 = OrganizationalUnit() o1.ou = "test21" o1.description = "foo1" o1.dn = "ou=test21" o1.postalCode = "1001" o1.store()