mirror of
https://github.com/samba-team/samba.git
synced 2025-11-11 00:23:51 +03:00
r1138: allow for a user in no groups
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
fdf6e4169d
commit
f9c1e12594
@@ -335,7 +335,8 @@ static NTSTATUS check_sam_security(const struct auth_context *auth_context,
|
||||
"(&(member=%s)(sAMAccountType=*))",
|
||||
dn);
|
||||
|
||||
if (!(groupSIDs = talloc_realloc_p((*server_info)->mem_ctx, groupSIDs,
|
||||
if (group_ret > 0 &&
|
||||
!(groupSIDs = talloc_realloc_p((*server_info)->mem_ctx, groupSIDs,
|
||||
struct dom_sid *, group_ret))) {
|
||||
talloc_destroy((*server_info)->mem_ctx);
|
||||
samdb_close(sam_ctx);
|
||||
|
||||
Reference in New Issue
Block a user