]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
idmap_adex: Add log messages to dc_add_domain for easier debugging.
authorGerald (Jerry) Carter <jerry@samba.org>
Mon, 6 Oct 2008 16:34:45 +0000 (11:34 -0500)
committerGerald (Jerry) Carter <jerry@samba.org>
Mon, 6 Oct 2008 19:10:03 +0000 (14:10 -0500)
Part of continue work on BUG 5806.

source3/winbindd/idmap_adex/domain_util.c

index ab31ccef7a4af59bb4d7947a950820cb3bb1f83b..6851503cc8b7c647d5ea9625647a276e21d44bf1 100644 (file)
@@ -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);