LDAP.SearchResult.AttributeName
-------------------------------

Returns the name of an attribute in an entry.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [LDAP](component_LDAP.md) | [6.0](newinversion60.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "LDAP.SearchResult.AttributeName"; LDAPRef; EntryIndex; AttributeIndex ) 

**MBS**( **"LDAP.SearchResult.AttributeName";** /\* Returns the name of an attribute in an entry. \*/  
**$LDAPRef**; /\* The reference number for the LDAP connection.e.g. $ldap \*/   
**$EntryIndex**; /\* The index in the search results.   
Range from 0 to LDAP.SearchResult.EntryCount-1.e.g. $index \*/   
**$AttributeIndex**) /\* The index of the attribute.  
From 0 to [LDAP.SearchResult.AttributeCount](LDAPSearchResultAttributeCount.md)-1.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| 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 |
| AttributeIndex | The index of the attribute.   From 0 to [LDAP.SearchResult.AttributeCount](LDAPSearchResultAttributeCount.md)-1. | 0 |

### Result

Returns value or error.

### Description

Returns the name of an attribute in an entry.  
### See also

- [LDAP.Connect](LDAPConnect.md)
- [LDAP.Search](LDAPSearch.md)
- [LDAP.SearchResult.AttributeCount](LDAPSearchResultAttributeCount.md)
- [LDAP.SearchResult.AttributeNames](LDAPSearchResultAttributeNames.md)
- [LDAP.SearchResult.AttributeValue](LDAPSearchResultAttributeValue.md)
- [LDAP.SearchResult.AttributeValueCount](LDAPSearchResultAttributeValueCount.md)
- [LDAP.SearchResult.AttributeValues](LDAPSearchResultAttributeValues.md)
- [LDAP.SearchResult.AttributeValuesByName](LDAPSearchResultAttributeValuesByName.md)
- [LDAP.SearchResult.Count](LDAPSearchResultCount.md)

### Example Databases

- [Network/LDAP Query](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Network/LDAP%20Query.shtml#1ScriptAnchor_)

### Blog Entries

- [LDAP in FileMaker](https://www.mbsplugins.de/archive/2015-12-16/LDAP_in_FileMaker/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 15th December 2015 , last changed 15th August 2025

  
[LDAP.SearchResult.AttributeCount](LDAPSearchResultAttributeCount.md) - [LDAP.SearchResult.AttributeNames](LDAPSearchResultAttributeNames.md)

[HTML Version](LDAPSearchResultAttributeName.shtml)