LDAP Namespace


Classes


ldapClientHelper

constructor

With the help of this method you can create a new instance of ldapClientHelper.

Signature

constructor(Object options) : Object

Parameters

  • options
    • Options of the ldap client helper { ldap : // Object - Options of the ldap client according to "ldapjs" }
    • Type: Object

Returns

  • Object
    • Options of the ldap client helper { ldap : // Object - Options of the ldap client according to "ldapjs" }

connect

Connect to the configured LDAP server.

Signature

connect(Function callback) : void

Parameters

  • callback
    • Function to call when finished
    • Type: Function

close

Close the connection.

Signature

close(Function callback) : void

Parameters

  • callback
    • Function to call when finished
    • Type: Function

Search on the LDAP server.

Signature

search(String base, Object options, Function callback) : void

Parameters

  • base
    • Search DN
    • Type: String
  • options
    • Options for the search according to "ldapjs"
    • Type: Object
  • callback
    • Function to call when finished
    • Type: Function

resultsToJSON

Strip results to their attributes.

Signature

resultsToJSON(Array results) : Array

Parameters

  • results
    • Results array
    • Type: Array

Returns

  • Array
    • The return value is not further described