summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-03-31 10:47:26 +0000
committerVolker Lendecke <vlendec@samba.org>2003-03-31 10:47:26 +0000
commit32e12d4984fa866af83fa35576f4f57a521c5fa8 (patch)
tree26e5da793294c0fdf11e0bf39258ef5452e598a3
parent3c7df79c94cb225bd141c9ed3d8477e329f8bea6 (diff)
downloadsamba-32e12d4984fa866af83fa35576f4f57a521c5fa8.tar.gz
samba-32e12d4984fa866af83fa35576f4f57a521c5fa8.tar.bz2
samba-32e12d4984fa866af83fa35576f4f57a521c5fa8.zip
Waider's cosmetic change to print out the database type when
downloading stuff. Volker (This used to be commit 702d368a9af98d59775ebc3ed89774507397b7e3)
-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 acf085af82..9367404b35 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,