summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index bdefb71d3a..a27025fc8d 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -886,8 +886,9 @@ NTSTATUS create_token_from_username(TALLOC_CTX *mem_ctx, const char *username,
&group_sids, &gids,
&num_group_sids);
if (!NT_STATUS_IS_OK(result)) {
- DEBUG(10, ("enum_group_memberships failed for %s\n",
- username));
+ DEBUG(1, ("enum_group_memberships failed for %s (%s): "
+ "%s\n", username, sid_string_dbg(&user_sid),
+ nt_errstr(result)));
DEBUGADD(1, ("Fall back to unix user %s\n", username));
goto unix_user;
}