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 |
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.
- event Error(ErrorCode as Integer, ErrorMessage as String, FunctionName as String)
- 7 properties
- property CACertFile as FolderItem
- property Handle as Integer
- property Lasterror as Integer
- property NetworkTimeOut as Double
- property ProtocolVersion as Integer
- property Referrals as Integer
- property TimeOut as Double
- 13 methods
- method Add(distinguishedName as string, attrs() as LDAPModMBS)
- method Bind(Who as String, Cred as String, AuthMethod as Integer, Domain as String = "")
- method Connect(TimeOutSeconds as Double = 1.0)
- method Constructor
- method Constructor(IP as string, Port as Integer, Open as Boolean = false, Secure as Boolean = false)
- method Constructor(URL as string)
- method Delete(distinguishedName as string)
- method Modify(distinguishedName as string, attrs() as LDAPModMBS)
- method Rename(distinguishedName as string, NewDistinguishedName as String, DeleteOldRdn as Boolean)
- method Rename(distinguishedName as string, NewRDN as String, NewParent as String, DeleteOldRdn as Boolean)
- method 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()
- method SimpleBind(Who as String, Cred as String)
- method StartTLS
- shared method ErrorString(error as Integer) as string
- 24 constants
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
- MBS Xojo Plugins, version 20.2pr1
- MBS Xojo Plugins, version 20.1pr3
- MBS Xojo Plugins, version 19.4pr1
- MonkeyBread Software Releases the MBS Xojo Plugins in version 19.3
- OpenDirectory Framework for Xojo
- MBS Xojo Plugins, version 19.2pr1
- MBS Xojo Plugins, version 18.5pr7
- MBS Xojo / Real Studio Plugins, version 17.1pr1
- MBS Xojo / Real Studio Plugins, version 16.3pr3
- MBS Xojo / Real Studio Plugins, version 15.5pr3
Xojo Developer Magazine
- 18.3, page 50: Happy Birthday MonkeyBread Software, What is new in the MBS Xojo Plugins by Stefanie Juchmes
- 17.5, page 9: News
Release notes
- Version 20.2
- Changed LDAPMBS class to load ldap library on runtime for Linux and MacOS.
- Version 20.1
- Fixed LDAPMBS class to load LDAP framework earlier.
- Version 19.4
- Added CACertFile property for LDAPMBS class.
- Version 19.3
- Added StartTLS method to LDAPMBS class.
- Version 19.2
- Changed NetworkTimeOut and TimeOut in LDAPMBS class to be double value with seconds.
- Version 18.5
- Changed how timeout is passed to LDAPMBS.Search function.
- Version 17.1
- Fixed issue with LDAPMBS.Bind not working correctly on Windows for all auth methods.
The items on this page are in the following plugins: MBS Network Plugin.
LCMS2ViewingConditionsMBS - LDAPModMBS