Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
LDAP.ModifyJSON
Changes an existing entry.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
LDAP JSON
|
8.0 |
✅ Yes
|
✅ Yes
|
✅ Yes
|
✅ Yes
|
❌ No
|
MBS( "LDAP.ModifyJSON"; LDAPRef; dn; JSON )
More
MBS(
"LDAP.ModifyJSON"; /* Changes an existing entry. */
$LDAPRef; /* The reference number for the LDAP connection.e.g. $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. */
Less
Parameters
Parameter |
Description |
Example |
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"
}]
Version 10.1 or newer accepts name instead of type for the key to match the search results.
Version 10.3 adds new boolean fields "hex" and "base64". If true, we decode value from hex/base64 encoding and pass them as binary values.
See also
Release notes
- Version 10.3
- Added option to LDAP.AddJSON and LDAP.ModifyJSON to include boolean keys "hex" and "base64" in JSON with true value to pass values as hex/base64 string, which the plugin decodes and passes to LDAP server.
- Version 10.1
- Version 8.0
Blog Entries
FileMaker Magazin
Created 11st December 2017, last changed 10th July 2020
LDAP.Modify
-
LDAP.ModifyRecord
Feedback: Report problem or ask question.