diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-02-13 13:14:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:48:08 -0500 |
commit | 41771deb299d23bb0aabb15d8f1e0858a6ea8d0b (patch) | |
tree | ec5f885872fed5e1d28be7c27fa083157fec5858 | |
parent | f14c66ca3046d6561779d4cb1a53ea7b6d72d535 (diff) | |
download | samba-41771deb299d23bb0aabb15d8f1e0858a6ea8d0b.tar.gz samba-41771deb299d23bb0aabb15d8f1e0858a6ea8d0b.tar.bz2 samba-41771deb299d23bb0aabb15d8f1e0858a6ea8d0b.zip |
r21314: add more usefull debug output
metze
(This used to be commit a246e4bbaaab6f98f50a3c28b47d2c541af7b44a)
-rw-r--r-- | source4/auth/credentials/credentials_files.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/auth/credentials/credentials_files.c b/source4/auth/credentials/credentials_files.c index 006f242de9..2978fe16f8 100644 --- a/source4/auth/credentials/credentials_files.c +++ b/source4/auth/credentials/credentials_files.c @@ -226,15 +226,15 @@ NTSTATUS cli_credentials_set_secrets(struct cli_credentials *cred, &msgs, attrs, "%s", filter); if (ldb_ret == 0) { - DEBUG(1, ("Could not find entry to match filter: %s\n", - filter)); + DEBUG(1, ("Could not find entry to match filter: '%s' base: '%s'\n", + filter, base)); /* set anonymous as the fallback, if the machine account won't work */ cli_credentials_set_anonymous(cred); talloc_free(mem_ctx); return NT_STATUS_CANT_ACCESS_DOMAIN_INFO; } else if (ldb_ret != 1) { - DEBUG(1, ("Found more than one (%d) entry to match filter: %s\n", - ldb_ret, filter)); + DEBUG(1, ("Found more than one (%d) entry to match filter: '%s' base: '%s'\n", + ldb_ret, filter, base)); /* set anonymous as the fallback, if the machine account won't work */ cli_credentials_set_anonymous(cred); talloc_free(mem_ctx); @@ -247,8 +247,8 @@ NTSTATUS cli_credentials_set_secrets(struct cli_credentials *cred, machine_account = ldb_msg_find_attr_as_string(msgs[0], "samAccountName", NULL); if (!machine_account) { - DEBUG(1, ("Could not find 'samAccountName' in join record to domain: %s\n", - cli_credentials_get_domain(cred))); + DEBUG(1, ("Could not find 'samAccountName' in join record to domain: %s: filter: '%s' base: '%s'\n", + cli_credentials_get_domain(cred), filter, base)); /* set anonymous as the fallback, if the machine account won't work */ cli_credentials_set_anonymous(cred); talloc_free(mem_ctx); |