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

ldap.add-entry

 
 

Library: Interfaces, LDAP support (OMLDAP)
Import: omldap.xmd

Declaration

  define external function ldap.add-entry
      to         value        ldap.connection connection
      named      value        stream          distinct-name
      attributes modifiable   ldap.attribute  attributes optional

Argument definitions

connection
A connection to an LDAP server.
distinct-name
The distinct name of the new entry.
attributes
A shelf of ldap.attribute items and their values.


Purpose

This function adds a directory entry to the LDAP server.

  import "omldap.xmd" prefixed by ldap.

  process
     local ldap.connection my-ldap
     local ldap.attribute  my-entry variable

     set my-ldap to ldap.open 'www.stilo.com'

     set new my-entry to ldap.create-attribute named "cn"
        with-value "Brown" and "V. Brown" and "Valerie Brown"

     ldap.add-entry my-ldap
        named "cn=Brown,Department=hr,o=stilo.com"
        attributes my-entry

        Other Library Functions
   ldap.add-entry
   ldap.advance-entry
   ldap.attribute
   ldap.close
   ldap.connection
   ldap.create-attribute
   ldap.delete-entry
   ldap.entry-exists
   ldap.entry-name
   ldap.modify-entry
   ldap.name
   ldap.omldap-version
   ldap.open
   ldap.reader
   ldap.rename-entry
   ldap.retrieve-values
   ldap.search
 
 

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

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:45:25 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.