Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

LDAP.SearchResult.AttributeValuesByName

Returns the values for an attribute in an entry.

Component Version macOS Windows Linux Server iOS SDK
LDAP 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ❌ No
MBS( "LDAP.SearchResult.AttributeValuesByName"; LDAPRef; EntryIndex; AttributeName { ; NoReturnEnding } )   More

Parameters

Parameter Description Example Flags
LDAPRef The reference number for the LDAP connection. $ldap
EntryIndex The index in the search results.
Range from 0 to LDAP.SearchResult.EntryCount-1.
$index
AttributeName The name of the attribute. "FirstName"
NoReturnEnding Pass 1 to have no extra newline character on the end of the returned list. Default is 1 to include none, so a list with one value behaves as a text value. 1 Optional

Result

Returns value, list or error.

Description

Returns the values for an attribute in an entry.
This function searches attributes by name instead of index.
If nothing is found, you get empty result.

Examples

Qeries attribute values by name:

Set Variable [ $username ; Value: MBS("LDAP.SearchResult.AttributeValuesByName" ; $ldap ; $Index ; "sAMAccountName" ) ]

See also

Release notes

Blog Entries

This function is free to use.

Created 7th September 2017, last changed 27th July 2021


LDAP.SearchResult.AttributeValues - LDAP.SearchResult.Count