Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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 |
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 |
Returns value, list or error.
Qeries attribute values by name:
Set Variable [ $username ; Value: MBS("LDAP.SearchResult.AttributeValuesByName" ; $ldap ; $Index ; "sAMAccountName" ) ]
This function is free to use.
Created 7th September 2017, last changed 27th July 2021