# File lib/activeldap/schema2.rb, line 118 def binary?(attr) # Get syntax OID syntax = attr('attributeTypes', attr, 'SYNTAX') return false if syntax.empty? # This seems to indicate binary result = attr('ldapSyntaxes', syntax[0], 'X-NOT-HUMAN-READABLE') return true if result[0] == "TRUE" # Get if binary transfer is required (non-binary types) # Usually these have the above tag result = attr('ldapSyntaxes', syntax[0], 'X-BINARY-TRANSFER-REQUIRED') return true if result[0] == "TRUE" return false end