1 #!/usr/bin/env smbscript
5 /* note: these require specifying a proper path in "js include" parameter */
6 libinclude("ejsnet/netusr.js");
7 libinclude("ejsnet/nethost.js");
9 function PrintNetHelp()
11 println("Usage: ejsnet.js <cmd> [options]");
16 var options = GetOptions(ARGV,
19 "POPT_COMMON_CREDENTIALS");
20 if (options == undefined) {
25 if (options.ARGV.length < 1) {
30 /* use command line creds if available */
31 var creds = options.get_credentials();
32 var ctx = NetContext(creds);
34 var cmd = options.ARGV[0];
36 UserManager(ctx, options);
38 } else if (cmd == "host") {
39 HostManager(ctx, options);