# File lib/ldap/ldif.rb, line 69 def clean # TODO: These operational attributes are those commonly used by # OpenLDAP 2.2. Others should probably be supported. # %w[ creatorsname createtimestamp modifiersname modifytimestamp entrycsn entryuuid structuralobjectclass ].each do |attr| @attrs.delete( attr ) end # Clean out duplicate attribute values. @attrs.each_key { |k| @attrs[k].uniq! } self end