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 Assignment

BBj Object Error Handling

BBj Object Operators

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




______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.