MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

LDAPMBS class

class, LDAP, MBS Network Plugin (LDAP), class LDAPMBS,
Plugin version: 15.0, Mac: Yes, Win: Yes, Linux: Yes, Console & Web: Yes, Feedback.

Function: 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
Notes:
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.


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


LCMS2ViewingConditionsMBS   -   LDAPModMBS




Links
MBS Xojo Plugins