summaryrefslogtreecommitdiff
path: root/source4/lib/cmdline/popt_common.c
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2006-11-07 23:48:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:25:20 -0500
commite6a5fd44d01abdcaa082e5afc168a38848f35ccc (patch)
tree6a483c920518d937eeec43e9c8c4f59d8fb0ccff /source4/lib/cmdline/popt_common.c
parentdaa463070c12332938677136fa0f8ccf82853f71 (diff)
downloadsamba-e6a5fd44d01abdcaa082e5afc168a38848f35ccc.tar.gz
samba-e6a5fd44d01abdcaa082e5afc168a38848f35ccc.tar.bz2
samba-e6a5fd44d01abdcaa082e5afc168a38848f35ccc.zip
r19630: Support specifying the realm name from command line.
Useful when testing calls against windows servers with krb auth. rafal (This used to be commit 0725e2ddebde9c170340d0284a1573222caa2159)
Diffstat (limited to 'source4/lib/cmdline/popt_common.c')
-rw-r--r--source4/lib/cmdline/popt_common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/lib/cmdline/popt_common.c b/source4/lib/cmdline/popt_common.c
index 1457873399..25d1cd6546 100644
--- a/source4/lib/cmdline/popt_common.c
+++ b/source4/lib/cmdline/popt_common.c
@@ -32,6 +32,7 @@
* -l,--log-base
* -n,--netbios-name
* -W,--workgroup
+ * -r,--realm
* -i,--scope
*/
@@ -108,6 +109,10 @@ static void popt_common_callback(poptContext con,
case 'W':
lp_set_cmdline("workgroup", arg);
break;
+
+ case 'r':
+ lp_set_cmdline("realm", arg);
+ break;
case 'n':
lp_set_cmdline("netbios name", arg);
@@ -149,6 +154,7 @@ struct poptOption popt_common_connection[] = {
{ "socket-options", 'O', POPT_ARG_STRING, NULL, 'O', "socket options to use", "SOCKETOPTIONS" },
{ "netbiosname", 'n', POPT_ARG_STRING, NULL, 'n', "Primary netbios name", "NETBIOSNAME" },
{ "workgroup", 'W', POPT_ARG_STRING, NULL, 'W', "Set the workgroup name", "WORKGROUP" },
+ { "realm", 'r', POPT_ARG_STRING, NULL, 'r', "Set the realm name", "REALM" },
{ "scope", 'i', POPT_ARG_STRING, NULL, 'i', "Use this Netbios scope", "SCOPE" },
{ "maxprotocol", 'm', POPT_ARG_STRING, NULL, 'm', "Set max protocol level", "MAXPROTOCOL" },
{ NULL }