http://qs321.pair.com?node_id=601260


in reply to Re^2: how to handle comparison of binary type attributes in LDAP
in thread how to handle comparison of binary type attributes in LDAP

(Read the link in my earlier post for several good explanations of the XY problem)

Comparing the length only doesn't help if , for example, your binary data is a set of bit flags ... the value is important, too. I'd recommend MIME::Base64 encoding each value before comparing (neatly sidestepping the question of whether or not the original was binary).


The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. — Cyrus H. Gordon
  • Comment on Re^3: how to handle comparison of binary type attributes in LDAP