Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  

LDAP.AddRecord

Adds an entry to a tree.

Component: LDAP
Version: 7.0
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "LDAP.AddRecord"; LDAPRef; dn; Type { ; Value; TypeN; ValueN } )

Parameters

Parameter Description Example value
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 Optional
The value for the attribute.
TypeN Optional
nth attribute name.
ValueN Optional
nth attribute value.

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.
This version of the Add can add several keys and values with simple text values.
So please pass as many parameters as you need, always with key and value.

Examples

Add two values:

MBS( "LDAP.Add"; $ldap; "test"; "cn"; "Hello"; "fn"; "World" )

See also


LDAP.AddList   -   LDAP.Bind

Feedback: Report problem or ask question.




Links
MBS REALbasic Plugins - Nachhilfe in Nickenich