*id_to_*id call reshape to return NTSTATUS errors
[ira/wip.git] / source3 / auth / auth_rhosts.c
index 0861d9747bdb5625b7d138e1c265277bba07ff2c..341108311611e5c06b8fcc8426ed5c8ac927c4c2 100644 (file)
@@ -139,7 +139,7 @@ static BOOL check_hosts_equiv(SAM_ACCOUNT *account)
        char *fname = NULL;
 
        fname = lp_hosts_equiv();
        char *fname = NULL;
 
        fname = lp_hosts_equiv();
-       if (!sid_to_uid(pdb_get_user_sid(account), &uid))
+       if (NT_STATUS_IS_ERR(sid_to_uid(pdb_get_user_sid(account), &uid)))
                return False;
 
        /* note: don't allow hosts.equiv on root */
                return False;
 
        /* note: don't allow hosts.equiv on root */