s3:net add option --db
authorGregor Beck <gbeck@sernet.de>
Tue, 8 Feb 2011 11:01:34 +0000 (12:01 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 9 Feb 2011 13:00:34 +0000 (14:00 +0100)
source3/utils/net.c
source3/utils/net.h

index 8415e7a81084b97ff6e6618a0712490190a10c97..965cd443f34ac4705a16d42a16879774134be42c 100644 (file)
@@ -813,7 +813,8 @@ static struct functable net_func[] = {
                {"force-full-repl", 0, POPT_ARG_NONE, &c->opt_force_full_repl},
                {"single-obj-repl", 0, POPT_ARG_NONE, &c->opt_single_obj_repl},
                {"clean-old-entries", 0, POPT_ARG_NONE, &c->opt_clean_old_entries},
-
+               /* Options for 'net idmap'*/
+               {"db", 0, POPT_ARG_STRING, &c->opt_db},
                POPT_COMMON_SAMBA
                { 0, 0, 0, 0}
        };
index d09d9905d7f64d959f2d69ea56fdcfa708a7ace7..cefbc4e87bf37190832d41c548077969204eb816 100644 (file)
@@ -73,6 +73,7 @@ struct net_context {
        int opt_ccache;
        int opt_single_obj_repl;
        int opt_clean_old_entries;
+       const char *opt_db;
 
        int opt_have_ip;
        struct sockaddr_storage opt_dest_ip;