1

How can I change this query to find only records with numeric value of telephoneNumber attribute?

(&(objectClass=user)(telephoneNumber=*)(MemberOf=CN=Users,OU=Groups,DC=domain,DC=local))"

I have to be sure that this field contains only digits.

1 Answer 1

1

You can't do that with an LDAP filter.

You may however be able to constrain the attribute, so that non-numerical never get in there in the first place.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.