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:
parent
893fc5abbe
commit
fc37c7327d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user