svn commit: samba r19630 - in branches/SAMBA_4_0/source/lib/cmdline: .

mimir at samba.org mimir at samba.org
Tue Nov 7 23:48:03 GMT 2006


Author: mimir
Date: 2006-11-07 23:48:02 +0000 (Tue, 07 Nov 2006)
New Revision: 19630

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19630

Log:
Support specifying the realm name from command line.
Useful when testing calls against windows servers with krb auth.


rafal


Modified:
   branches/SAMBA_4_0/source/lib/cmdline/popt_common.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/cmdline/popt_common.c
===================================================================
--- branches/SAMBA_4_0/source/lib/cmdline/popt_common.c	2006-11-07 21:08:33 UTC (rev 19629)
+++ branches/SAMBA_4_0/source/lib/cmdline/popt_common.c	2006-11-07 23:48:02 UTC (rev 19630)
@@ -32,6 +32,7 @@
  *		-l,--log-base
  *		-n,--netbios-name
  *		-W,--workgroup
+ *		-r,--realm
  *		-i,--scope
  */
 
@@ -108,6 +109,10 @@
 	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 @@
 	{ "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 }



More information about the samba-cvs mailing list