Introduction

If LDAP is properly configured, the phone performs a lookup on the LDAP server for any entries with a telephoneNumber attribute set each time you start entering a number or name on the phone keypad.

If you type in digits then the phone displays all entries where the telephoneNumber begins with the same number entered so far. If you are typing in a name then the phone displays all entries where the displayName (or whatever name filter is set) begins with what has been entered so far. (This is not case-sensitive.)

Use the up and down arrows of the button to scroll through results and dial a highlighted entry by pressing .



Usage

There are two ways to perform a LDAP search on your phone:



Configuration

The internal LDAP client can be configured at the LDAP Section of your phone's Web User Interface (WUI). In your snom phone you will see something like the following screenshot,
For more details and comprehension see examples 1 to 6:


Since version V10.1.27.0 two additional LDAP settings are available: LDAP Name Filter During Call and LDAP Number Filter During Call. These filter rules are taken during call, for example when dialing or for looking up an incoming call.


Example Configuration

You can use the below settings as a starting point and adjust the filter and display attributes according to your needs.

Make also sure, that the Number Display Style is set accordingly to return either name, number or both.

 


Migrating settings for LDAP from an older version to version >= V10.1.27.0

Very often no special migration steps are necessary, the LDAP filter will still work. Still this section describes how the old settings in conjunction worked, and how that can be adjusted in the filter rules. Now additional filter rules are available, and the full notation of substring filters can be used.

Partial Lookup is no longer taken for LDAP

Please note that the setting partial lookup was only taken into account for searches during call, meaning displaying the name of a caller, direct dial, or in connected state. To adjust the settings (if necessary) please use the new settings ldap_number_filter_during_call and ldap_search_filter_during_call. The described filter syntax can of course also be used for the old settings ldap_number_filter and ldap_search_filter. They are used in cases if the search takes place via the LDAP directory.

Perform Initial Query in LDAP state changed slightly



Example 1: LDAP name filter

Here you have to specify your search criteria for name look ups.




Example 2: LDAP number filter

Here you have to specify your search criteria for number look ups.


See more filter documentation here: https://ldap.com/ldap-filters/



Example 3: LDAP Base

Here are some examples of what you cound enter for the ldap_base setting


o=UNIVERSITY OF NEW ORLEANS,c=US
o=SFU,c=CA
dc=telesec,dc=de



Example 4: LDAP name attributes

The LDAP name attributes setting can be used to specify the “name” attributes of each record which are to be returned in the LDAP search results.

See the following screenshot example of an Active Directory:



Further Examples:


Note: Only givenName is being accepted as name attribute but not its abbreviation gn!




Example 5: LDAP number attributes

The LDAP number attributes setting can be used to specify the “number” attributes of each record which are to be returned in the LDAP search results.

See this screenshot example of an Active Directory:



Further examples:



Example 6: LDAP display name

This setting specifies the format in which the “name, e.g. here Mike Black” of each returned search result is to be displayed on the snom phone.




Common attributes

Most common attributes used to configure LDAP lookup in your phone with:

AbbrevationNameDescriptionExample
gngivenNameFirstname also called Christian nameJohn
snsurnameSurname, last name or family nameDoe
cncommonNameLDAP attribute being made up from givenName joined to SNJohn Doe
-displayNameWhen using this property, be sure you understand which field you are configuring. DisplayName can be confused with CN or description.John Doe
-companyCompany or organisation namesnom Technology
oorganizationNameOrganization name or even organizational nameGermany
ouorganizationalUnitNameUsually department or any sub entity of larger entityDocumentation
DCDCDomain Componentsnom com
DNdistinguishedNameunique identifier for each entrycn=John Doe,ou=Documentation,dc=snom,dc=com
-telephoneNumberOffice phone number+493012345678
mobilemobileTelephoneNumberMobile or cellular phone number+4917212993833
homePhonehomeTelephoneNumberHome Phone number+492088190292



Troubleshooting

A good method to troubleshoot problems with LDAP implementation is to do a PCAP trace while performing a lookup. By tracing the search requests you can check if the phone connects and authenticates correctly and determine which requests are being sent from phone to LDAP server.


Below you can see an example of a successful LDAP lookup: