1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3/include: add NT_STATUS_LOOKUP_ERR

Useful helper macro to check the return value of LSA and SAMR
translations.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12728

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2017-04-01 16:44:45 +02:00 committed by Jeremy Allison
parent 893fc5abbe
commit fc37c7327d

View File

@ -22,4 +22,8 @@ int init_lsa_ref_domain_list(TALLOC_CTX *mem_ctx,
const char *dom_name,
struct dom_sid *dom_sid);
#define NT_STATUS_LOOKUP_ERR(status) \
(!NT_STATUS_IS_OK(status) && \
!NT_STATUS_EQUAL(status, STATUS_SOME_UNMAPPED) && \
!NT_STATUS_EQUAL(status, NT_STATUS_NONE_MAPPED))
#endif