Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
LDAP.Add
Adds an entry to a tree.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
LDAP | 6.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |
Deprecated
This function was deprecated. Use LDAP.AddJSON instead.
MBS( "LDAP.Add"; LDAPRef; dn; Type { ; Value } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
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. | ||
Value | The value for the attribute. | Optional |
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.
With 6.4 plugin you can pass several more value parameters to form a list of values.
Deprecated. Please use LDAP.AddJSON instead.
Examples
Add a value:
MBS( "LDAP.Add"; $ldap; "test"; "cn"; "Hello" )
Add a value with 3 values:
MBS( "LDAP.Add"; $ldap; "test"; "cn"; "Hello"; "World"; "test" )
See also
Release notes
- Version 13.0
- Fixed a memory leak in LDAP.AddJSON and LDAP.ModifyJSON and added additional checks for the passed in JSON.
- 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
- Deprecated LDAP.Add, LDAP.AddList, LDAP.AddRecord in favor of LDAP.AddJSON.
- Fixed crash in LDAP.AddJSON with invalid data by improving error handling.
- Version 8.0
- Added JSON functions for LDAP: LDAP.AddJSON, LDAP.JSON and LDAP.ModifyJSON.
- Fixed parameter count error for LDAP.AddJSON.
- Version 7.0
- Added LDAP.AddRecord and LDAP.ModifyRecord functions.
Blog Entries
This function checks for a license.
Created 15th December 2015, last changed 12nd June 2020