AttrModOp Property

An operation to apply on attributes during an LDAP modify operation.

Syntax

 ldap.getAttrModOp(index, [callback])
 ldap.setAttrModOp(index,  attrModOp, [callback])

Possible Values

  0 (amoAdd), 
  1 (amoDelete), 
  2 (amoReplace)

Default Value

0

Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for the getAttrModOp([callback]) method is defined as:

function(err, data){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'data' is the value returned by the method.

The callback for the setAttrModOp([callback]) method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

An operation to apply on attributes during an LDAP modify operation.

Possible values include:

amoAdd (0)amoAdd will add the specified value to the given attribute, creating the attribute if it does not already exist.
amoDelete (1)amoDelete will delete the specified value from the given attribute. If all or none of the values are specified for the value, the entire attribute will be deleted; otherwise only the specific value(s) listed will be removed.
amoReplace (2)amoReplace will replace all existing values of the given attribute with the new values specified.

The index parameter specifies the index of the item in the array. The size of the array is controlled by the AttrCount property.

This property is not available at design time.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Node.js Edition - Version 20.0 [Build 8307]