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

ldap.name

 
 

Library: LDAP support (OMLDAP)
Import: omldap.xmd
Return type: String

Returns: The name of an LDAP attribute


Declaration

define string function name of ldap.attribute attr

Argument definitions

attr
An LDAP attribute


Purpose

The ldap.name function returns the name of the specified attribute.

The following example searches an LDAP server. The ldap.attribute shelf contains the selected attributes from the first entry that satisifed the search. The name of each attribute is output, along with its value.

  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'
     ldap.search my-ldap
        base  "o=stilo.com"
        scope ldap.scope-onelevel
        where  "(Department=RD)"
        into   my-entry
        select "name" and "employeenumber" and "phonenumber"
  
     repeat
        exit unless ldap.entry-exists my-entry
        output ldap.entry-name of my-entry
        repeat over my-entry
           output "%n   " || ldap.name of my-entry
               || ": " || ldap.reader of my-entry
        again
        output "%n"
        ldap.advance-entry my-entry
     again

        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 ] [ 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.