another net rpc vampire aesthetics patch

Ronan Waide waider at waider.ie
Mon Mar 24 22:34:11 GMT 2003


There's a bunch of essentially duplicated code in net_rpc_samsync
which should probably be merged into a single block, but anyway. The
previous patch added more useful text for net rpc samdump. This does
likewise for net rpc vampire.

Also, I notice basic indent seems to be set to 5 rather than 4 in this
file. That explains my dubious indentation :)

Cheers,
Waider.

Index: utils/net_rpc_samsync.c
===================================================================
RCS file: /cvsroot/samba/source/utils/net_rpc_samsync.c,v
retrieving revision 1.19
diff -u -r1.19 net_rpc_samsync.c
--- utils/net_rpc_samsync.c     23 Mar 2003 01:33:13 -0000      1.19
+++ utils/net_rpc_samsync.c     24 Mar 2003 22:28:22 -0000
@@ -748,6 +748,9 @@
                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;
@@ -770,7 +773,20 @@
                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,

-- 
waider at waider.ie / Yes, it /is/ very personal of me.
"The majority were fairly uncategorizable freaks, but you could tell that even
 the most normal-looking people there were still the weirdest people at their
 day job." - Jamie Zawinski


More information about the samba-technical mailing list