# File lib/activeldap/schema2.rb, line 138 def binary_required?(attr) # Get syntax OID syntax = attr('attributeTypes', attr, 'SYNTAX') return false if syntax.empty? # 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