s3 auth: Make debug message louder and more useful
authorDan Sledz <dan.sledz@isilon.com>
Mon, 6 Apr 2009 01:12:10 +0000 (01:12 +0000)
committerTim Prouty <tprouty@samba.org>
Wed, 13 May 2009 00:13:40 +0000 (17:13 -0700)
source3/auth/auth_util.c

index bdefb71..a27025f 100644 (file)
@@ -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;
                }