02-05-2017 06:19 AM - edited 03-17-2019 09:25 AM
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?
Solved! Go to Solution.
02-05-2017 11:43 AM
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
02-06-2017 06:28 AM
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
02-05-2017 06:44 AM
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.
02-05-2017 07:27 AM
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
02-05-2017 11:43 AM
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
02-06-2017 06:22 AM
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?
02-06-2017 06:28 AM
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
02-06-2017 07:05 AM
Ah.... I am not a MS guy, but I will google-fu it. Thanks!
02-06-2017 08:04 AM
For anyone else needing this in the future, the following works for me.
(&(objectCategory=person)(|(ipPhone=*)(mobile=*)))
04-10-2018 06:04 AM
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.
05-14-2018 12:50 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide