LDAP.ModifyRecord
-----------------

Changes an existing entry.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [LDAP](component_LDAP.md) | [7.0](newinversion70.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md). Use [LDAP.ModifyJSON](LDAPModifyJSON.md) instead.

MBS( "LDAP.ModifyRecord"; LDAPRef; OperationType; DN; Type... { ; Value... } ) 

**MBS**( **"LDAP.ModifyRecord";** /\* Changes an existing entry. \*/  
**$LDAPRef**; /\* The reference number for the LDAP connection.e.g. $ldap \*/   
**$OperationType**; /\* What to do. Can be Delete, Replace or Add.e.g. "Replace" \*/   
**$DN**; /\* The name of the entry to modify. \*/   
**$Type...**; /\* The name of the attribute to modify. \*/   
**$Value...**) /\* Optional; The value for the attribute. \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| LDAPRef | The reference number for the LDAP connection. | $ldap |  |
| OperationType | What to do. Can be Delete, Replace or Add. | "Replace" |  |
| DN | The name of the entry to modify. |  |  |
| Type... | The name of the attribute to modify. |  |  |
| Value... | The value for the attribute. |  | Optional |

### 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.  
This version of the Modify can add several keys and values with simple text values.  
So please pass as many parameters as you need, always with key and value.  
  
Deprecated. Please use [LDAP.ModifyJSON](LDAPModifyJSON.md) instead.  
  
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.  
Please repeat Type and Value parameters as often as you need.  
### See also

- [LDAP.Modify](LDAPModify.md)
- [LDAP.ModifyJSON](LDAPModifyJSON.md)

### Release notes

- **Version 10.1**
    - Deprecated [LDAP.Modify](https://www.mbsplugins.eu/LDAPModify.shtml) and [LDAP.ModifyRecord](https://www.mbsplugins.eu/LDAPModifyRecord.shtml) in favor of [LDAP.ModifyJSON](https://www.mbsplugins.eu/LDAPModifyJSON.shtml).
- **Version 7.0**
    - Added [LDAP.AddRecord](http://www.mbsplugins.eu/LDAPAddRecord.shtml) and [LDAP.ModifyRecord](http://www.mbsplugins.eu/LDAPModifyRecord.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin, version 10.1pr6](https://www.mbsplugins.de/archive/2020-03-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 7.0pr2](https://www.mbsplugins.de/archive/2017-01-09/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 5th January 2017 , last changed 5th June 2021

  
[LDAP.ModifyJSON](LDAPModifyJSON.md) - [LDAP.Release](LDAPRelease.md)

[HTML Version](LDAPModifyRecord.shtml)