swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
      Other Library Functions  
function   ldapCreateAttribute   OMDN

Library: omldap - LDAP support
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 stream  value

Where:
attribute-name


datatype
values
value

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
   ldap_IsVersionCompatible
   ldap_LibraryVersion
   ldapAddEntry
   ldapAttributeGetValue
   ldapAttributeGetValues
   ldapClose
   ldapCreateAttribute
   ldapDeleteEntry
   ldapEntryAdvance
   ldapEntryExists
   ldapEntryGetName
   ldapModifyEntry
   ldapOpen
   ldapRenameEntry
   ldapSearch
 
----  

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

Generated: August 11, 2000 at 3:07:28 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com

Copyright © OmniMark Technologies Corporation, 1988-2000.