anchor.diff:      end.
   
   
  -set_clone_from(RowIndex, Cols) ->
  -    %% If CloneFrom is modified, do the cloning.
  -    case lists:keysearch(?usmUserCloneFrom, 1, Cols) of
  -	{value, {_Col, RowPointer}} ->
  -	    RowIndex2 = extract_row(RowPointer), % won't fail
  -	    CloneRow = snmp_generic:table_get_row(db(usmUserTable), RowIndex2,
  -						  foi(usmUserTable)),
  -	    AuthP = element(?usmUserAuthProtocol, CloneRow),
  -	    PrivP = element(?usmUserPrivProtocol, CloneRow),
  -	    AuthK = element(?usmUserAuthKey, CloneRow),
  -	    PrivK = element(?usmUserPrivKey, CloneRow),
  -	    SCols = [{?usmUserAuthProtocol, AuthP},
  -		     {?usmUserPrivProtocol, PrivP},
  -		     {?usmUserAuthKey, AuthK},
  -		     {?usmUserPrivKey, PrivK}],
  -	    case snmp_generic:table_set_elements(db(usmUserTable),
  -						 RowIndex,
  -						 SCols) of
  -		true -> ok;
  -		false -> {commitFailed, ?usmUserCloneFrom}
  -	    end;
  -	false ->
  -	    ok
  -    end.
  -
   set_auth_key_change(RowIndex, Cols) ->
       set_key_change(RowIndex, Cols, ?usmUserAuthKeyChange, auth).
   
  
positive.code:     Error.
  
  do_validate_is_set_ok(RowIndex, Cols) ->
      validate_clone_from(RowIndex, Cols),
      validate_auth_protocol(RowIndex, Cols),
      validate_auth_key_change(RowIndex, Cols),
      validate_own_auth_key_change(RowIndex, Cols),
      validate_priv_protocol(RowIndex, Cols),
      validate_priv_key_change(RowIndex, Cols),
      validate_own_priv_key_change(RowIndex, Cols),
      ok.
      
  pre_set(RowIndex, Cols) ->
      %% Possibly initialize the usmUserSecurityName and privacy keys
      case snmp_generic:table_row_exists(db(usmUserTable), RowIndex) of
  	true -> Cols;
  	false ->
  	    SecName = get_user_name(RowIndex),
  	    [{?usmUserSecurityName, SecName} | Cols] ++
  		[{?usmUserAuthKey, ""},
  		 {?usmUserPrivKey, ""}]
      end.
  
  validate_set({noError, 0}, RowIndex, Cols) ->
      %% Now, all is_set_ok validation steps have been executed.  So
      %% everything is ready for the set.
      set_clone_from(RowIndex, Cols),
      set_auth_key_change(RowIndex, Cols),
      set_own_auth_key_change(RowIndex, Cols),
      set_priv_key_change(RowIndex, Cols),
  
negative.code: %% Columns not accessible via SNMP
  -define(usmUserAuthKey, 14).
  -define(usmUserPrivKey, 15).
  -define(is_cloning, 16).
  
  
  %%%-----------------------------------------------------------------
  