cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
10316
Views
0
Helpful
9
Replies

LDAP filter for IP phone and mobile

David Harrell
Level 1
Level 1

Does anyone here use a custom LDAP filter in CUCM to pull in all users with an IP Phone and/or a Mobile phone? We are building a Jabber environment, and our existing custom LDAP filter just pulls in users with an IP Phone value. If I go to no filter, then I can see the users mobile numbers in Jabber, which is preferred. Removing that filter syncs every user account, which is not preferred. Anyone know of a way to sync users that have an IP Phone value and/or a mobile phone value set?

2 Accepted Solutions

Accepted Solutions

Jonathan Schulenberg
Hall of Fame
Hall of Fame

Sure. Just use a logical OR operator in the LDAP filter. The filter is passed as-is to the LDAP server when making the query so the syntax is not Cisco-specific.

https://msdn.microsoft.com/en-us/library/aa746475(v=vs.85).aspx

View solution in original post

I believe it would be "(&(objectCategory=person)(|(ipPhone=*)(mobile=*)))"

You can use the advanced search of ADUC to test filters.

https://technet.microsoft.com/en-us/library/aa996205(v=exchg.65).aspx

View solution in original post

9 Replies 9

Andrew West
Level 4
Level 4

Why not just use the IP Phone field since you already are? 

If a user has a mobile phone just put a value in the IP Phone field or just put the users number in the IP phone field.

That field has not actual tie into an IP Phone..You could literally put an X in there and it will import because the normal filter is just looking for any value in that specific field. 

Using only the IP Phone field worked great until we started implementing Jabber. The issue is once you add a contact, you can no longer see their mobile number in the call option.  if you have not added them as a contact, then you can see the mobile number as a call option when searching for the person. 

So my may may be more related to Jabber than LDAP filters, but once I remove the custom filter and sync we can see the mobile number as a call option in Jabber

Jonathan Schulenberg
Hall of Fame
Hall of Fame

Sure. Just use a logical OR operator in the LDAP filter. The filter is passed as-is to the LDAP server when making the query so the syntax is not Cisco-specific.

https://msdn.microsoft.com/en-us/library/aa746475(v=vs.85).aspx

Thanks for the resource! So would you imagine the filter would change from:

(&(objectCategory=person)(ipPhone=*)) to (&(objectCategory=person)(ipPhone=*)|(mobile=*))

Or would (&(objectCategory=person)(ipPhone=* | mobile=*)) be the correct solution?

I believe it would be "(&(objectCategory=person)(|(ipPhone=*)(mobile=*)))"

You can use the advanced search of ADUC to test filters.

https://technet.microsoft.com/en-us/library/aa996205(v=exchg.65).aspx

Ah.... I am not a MS guy, but I will google-fu it. Thanks!

For anyone else needing this in the future, the following works for me.

(&(objectCategory=person)(|(ipPhone=*)(mobile=*)))

fedor.solovev
Spotlight
Spotlight

Hello,
could you give a hint how to configure LDAP filter for telephone number contains only 4 digits ?
TelephoneNumber=* means any digits at this AD field.

Hi, guys.
I have found out - there is no option to filter users by the amount of digits in the number. This limitation is related to AD itself, not to CUCM.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: