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

getLDAPConnection()

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.BBjLDAPSearchResult
use com.basis.bbj.proxies.ldap.BBjLDAPConnection

declare BBjLDAPConnection ldapCon!

rem 'Get a connection to a specific LDAP server
host$ = "localhost"
port = 10389
authDN$ = "uid=admin,ou=system"
pwd$ = "secret"
ldapCon! = BBjAPI().getLDAPConnection(host$, port, authDN$, pwd$)

rem 'Get a connection to the LDAP server that was currently used for auth
ldapCon! = BBjAPI().getLDAPConnection()

See Also

Using LDAP and Active Directory User Authentication

Object Variables

BBj Object Creation and Assignment

BBj Object Error Handling

BBj Object Operators

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.