
BBjLDAPConnection
Description
In BBj 11.0 and higher, BBjLDAPConnection provides access to an LDAP or Active Directory server and the information it contains.
Creation
Obtain a BBjLDAPConnection object through the following BBjAPI method:
Return Value |
Method |
BBjLDAPConnection |
|
BBjLDAPConnection |
getLDAPConnection(host, port, bindDN, password) |
Methods of BBjLDAPConnection
Return Value |
Method |
BBjLDAPBindResult |
bind(string bindD, string password) |
void |
close() |
BBjSearchResult |
search(string baseDN, int scope, int sizeLimit, int timeLimit, string filter) |
Remarks
None.
Constants
None.
Example
REM ' BBjLDAPConnection use com.basis.bbj.proxies.ldap.BBjLDAPConnection host$ = "localhost" port = 10389 authDN$ = "uid=admin,ou=system" pwd$ = "secret" ldapCon! = BBjAPI().getLDAPConnection(host$, port,
authDN$, pwd$) ldapCon! = BBjAPI().getLDAPConnection() |
See Also
Using LDAP and Active Directory User Authentication
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.