def pwpolicy(params, dir_info)
      check_critical_attribute( params, :record_name )
      cmd_params = tidy_attribs(params)

      build_pwpolicy_command( cmd_params, dir_info )
    end
def pwpolicy(params, dir_info)
      check_critical_attribute( params, :record_name )
      cmd_params = tidy_attribs(params)

      build_pwpolicy_command( cmd_params, dir_info )
    end
builds the pwpolicy commands (after checking parameters)
 @attribs [Hash] - required - :record_name (the resource/user/group to affect), attribute: (resource attribute to change), value: (value to add to attribute)
 @dir_info [Hash] - usually configured in the connection initializer and then passed to pwpolicy to build command correctly