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

Library: omldap - LDAP support
Include: omldap.xin

Declaration

  define external function ldapModifyEntry
                 value      stream         distinct-name
         on      value      ldapConnection connection
         add     value      stream         add-attribute     optional
         replace value      stream         replace-attribute optional
         delete  value      stream         delete-attribute  optional
         with    value      integer        datatype          optional initial { LDAP_TEXT }
         values  modifiable stream         values            optional
         value   remainder  stream         value

  Where:

Where:
distinct-name


connection
add-attribute
replace-attribute
delete-attribute
datatype
values
value

Purpose

This function modifies an entry by adding, replacing, or deleting a specified attribute and its values. You can specify only one of the three options -- "add", "replace", or "delete" -- or an error will occur. If you "add", all of the attribute values will be added to the entry. If the attribute does not exist, it will be created. If you "replace", all of the values of the attribute will be deleted and the new values added. If you "delete", the attribute values will be deleted. If no attribute values are specified with the delete operation, all of the values of the specified attribute will be deleted.

Example:

     include "omldap.xin"

     process
        local ldapConnection my-ldap
        local ldapAttribute my-entry variable

        ...
        ldapModifyEntry "cn=Lalime,Department=hr,O=omnimark.com"
           on    my-ldap
           add   "phonenumber"
           value "(123) 456-1212"
           value "(123) 456-1213"

        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:29 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com

Copyright © OmniMark Technologies Corporation, 1988-2000.