anchor.diff:  bind_reply(_From, [],_MessageID) ->
       invalidCredentials;
   bind_reply(From, [BindResult],_MessageID) when is_list(BindResult) ->
  -    BindDN = bitstring_to_list(object_get("dn", BindResult)),
  +    BindDN = bitstring_to_list(ldap_obj:get("dn", BindResult)),
       ldap_fsm:set_bind(From, BindDN),
       success.
   
  
positive.code: 	[_Entry] -> entryAlreadyExists;
  	[] ->
  	    Entry = lists:map(fun(A) -> attribute_to_item(A) end, Attrs),
  	    AddDN = object_insert(<<"dn">>, DN, Entry),
  	    NewEntry = object_insert(<<"_rdn">>, rdn(DN), AddDN),	    
  	    Response = emongo:insert_sync(eds, ?COLL, NewEntry),
  	    parse_response(Response)
      end.
  
negative.code: %% @doc Apply ModifyRequest change atoms to an object
  modify_apply({'ModifyRequest_changes_SEQOF', add, Change}, Entry) ->
      {Key, Value} = attribute_to_item(Change),
      ldap_obj:insert(Key, Value, Entry);
  modify_apply({'ModifyRequest_changes_SEQOF', replace, Change}, Entry) ->
      {Key, Value} = attribute_to_item(Change),
      ldap_obj:modify(Key, Value, Entry);
  modify_apply({'ModifyRequest_changes_SEQOF', delete, Change}, Entry) ->
      {Key,_Value} = attribute_to_item(Change),
      ldap_obj:delete(Key, Entry).
  
  %% @doc Parse eMongo response code
  parse_response([Response]) ->
  