LDAP.AddList
------------

Adds an entry to a tree.

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

### Deprecated

This function was [deprecated](deprecated.md). Use [LDAP.AddJSON](LDAPAddJSON.md) instead.

MBS( "LDAP.AddList"; LDAPRef; DN; Type; List ) 

**MBS**( **"LDAP.AddList";** /\* Adds an entry to a tree. \*/  
**$LDAPRef**; /\* The reference number for the LDAP connection.e.g. $ldap \*/   
**$DN**; /\* The name of the entry to add. \*/   
**$Type**; /\* The name of the attribute to add. \*/   
**$List**) /\* The value for the attribute as a list.e.g. "Hello¶World" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| LDAPRef | The reference number for the LDAP connection. | $ldap |
| DN | The name of the entry to add. |  |
| Type | The name of the attribute to add. |  |
| List | The value for the attribute as a list. | "Hello¶World" |

### Result

Returns OK or error.

### Description

Adds an entry to a tree.  
The parent of the entry being added must already exist or the parent must be empty (equal to the root distinguished name) for an add operation to succeed.  
The list of values are transformed into a list for LDAP.  
  
Deprecated. Please use [LDAP.AddJSON](LDAPAddJSON.md) instead.  
### Examples

Add a list of values to a value:

 MBS ("LDAP.AddList"; $$connectLDAP ; "CN=Test\_FMPRO\_TEMPO2,OU=Eleves,DC=mss,DC=qc,DC=ca"; "objectClass"; "user¶top¶person¶organizationalPerson")  
### See also

- [LDAP.Add](LDAPAdd.md)
- [LDAP.AddJSON](LDAPAddJSON.md)

### Release notes

- **Version 10.1**
    - Deprecated [LDAP.Add](https://www.mbsplugins.eu/LDAPAdd.shtml), [LDAP.AddList](https://www.mbsplugins.eu/LDAPAddList.shtml), [LDAP.AddRecord](https://www.mbsplugins.eu/LDAPAddRecord.shtml) in favor of [LDAP.AddJSON](https://www.mbsplugins.eu/LDAPAddJSON.shtml).

### 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 6.4pr2](https://www.mbsplugins.de/archive/2016-07-27/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 20th July 2016 , last changed 12nd June 2020

  
[LDAP.AddJSON](LDAPAddJSON.md) - [LDAP.AddRecord](LDAPAddRecord.md)

[HTML Version](LDAPAddList.shtml)