LDAP.SearchResult.DistinguishedName
-----------------------------------

Queries distinguished name for an entry in search results.

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

MBS( "LDAP.SearchResult.DistinguishedName"; LDAPRef; EntryIndex ) 

**MBS**( **"LDAP.SearchResult.DistinguishedName";** /\* Queries distinguished name for an entry in search results. \*/  
**$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 \*/ 

### 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 |

### Result

Returns value or error.

### Description

Queries distinguished name for an entry in search results.  
This is like the unique record ID for this entry.  
### Examples

Query distinguished name for an entry:

 Set Variable \[$EntryName ; Value:MBS ("LDAP.SearchResult.DistinguishedName"; $ldap ; $EntryIndex )\]  
### See also

- [LDAP.Connect](LDAPConnect.md)
- [LDAP.JSON](LDAPJSON.md)
- [LDAP.ModifyJSON](LDAPModifyJSON.md)
- [LDAP.Rename](LDAPRename.md)
- [LDAP.Search](LDAPSearch.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 16th December 2015

  
[LDAP.SearchResult.Count](LDAPSearchResultCount.md) - [LDAP.SetBinaryKeys](LDAPSetBinaryKeys.md)

[HTML Version](LDAPSearchResultDistinguishedName.shtml)