
BBjLDAPEntry::getDN
Description
In BBj 11.0 and higher, this method returns the distinguished name (DN) for the location of the entry.
Syntax
Return Value |
Method |
string |
getDN() |
Parameters
None.
Return Value
Returns the distinguished name (DN) for the location of the entry.
Remarks
None.
Example
use com.basis.bbj.proxies.ldap.BBjLDAPSearchResult use com.basis.bbj.proxies.ldap.BBjLDAPConnection declare BBjLDAPSearchResult searchResults! declare BBjVector entries! declare BBjVector attrs! host$ = "localhost" port = 10389 authDN$ = "uid=admin,ou=system" pwd$ = "secret" ldapCon! = BBjAPI().getLDAPConnection(host$, port, authDN$, pwd$) searchResults! = ldapCon!.search("ou=system",BBjLDAPSearchResult.SCOPE_ONE, 100, 100, "(objectClass=*)") entries! = searchResults!.getSearchEntries() for e = 0 to entries!.size() - 1 entry! = entries!.getItem(e) print entry!.getDN() next e ldapCon!.close() |
See Also
BBjLDAPConnection
BBjLDAPSearchResult
BBj Object Diagram for an illustration of the relationship between BBjObjects