
BBjLDAPEntry::getAttributeValues
Description
In BBj 11.0 and higher, this method returns a list of the values for the specified attribute.
Syntax
Return Value |
Method |
void |
getAttributeValues(string name) |
Parameters
Parameter |
Description |
name |
Name of the attribute. |
Return Value
Returns a BBjVector containing a list of the string values for the attribute.
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) attrs! = entry!.getAttributeValues("DESCRIPTION") for i = 0 to attrs!.size() - 1 print " " + attrs!.getItem(i) next i next e ldapCon!.close() |
See Also
BBjLDAPConnection
BBjLDAPSearchResult
BBj Object Diagram for an illustration of the relationship between BBjObjects