swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
      Other Library Functions  
function  

ldapCreateAttribute

 
 

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

Declaration

define external ldapAttribute function ldapCreateAttribute
             value     stream  attribute-name
    datatype value     integer datatype       optional initial { LDAP_TEXT }
    values   read-only stream  values         optional
    value    remainder string  value

Argument definitions

attribute-name
The name of the attribute.
datatype
The type of the attribute. The default is LDAP_TEXT; the other option is LDAP_BINARY.
values
A shelf of values to assign to the attribute.
value
A list of values to assign to the attribute.


Purpose

This function assigns value(s) to an ldapAttribute of an entry that you will add later with the ldapAddEntry function.

Example:

     include "omldap.xin"
  
     process
        local ldapAttribute my-entry variable
        ...
  
        set new my-entry to ldapCreateAttribute "cn"
           value "Brown"
           value "V. Brown"
           value "Valerie Brown"

In the example above, the attribute is "cn", the attribute-name is "Brown", the first value is "V. Brown", and another value is "Valerie Brown".

        Other Library Functions
   ldapAddEntry
   ldapAttribute
   ldapAttributeGetValue
   ldapAttributeGetValues
   ldapClose
   ldapConnection
   ldapCreateAttribute
   ldapDeleteEntry
   ldapEntryAdvance
   ldapEntryExists
   ldapEntryGetName
   ldapModifyEntry
   ldapOpen
   ldapRenameEntry
   ldapSearch
   ldap_IsVersionCompatible
   ldap_LibraryVersion
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:27:39 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.