anchor.diff:  -spec saslauthd_authenticate(rbac_user_id(), rbac_password()) ->
                                       false | {ok, rbac_identity()} | {error, term()}.
   saslauthd_authenticate(Username, Password) ->
  -    case ns_node_disco:couchdb_node() == node() of
  +    case saslauthd_auth:authenticate(Username, Password) of
  +        true ->
  +            {ok, {Username, saslauthd}};
           false ->
  -            case saslauthd_auth:authenticate(Username, Password) of
  -                true ->
  -                    {ok, {Username, saslauthd}};
  -                false ->
  -                    false;
  -                {error, Error} ->
  -                    {error, Error}
  -            end;
  -        true ->
  -            rpc:call(ns_node_disco:ns_server_node(), ?MODULE, saslauthd_authenticate, [Username, Password])
  +            false;
  +        {error, Error} ->
  +            {error, Error}
       end.
   
   -spec verify_login_creds(rbac_user_id(), rbac_password()) ->
  
positive.code:          verify_local_token/1]).
  
  %% rpc from ns_couchdb node
  -export([authenticate/1,
           saslauthd_authenticate/2]).
  
  %% External API
  
  
negative.code:                                 _ ->
                                      undefined
                              end,
                      {allowed, Identity, Token};
                  Other ->
                      Other
              end
  