Search users&groups in windows 2016 AD with eldap

I think it’s something like:

filter = :eldap.and([
  :eldap.substrings('cn', [{:any, to_charlist(filter_term)}]),
  :eldap.or([
    :eldap.equalityMatch('objectClass', 'user'),
    :eldap.equalityMatch('objectClass', 'person'),
  ])
)])

but haven’t tried.

3 Likes