开发者

LDAP Filter Question

开发者 https://www.devze.com 2023-03-31 05:12 出处:网络
This is开发者_开发问答 the filter I am using: (&(ObjectClass=user)(employeeID=*)(mail=*)) And I get back what I need. However, there are way too many results return and so I want to only get th

This is开发者_开发问答 the filter I am using:

(&(ObjectClass=user)(employeeID=*)(mail=*))

And I get back what I need. However, there are way too many results return and so I want to only get those users whose sn starts with an 'a'.

So, I changed my filter to:

(&(ObjectClass=user)(employeeID=*)(mail=*)(sn=a*))

But there is no change in the results from the orignal filter.

What am I doing wrong here?


The implication of that is that the filter (sn=a*) doesn't actually work, which is hard to believe. You could try putting it first in the filter string, but I think it's much more likely that you aren't executing the code you think you're executing.

0

精彩评论

暂无评论...
验证码 换一张
取 消