Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform


Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class LDAP MBS Network Plugin 15.0 Yes Yes Yes Yes No
Function: The class for LDAP connection.
// Get a handle to an LDAP connection and set any session preferences.
dim l as new LDAPMBS("localhost", 389)

// Use the ProtocolVersion session preference to specify that the client is an LDAPv3 client.
l.ProtocolVersion = 3
if l.Lasterror <> 0 then
dim error as string = l.ErrorString(l.Lasterror)
end if

// Bind to the server.
// In this example, the client binds anonymously to the server
// (no DN or credentials are specified).

l.SimpleBind("", "")
if l.Lasterror <> 0 then
dim error as string = l.ErrorString(l.Lasterror)
end if

const BASEDN = "dc=example,dc=com"
const SCOPE = l.kScopeSubtree
const FILTER = "(sn=Jensen)"

dim results() as Dictionary = l.Search(BASEDN, SCOPE, FILTER)

for each dic as Dictionary in results
Break // look in debugger
On Windows we use Microsoft's WinLDAP Library.
For Mac OS X and Linux we link to OpenLDAP, so be sure to have the right package installed on Linux.

Feedback, Comments & Corrections

Auth Modes

Constant Value Description
kAuthDigest &h4086 Only for Windows.
kAuthDPA &h2086 Only for Windows.
kAuthExternal &hA6
kAuthKRBV4 &hFF Only for Mac OS X and Linux.
kAuthKRBV41 &h81 Only for Mac OS X and Linux.
kAuthKRBV42 &h82 Only for Mac OS X and Linux.
kAuthMSN &h0886 Only for Windows.
kAuthNegotiate &h4FF Only for Windows.
kAuthNegotiateWin &h0486 Only for Windows.
kAuthNone 0 No auth.
kAuthNTLM &h1086 Only for Windows.
kAuthSASL &hA3 Only for Mac OS X and Linux.
kAuthSASLWin &h83 Only for Windows.
kAuthSicily &h0286 Only for Windows.
kAuthSimple &h80 Simple authentication.
kAuthSSPI &h4FF Only for Windows.


Constant Value Description
kScopeBase 0
kScopeDefault -1
kScopeOneLevel 1
kScopeSubordinate 3
kScopeSubtree 2


Constant Value Description
kVersion1 1
kVersion2 2
kVersion3 3

This class has no sub classes.

The items on this page are in the following plugins: MBS Network Plugin.

LCMS2ViewingConditionsMBS   -   LDAPModMBS

MBS Xojo Plugins