Platforms to show: All Mac Windows Linux Cross-Platform
Back to LDAPMBS class.
LDAPMBS.Add(distinguishedName as string, attrs() as LDAPModMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | LDAP | MBS Network Plugin | 15.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The Add function initiates a synchronous add operation that 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.
Before calling Add, you must create an entry by specifying its attributes in LDAPModMBS objects. Set the Operator member of each structure to kOperationAdd, and set the Type and Value members as appropriate for your entry.
LDAPMBS.Bind(Who as String, Cred as String, AuthMethod as Integer, Domain as String = "")
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | LDAP | MBS Network Plugin | 15.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Synchronously authenticates a client to the LDAP server.
Added domain parameter in plugin version 17.1, Windows only.
LDAPMBS.Connect(TimeOutSeconds as Double = 1.0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | LDAP | MBS Network Plugin | 15.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
On Mac does nothing.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | LDAP | MBS Network Plugin | 15.0 | ✅ Yes | ❌ No | ✅ Yes | ✅ Yes | All |
Creates a new connection without connecting.
See also:
LDAPMBS.Constructor(IP as string, Port as Integer, Open as Boolean = false, Secure as Boolean = false)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | LDAP | MBS Network Plugin | 15.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If open is true, we connect directly to server.
Secure: For Windows Vista and newer. Set to true for a secure connection with SSL. (only for open=false)
For connecting via SSL, please use on Mac OS X the Constructor taking the URL and specify ldaps protocol. For Windows use this constructor with secure parameter set to true.
Changed with 16.0 to work on Mac with secure = true. For Windows we switch to Open = false if secure is true.
See also:
LDAPMBS.Constructor(URL as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | LDAP | MBS Network Plugin | 15.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Added Windows support in 16.0 plugins.
See also:
LDAPMBS.Delete(distinguishedName as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | LDAP | MBS Network Plugin | 15.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
LDAPMBS.Modify(distinguishedName as string, attrs() as LDAPModMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | LDAP | MBS Network Plugin | 15.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Please pass one LDAPModMBS for each attribute to change.
The Modify function initiates a synchronous operation to modify 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. All modifications are performed in the order in which they are listed.
When connecting to an LDAP 2 server, the application must perform a bind operation (by calling one of the Bind or SimpleBind routines) before attempting any other operations.
LDAPMBS.Rename(distinguishedName as string, NewDistinguishedName as String, DeleteOldRdn as Boolean)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | LDAP | MBS Network Plugin | 15.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
LDAPMBS.Rename(distinguishedName as string, NewRDN as String, NewParent as String, DeleteOldRdn as Boolean)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | LDAP | MBS Network Plugin | 15.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
LDAPMBS.Search(distinguishedName as string, Scope as Integer, Filter as String, Attrs() as String = nil, AttributesOnly as boolean = false, timeout as Double = 1.0, SizeLimit as Integer = 0) as Dictionary()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | LDAP | MBS Network Plugin | 15.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The plugin will return result as array of Dictionaries, one for each item. Dictionary contains attributes with their values. A special entry has key = nil and as value the distinguish name of the item.
LDAPMBS.SimpleBind(Who as String, Cred as String)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | LDAP | MBS Network Plugin | 15.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | LDAP | MBS Network Plugin | 19.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Lasterror is set.
The items on this page are in the following plugins: MBS Network Plugin.