Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/utils/net.c

    r427 r740  
    4242
    4343#include "includes.h"
     44#include "popt_common.h"
    4445#include "utils/net.h"
    45 
    46 extern bool AllowDebugChange;
     46#include "secrets.h"
     47#include "lib/netapi/netapi.h"
     48#include "../libcli/security/security.h"
     49#include "passdb.h"
     50#include "messages.h"
    4751
    4852#ifdef WITH_FAKE_KASERVER
     
    232236static int net_getlocalsid(struct net_context *c, int argc, const char **argv)
    233237{
    234         DOM_SID sid;
     238        struct dom_sid sid;
    235239        const char *name;
    236240        fstring sid_str;
     
    272276static int net_setlocalsid(struct net_context *c, int argc, const char **argv)
    273277{
    274         DOM_SID sid;
     278        struct dom_sid sid;
    275279
    276280        if ( (argc != 1)
     
    293297static int net_setdomainsid(struct net_context *c, int argc, const char **argv)
    294298{
    295         DOM_SID sid;
     299        struct dom_sid sid;
    296300
    297301        if ( (argc != 1)
     
    314318static int net_getdomainsid(struct net_context *c, int argc, const char **argv)
    315319{
    316         DOM_SID domain_sid;
     320        struct dom_sid domain_sid;
    317321        fstring sid_str;
    318322
     
    668672                net_maxrid,
    669673                NET_TRANSPORT_LOCAL,
    670                 N_("Display the maximul RID currently used"),
     674                N_("Display the maximum RID currently used"),
    671675                N_("  net maxrid")
    672676        },
     
    719723                N_("  Use 'net help eventlog' to get more information about "
    720724                   "'net eventlog' commands.")
     725        },
     726        {       "printing",
     727                net_printing,
     728                NET_TRANSPORT_LOCAL,
     729                N_("Process tdb printer files"),
     730                N_("  Use 'net help printing' to get more information about "
     731                   "'net printing' commands.")
     732        },
     733
     734        {       "serverid",
     735                net_serverid,
     736                NET_TRANSPORT_LOCAL,
     737                N_("Manage the serverid tdb"),
     738                N_("  Use 'net help serverid' to get more information about "
     739                   "'net serverid' commands.")
    721740        },
    722741
     
    797816                {"single-obj-repl", 0, POPT_ARG_NONE, &c->opt_single_obj_repl},
    798817                {"clean-old-entries", 0, POPT_ARG_NONE, &c->opt_clean_old_entries},
    799 
     818                /* Options for 'net idmap'*/
     819                {"db", 0, POPT_ARG_STRING, &c->opt_db},
     820                {"lock", 0, POPT_ARG_NONE,   &c->opt_lock},
     821                {"auto", 'a', POPT_ARG_NONE,   &c->opt_auto},
     822                {"repair", 0, POPT_ARG_NONE,   &c->opt_repair},
    800823                POPT_COMMON_SAMBA
    801824                { 0, 0, 0, 0}
     
    804827        zero_sockaddr(&c->opt_dest_ip);
    805828
     829        setup_logging(argv[0], DEBUG_STDERR);
     830
    806831        load_case_tables();
    807832
    808833        setlocale(LC_ALL, "");
    809834#if defined(HAVE_BINDTEXTDOMAIN)
    810         bindtextdomain(MODULE_NAME, dyn_LOCALEDIR);
     835        bindtextdomain(MODULE_NAME, get_dyn_LOCALEDIR());
    811836#endif
    812837#if defined(HAVE_TEXTDOMAIN)
     
    815840
    816841        /* set default debug level to 0 regardless of what smb.conf sets */
    817         DEBUGLEVEL_CLASS[DBGC_ALL] = 0;
    818         dbf = x_stderr;
     842        lp_set_cmdline("log level", "0");
    819843        c->private_data = net_func;
    820844
     
    855879        }
    856880
    857         /*
    858          * Don't load debug level from smb.conf. It should be
    859          * set by cmdline arg or remain default (0)
    860          */
    861         AllowDebugChange = false;
    862881        lp_load(get_dyn_CONFIGFILE(), true, false, false, true);
    863882
     
    898917
    899918        /* this makes sure that when we do things like call scripts,
    900            that it won't assert becouse we are not root */
     919           that it won't assert because we are not root */
    901920        sec_init();
    902921
     
    912931        }
    913932
     933        /* Failing to init the msg_ctx isn't a fatal error. Only
     934           root-level things (joining/leaving domains etc.) will be denied. */
     935
     936        c->msg_ctx = messaging_init(c, procid_self(),
     937                                    event_context_init(c));
     938
    914939        rc = net_run_function(c, argc_new-1, argv_new+1, "net", net_func);
    915940
Note: See TracChangeset for help on using the changeset viewer.