|
||||||||||
|
|
||||||||||
| Other Library Functions | ||||||||||
| function | ldapEntryAdvance |
Available in:
Enterprise |
|
Library: omldap - LDAP support
Include: omldap.xin |
define external function ldapEntryAdvance
value ldapAttribute entry
where
After a search using ldapSearch, this function will advance to the next entry of the search result.
Example
include "omldap.xin"
process
local ldapAttribute my-entry variable
ldapSearch my-ldap
base "O=omnimark.com"
scope LDAP_SCOPE_ONELEVEL
where"(Department=rd)"
entry my-entry
select "name"
select "employeenumber"
select "phonenumber"
; advance through all the entries
repeat
exit when not ldapEntryExists my-entry
...
ldapEntryAdvance my-entry
again
| ---- |