summaryrefslogtreecommitdiff
path: root/source3/auth/proto.h
diff options
context:
space:
mode:
authorKristján Valur <kristjan@rvx.is>2019-03-12 09:33:15 +0000
committerAndrew Bartlett <abartlet@samba.org>2019-04-02 02:12:48 +0000
commit92c726dc7a83834ee0e49d83e676b02f7687f5cd (patch)
tree23e855cb6d90b55b62b7cea8aa3c2b670d45dc32 /source3/auth/proto.h
parent959a4837b54a4c504930fecaa0648ae4e586577b (diff)
downloadsamba-92c726dc7a83834ee0e49d83e676b02f7687f5cd.tar.gz
make some auth functions return an NTSTATUS like other similar functions for better diagnostics.
Signed-off-by: Kristján Valur <kristjan@rvx.is> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Apr 2 02:12:48 UTC 2019 on sn-devel-144
Diffstat (limited to 'source3/auth/proto.h')
-rw-r--r--source3/auth/proto.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/auth/proto.h b/source3/auth/proto.h
index 75cf1e6724f..a96ff6e2582 100644
--- a/source3/auth/proto.h
+++ b/source3/auth/proto.h
@@ -383,14 +383,15 @@ NTSTATUS pass_check(const struct passwd *pass,
bool nt_token_check_sid ( const struct dom_sid *sid, const struct security_token *token );
bool nt_token_check_domain_rid( struct security_token *token, uint32_t rid );
-struct security_token *get_root_nt_token( void );
+NTSTATUS get_root_nt_token( struct security_token **token );
NTSTATUS add_aliases(const struct dom_sid *domain_sid,
struct security_token *token);
-struct security_token *create_local_nt_token(TALLOC_CTX *mem_ctx,
+NTSTATUS create_local_nt_token(TALLOC_CTX *mem_ctx,
const struct dom_sid *user_sid,
bool is_guest,
int num_groupsids,
- const struct dom_sid *groupsids);
+ const struct dom_sid *groupsids,
+ struct security_token **token);
NTSTATUS finalize_local_nt_token(struct security_token *result,
uint32_t session_info_flags);
NTSTATUS get_user_sid_info3_and_extra(const struct netr_SamInfo3 *info3,