API
  • Introduction
  • Overview
    • Introduction
  • REST API
    • Invoking Platform from external apps
  • Client-side variables
    • Inside a client-side Javascript action
  • Client-side Javascript API
    • Global methods and UI API
    • Uploading files
    • Window
  • Server-side issues
    • Designing a Web Service
    • Server-side Javascript Debugger
  • Server-side variables
    • Inside a business component
    • Inside a server-side Javascript action
  • Server-side Javascript API
    • Monitoring
    • Alert
    • Email
    • HTTP
    • JWT
    • Ldap
    • CSV-Text File
    • Image File
    • Excel File
    • PDF File
    • Other Files
    • Other
    • MongoDB
    • Reporting
    • Sql
    • XML
    • Activiti BPM
    • Archiflow
    • Import Cells from xlsx
    • Import Rows from csv, xls and xlsx
    • User management
    • Whatsapp
    • Chips panel
    • Google Cloud Storage
    • Google GSuite
    • Google Spanner
    • Google BigQuery
    • Google Datastore
    • Google App Engine
    • Google Sheet
  • Function JSS EE
  • Function JSS
Powered by GitBook
On this page
  • Add an attribute (e.g. "member of") to the entry identified by "filterDN"
  • Remove an attribute (e.g. "memberOf") from the entry identified by "filterDN"
  • Get a list of records read from the LDAP server
  • Get a list of Strings, related to multiple attribute values

Was this helpful?

  1. Server-side Javascript API

Ldap

Add an attribute (e.g. "member of") to the entry identified by "filterDN"

Syntax

var num = utils.addAttribute(host, port, filterDN, ldapUsername, ldapPassword, attributeNameToAdd, attributeValueToAdd);

Details

Argument

Description

host

LDAP host

port

LDAP port (optional: if not specified, 389 will be used)

 filterDN - base DN to apply as a filter

Argument

Description

ldapUsername

username to use to authenticate to the LDAP server

ldapPassword

password to use to authenticate to the LDAP server

attributeNameToAdd

attribute name to add to every entry matching the search criteria

attributeValueToAdd

attribute value to add to every entry matching the search criteria

Returns the number of entries found and updated

Remove an attribute (e.g. "memberOf") from the entry identified by "filterDN"

Syntax

var num = utils.removeAttribute(host, port, filterDN, ldapUsername, ldapPassword, attributeNameToRemove, attributeValueToRemove);

Details

Argument

Description

host

LDAP host

port

LDAP port (optional: if not specified, 389 will be used)

 filterDN - base DN to apply as a filter

Argument

Description

ldapUsername

username to use to authenticate to the LDAP server

ldapPassword

password to use to authenticate to the LDAP server

attributeNameToRemove

attribute name to remove from every entry matching the search criteria

attributeValueToRemove

attribute value to remove from every entry matching the search criteria

Returns number of entries found and updated

Get a list of records read from the LDAP server

where each record is expressed as a Javascript Object

Syntax

var listOfObjects = utils.getEntriesList(host, port, baseDN, ldapUsername, ldapPassword, searchAttributes,attributesListToRead);

Details

Argument

Description

host

LDAP host

port

LDAP port (optional: if not specified, 389 will be used)

 baseDN - base DN to apply as a filter

Argument

Decription

ldapUsername

username to use to authenticate to the LDAP server

ldapPassword

password to use to authenticate to the LDAP server

searchAttributes

attributes to apply as a filter

attributesListToRead

list of attribute names to take into account when reading records from the LDAP server: these will be the only ones to use when creating the JSON result

Returns a list of records read from the LDAP server, where each record is expressed as a Javascript object.

Get a list of Strings, related to multiple attribute values

starting from a specified attribute name of a specific entry read from the LDAP server

Syntax

var listOfStrings = utils.getMultipleValuesList(host, port, baseDN, ldapUsername, ldapPassword, searchAttributes, attributeName);

Details

Argument

Description

host

LDAP host

port

LDAP port (optional: if not specified, 389 will be used)

 baseDN - base DN to apply as a filter

Argument

Description

ldapUsername

username to use to authenticate to the LDAP server

ldapPassword

password to use to authenticate to the LDAP server

searchAttributes

attributes to apply as a filter, in order to identity a single entry into the LDAP server

attributeName

attribute name to read: each matching found will generate a row in the results list

PreviousJWTNextCSV-Text File

Last updated 5 years ago

Was this helpful?