Changeset 740 for vendor/current/source3/utils/net.c
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/utils/net.c
r427 r740 42 42 43 43 #include "includes.h" 44 #include "popt_common.h" 44 45 #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" 47 51 48 52 #ifdef WITH_FAKE_KASERVER … … 232 236 static int net_getlocalsid(struct net_context *c, int argc, const char **argv) 233 237 { 234 DOM_SIDsid;238 struct dom_sid sid; 235 239 const char *name; 236 240 fstring sid_str; … … 272 276 static int net_setlocalsid(struct net_context *c, int argc, const char **argv) 273 277 { 274 DOM_SIDsid;278 struct dom_sid sid; 275 279 276 280 if ( (argc != 1) … … 293 297 static int net_setdomainsid(struct net_context *c, int argc, const char **argv) 294 298 { 295 DOM_SIDsid;299 struct dom_sid sid; 296 300 297 301 if ( (argc != 1) … … 314 318 static int net_getdomainsid(struct net_context *c, int argc, const char **argv) 315 319 { 316 DOM_SIDdomain_sid;320 struct dom_sid domain_sid; 317 321 fstring sid_str; 318 322 … … 668 672 net_maxrid, 669 673 NET_TRANSPORT_LOCAL, 670 N_("Display the maximu lRID currently used"),674 N_("Display the maximum RID currently used"), 671 675 N_(" net maxrid") 672 676 }, … … 719 723 N_(" Use 'net help eventlog' to get more information about " 720 724 "'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.") 721 740 }, 722 741 … … 797 816 {"single-obj-repl", 0, POPT_ARG_NONE, &c->opt_single_obj_repl}, 798 817 {"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}, 800 823 POPT_COMMON_SAMBA 801 824 { 0, 0, 0, 0} … … 804 827 zero_sockaddr(&c->opt_dest_ip); 805 828 829 setup_logging(argv[0], DEBUG_STDERR); 830 806 831 load_case_tables(); 807 832 808 833 setlocale(LC_ALL, ""); 809 834 #if defined(HAVE_BINDTEXTDOMAIN) 810 bindtextdomain(MODULE_NAME, dyn_LOCALEDIR);835 bindtextdomain(MODULE_NAME, get_dyn_LOCALEDIR()); 811 836 #endif 812 837 #if defined(HAVE_TEXTDOMAIN) … … 815 840 816 841 /* 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"); 819 843 c->private_data = net_func; 820 844 … … 855 879 } 856 880 857 /*858 * Don't load debug level from smb.conf. It should be859 * set by cmdline arg or remain default (0)860 */861 AllowDebugChange = false;862 881 lp_load(get_dyn_CONFIGFILE(), true, false, false, true); 863 882 … … 898 917 899 918 /* this makes sure that when we do things like call scripts, 900 that it won't assert bec ouse we are not root */919 that it won't assert because we are not root */ 901 920 sec_init(); 902 921 … … 912 931 } 913 932 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 914 939 rc = net_run_function(c, argc_new-1, argv_new+1, "net", net_func); 915 940
Note:
See TracChangeset
for help on using the changeset viewer.