svn commit: samba r13063 - in branches/SAMBA_4_0/source/setup: .
jelmer at samba.org
jelmer at samba.org
Sun Jan 22 08:32:34 GMT 2006
Author: jelmer
Date: 2006-01-22 08:32:34 +0000 (Sun, 22 Jan 2006)
New Revision: 13063
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13063
Log:
Add --realm option to upgrade
Modified:
branches/SAMBA_4_0/source/setup/upgrade
Changeset:
Modified: branches/SAMBA_4_0/source/setup/upgrade
===================================================================
--- branches/SAMBA_4_0/source/setup/upgrade 2006-01-22 08:31:04 UTC (rev 13062)
+++ branches/SAMBA_4_0/source/setup/upgrade 2006-01-22 08:32:34 UTC (rev 13063)
@@ -13,7 +13,9 @@
"POPT_COMMON_CREDENTIALS",
'verify',
'targetdir=s',
- 'quiet', 'blank');
+ 'quiet',
+ 'realm',
+ 'blank');
if (options == undefined) {
println("Failed to parse options");
@@ -44,11 +46,10 @@
provision [options] <libdir> <smbconf>
--targetdir=DIR Output to specified directory
- --quiet Be quiet
- --blank do not add users or groups, just the structure
+ --quiet Be quiet
+ --blank Do not add users or groups, just the structure
+ --realm=REALM Override realm to use
-You must provide at least a realm and domain
-
");
exit(1);
}
@@ -89,6 +90,11 @@
var creds = options.get_credentials();
var system_session = system_session();
var paths = provision_default_paths(subobj);
+
+if (options.realm != undefined) {
+ subobj.REALM = options.realm;
+}
+
provision(subobj, message, options.blank, paths, system_session, creds);
var ret = upgrade(subobj,samba3,message,paths, system_session, creds);
More information about the samba-cvs
mailing list