1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

idmap_adex: Add log messages to dc_add_domain for easier debugging.

Part of continue work on BUG 5806.
This commit is contained in:
Gerald (Jerry) Carter 2008-10-06 11:34:45 -05:00
parent 9e492b1ba2
commit 338f658a5a

View 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);