Defining LDAP labels
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.
Answers (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
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