[brlug-general] ldap question
Dustin Puryear
dustin at puryear-it.com
Fri Jan 26 12:57:27 CST 2007
Everyone that has the attribute and a non-empty value for the
attribute:
(&(slucmsuid=*)(!(slucmsuid='')))
---
Puryear Information Technology, LLC
Baton Rouge, LA * 225-706-8414
http://www.puryear-it.com
Author:
"Best Practices for Managing Linux and UNIX Servers"
"Spam Fighting and Email Security in the 21st Century"
Download your free copies:
http://www.puryear-it.com/publications.htm
Friday, January 26, 2007, 12:26:28 PM, you wrote:
> Ok getting closer... you're right, it's an empty string. Found this code
> in our mess of scripts:
> /usr2/ldap/bin/sluldap_disuser.pl: $entry->{slucmsuid} = [''];
> So:
> (slucmsuid='') does in fact return everyone with an slucmsuid of ''.
> However, this query:
> (!(slucmsuid='')) returns everyone with an slucmsuid NOT '', which is
> good, But it ALSO returns everyone that has no slucmsuid attribute on
> their account, which is bad. Any other ideas?
> ray
> On Fri, 26 Jan 2007, Dustin Puryear wrote:
>> Technically, I don't think an LDAP value can ever be null. Is it an
>> empty string? What about:
>>
>> (slucmsuid='')
> _______________________________________________
> General mailing list
> General at brlug.net
> http://mail.brlug.net/mailman/listinfo/general_brlug.net
More information about the General
mailing list