summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-03-31 10:44:21 +0000
committerVolker Lendecke <vlendec@samba.org>2003-03-31 10:44:21 +0000
commit52548753296d6929a663adeca2d981c3d5b27351 (patch)
treefc4504fcc3768980fa465e0874fa721ceb70ce5c
parent1e4aaa5a7210f6da9762bd12811841668d5fdc3f (diff)
downloadsamba-52548753296d6929a663adeca2d981c3d5b27351.tar.gz
samba-52548753296d6929a663adeca2d981c3d5b27351.tar.bz2
samba-52548753296d6929a663adeca2d981c3d5b27351.zip
Waider's cosmetic change to print out the database type when
downloading stuff. Volker (This used to be commit b86ea50fa6dae04adeef750cdbe606a292c1430a)
-rw-r--r--source3/utils/net_rpc_samsync.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c
index 33f4e4b915..e42c8f5637 100644
--- a/source3/utils/net_rpc_samsync.c
+++ b/source3/utils/net_rpc_samsync.c
@@ -750,6 +750,9 @@ fetch_sam_entry(SAM_DELTA_HDR *hdr_delta, SAM_DELTA_CTR *delta,
fetch_alias_mem(hdr_delta->target_rid,
&delta->als_mem_info, dom_sid);
break;
+ case SAM_DELTA_DOMAIN_INFO:
+ d_printf("SAMBA_DELTA_DOMAIN_INFO not handled\n");
+ break;
default:
d_printf("Unknown delta record type %d\n", hdr_delta->type);
break;
@@ -772,7 +775,20 @@ fetch_database(struct cli_state *cli, unsigned db_type, DOM_CRED *ret_creds,
return;
}
- d_printf("Fetching database %u\n", db_type);
+ switch( db_type ) {
+ case SAM_DATABASE_DOMAIN:
+ d_printf("Fetching DOMAIN database\n");
+ break;
+ case SAM_DATABASE_BUILTIN:
+ d_printf("Fetching BUILTIN database\n");
+ break;
+ case SAM_DATABASE_PRIVS:
+ d_printf("Fetching PRIVS databases\n");
+ break;
+ default:
+ d_printf("Fetching unknown database type %u\n", db_type );
+ break;
+ }
do {
result = cli_netlogon_sam_sync(cli, mem_ctx, ret_creds,