Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3    Statistic  

LDAP.ModifyJSON

Changes an existing entry.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
LDAP JSON 8.0 Yes Yes Yes Yes No

MBS( "LDAP.ModifyJSON"; LDAPRef; dn; JSON )

Parameters

Parameter Description Example value
LDAPRef The reference number for the LDAP connection. $ldap
dn The name of the entry to add.
JSON The JSON to parse.
Must be a JSON array with entries. Each entry has an element operation with Add, Replace, Delete or Increment. Also a node with name "type" and the type to set. Than you can pass with value a single value or with values a list of values.

Result

Returns OK or error.

Description

Changes an existing entry.
If values are being added to or replaced in the entry, the function creates the attribute, if necessary. If values are being deleted, the function removes the attribute if no values remain.

Sample JSON for structure:

[{
    "operation": "Add",
    "type": "xxx",
    "values": ["Hello", "World"]
},
{
    "operation": "Replace",
    "type": "yyy",
    "value": "Other"
},
{
    "operation": "Delete",
    "type": "zzz"
}]

LDAP.Modify   -   LDAP.ModifyRecord

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins