diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/auth/token_util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c index 2c11fa5b17..7514d867ad 100644 --- a/source3/auth/token_util.c +++ b/source3/auth/token_util.c @@ -388,6 +388,8 @@ struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx, if (lp_winbind_nested_groups()) { + become_root(); + /* Now add the aliases. First the one from our local SAM */ status = add_aliases(get_global_sam_sid(), result); @@ -405,6 +407,8 @@ struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx, TALLOC_FREE(result); return NULL; } + + unbecome_root(); } |