ldapAttributeGetValues

function

Library: LDAP support (OMLDAP legacy)
Include: omldap.xin

Declaration
define external function ldapAttributeGetValues
             value      ldapAttribute entry
    at       value      stream        key-value
    into     modifiable stream        values
    datatype value      integer       datatype optional initial { LDAP_TEXT }

Argument definitions

entry
An ldapAttribute containing the current entry.
key-value
The name of the requested attribute.
values
A shelf of values returned for the requested attribute.
datatype
The type of the requested attribute values. The default is LDAP_TEXT; the other option is LDAP_BINARY.


Purpose

This function retrieves the values of the specified attribute of the current entry. These values are placed in the shelf of streams named "values".

Example:

     include "omldap.xin"
  
     process
        local ldapAttribute my-entry variable
        ...
     ; get attribute values
        ldapAttributeGetValues my-entry
     	  at   key of my-entry
        	  into attribute-values