ldap.rename-entry

function

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

Declaration
define external function ldap.rename-entry
       in    value ldap.connection  connection
       from  value string           distinct-name
       to    value string           new-name

Argument definitions

connection
A connection to an LDAP server.
distinct-name
The current distinct name of the entry.
new-name
The new distinct name of the entry.


Purpose

This function renames an entry name on an LDAP server.

Example:


  import "omldap.xmd" prefixed by ldap.
  
  process
     local ldap.connection my-ldap
  
     set my-ldap to ldap.open 'www.stilo.com'
  
     ldap.rename-entry in my-ldap
        from 'cn="Margaretha Geertruida Zelle" o="SpyCenter"'
        to   'cn="Mata Hari"'