LDAPMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

LDAPMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class LDAP MBS Network Plugin 15.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The class for LDAP connection.
Example
// 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)
Break
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)
Break
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
next

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.

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.

Scopes

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

Versions

Constant Value Description
kVersion1 1
kVersion2 2
kVersion3 3

This class has no sub classes.

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Release notes


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


LCMS2ViewingConditionsMBS   -   LDAPModMBS


💬 Ask a question or report a problem