def user_set_chat(attribs, dir_info)
      attribs = user_record_name_alternatives(attribs)
      check_critical_attribute( attribs, :record_name )

      attribs[:values] = attribs[:values] || attribs[:im_handle]
      attribs[:values] = attribs[:values] || attribs[:imhandle]
      attribs[:values] = attribs[:values] || attribs[:handle]
      attribs[:values] = attribs[:values] || attribs[:chat]
      attribs[:values] = attribs[:values] || attribs[:im]

      answer = []
      Array(attribs[:values]).each_with_index do |value, index|
        attribs[:value] = value
        case index
        when 0
          answer << user_create_chat(attribs, dir_info)
        else
          answer << user_append_chat(attribs, dir_info)
        end
      end
      attribs[:value] = nil
      return answer  unless attribs[:values].nil? or attribs[:values].empty?
      raise ArgumentError, "values: '#{attribs[:values].inspect}' invalid, value_name: :chats"
    end
def user_set_chat(attribs, dir_info)
      attribs = user_record_name_alternatives(attribs)
      check_critical_attribute( attribs, :record_name )

      attribs[:values] = attribs[:values] || attribs[:im_handle]
      attribs[:values] = attribs[:values] || attribs[:imhandle]
      attribs[:values] = attribs[:values] || attribs[:handle]
      attribs[:values] = attribs[:values] || attribs[:chat]
      attribs[:values] = attribs[:values] || attribs[:im]

      answer = []
      Array(attribs[:values]).each_with_index do |value, index|
        attribs[:value] = value
        case index
        when 0
          answer << user_create_chat(attribs, dir_info)
        else
          answer << user_append_chat(attribs, dir_info)
        end
      end
      attribs[:value] = nil
      return answer  unless attribs[:values].nil? or attribs[:values].empty?
      raise ArgumentError, "values: '#{attribs[:values].inspect}' invalid, value_name: :chats"
    end
first  - /usr/bin/dscl -u diradmin -P A-B1g-S3cret /LDAPv3/127.0.0.1 -create /Users/$USER apple-imhandle "$VALUE"
 others - /usr/bin/dscl -u diradmin -P A-B1g-S3cret /LDAPv3/127.0.0.1 -append /Users/$USER apple-imhandle "$VALUE"
 /usr/bin/dscl -u diradmin -P A-B1g-S3cret /LDAPv3/127.0.0.1 -create /Users/$USER apple-imhandle "AIM:created: $CREATE"
 /usr/bin/dscl -u diradmin -P A-B1g-S3cret /LDAPv3/127.0.0.1 -append /Users/$USER apple-imhandle "ICQ:start: $START"
 /usr/bin/dscl -u diradmin -P A-B1g-S3cret /LDAPv3/127.0.0.1 -append /Users/$USER apple-imhandle "MSN:end: $END"