summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorGerald (Jerry) Carter <jerry@samba.org>2008-10-06 11:34:45 -0500
committerGerald (Jerry) Carter <jerry@samba.org>2008-10-06 14:10:03 -0500
commit338f658a5a300e21cc69b1a84ebbdc7d63262448 (patch)
tree1713a5d235237dbf18a901b8661c071bc92a281e /source3/winbindd
parent9e492b1ba2ccf2d7c62ef7295b33260687e3aeae (diff)
downloadsamba-338f658a5a300e21cc69b1a84ebbdc7d63262448.tar.gz
samba-338f658a5a300e21cc69b1a84ebbdc7d63262448.tar.bz2
samba-338f658a5a300e21cc69b1a84ebbdc7d63262448.zip
idmap_adex: Add log messages to dc_add_domain for easier debugging.
Part of continue work on BUG 5806.
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/idmap_adex/domain_util.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/winbindd/idmap_adex/domain_util.c b/source3/winbindd/idmap_adex/domain_util.c
index ab31ccef7a..6851503cc8 100644
--- a/source3/winbindd/idmap_adex/domain_util.c
+++ b/source3/winbindd/idmap_adex/domain_util.c
@@ -49,6 +49,12 @@ static NTSTATUS dc_add_domain(const char *domain)
NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
struct dc_info *dc = NULL;
+ if (!domain) {
+ return NT_STATUS_INVALID_PARAMETER;
+ }
+
+ DEBUG(10,("dc_add_domain: Attempting to add domain %s\n", domain));
+
/* Check for duplicates */
dc = dc_list_head();
@@ -73,6 +79,8 @@ static NTSTATUS dc_add_domain(const char *domain)
nt_status = NT_STATUS_OK;
+ DEBUG(5,("dc_add_domain: Successfully added %s\n", domain));
+
done:
if (!NT_STATUS_IS_OK(nt_status)) {
talloc_destroy(dc);