When I am using the LDAP browser feature to build a LDAP label, I have the option to use the Filter Builder. On the list of Relational Operators, at the bottom of the list, is ~= and !~=. What do these represent? I've looked at table after table of operators and haven't come across these.

Thanks for the help.

Answer Summary:
I would stay away from ~= (i.e. soundex approximate match) because it can yeild odd results. You might test it today and it's great but then tomorrow you add a machine that matches the soundex undesirably. Stick to operators you have a clear understanding of how they work and pertain to conventions in your operands. Wildcards can be very useful. e.g. to return all laptops according to your naming convention samaccountname=*-LPTP on a KBOX this would be useful after adding in one of the KBOX_ variable: (&(samaccountname=*-LPTOP)(samaccountname=KBOX_COMPUTER_NAME)) Note that wildcards are not allowed as portions of derived names (names calculated on the fly) such as distinguishedName
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

2

I would stay away from ~= (i.e. soundex approximate match) because it can yeild odd results. You might test it today and it's great but then tomorrow you add a machine that matches the soundex undesirably.  Stick to operators you have a clear understanding of how they work and pertain to conventions in your operands. 

Wildcards can be very useful. e.g.  to return all laptops according to your naming convention

samaccountname=*-LPTP

on a KBOX this would be useful after adding in one of the KBOX_ variable:

 (&(samaccountname=*-LPTOP)(samaccountname=KBOX_COMPUTER_NAME))

Note that wildcards are not allowed as portions of derived names (names calculated on the fly) such as distinguishedName

Answered 12/20/2012 by: GillySpy
Seventh Degree Black Belt

Please log in to comment

Answers

0

Proximity:(attribute~=abc)    e.g. (displayName~=Foeckeler) AKA Approximate match

Absence:(!(attribute=*))      e.g. (displayName!~=Foeckler) AKA Approximate NOT

Answered 12/19/2012 by: jdornan
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity