
BBjLDAPConnection::bind
Description
In BBj 11.0 and higher, this method reconnects and authenticates the user with the LDAP server.
Syntax
Return Value |
Method |
BBjLDAPBindResult |
bind(string bindDN, string password) |
Parameters
Parameter |
Description |
bindDN |
Full DN (distinguished name) for authentication. Depending on the way the LDAP server is configured, this might be just the user name or it may be something like: uid=admin,ou=system |
password |
Password required for authentication. |
Return Value
Returns a BBjLDAPBindResult object which contains information regarding the request..
Remarks
None.
Example
REM ' getLDAPConnection sample 1 use com.basis.bbj.proxies.ldap.BBjLDAPConnection declare BBjLDAPBindResult bindResult! host$ = "localhost" port = 10389 authDN$ = "uid=admin,ou=system" pwd$ = "secret" ldapCon! = BBjAPI().getLDAPConnection(host$, port, authDN$, pwd$) ldapCon!.close() bindResult! = ldapCon!.bind(authDN$, pwd$) |
See Also
BBjLDAPConnection
BBjLDAPSearchResult
BBj Object Diagram for an illustration of the relationship between BBjObjects