Changeset 68187 in vbox
- Timestamp:
- Jul 31, 2017 8:55:16 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
doc/manual/en_US/man_VBoxManage-unattended.xml (modified) (2 diffs)
-
src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/en_US/man_VBoxManage-unattended.xml
r68144 r68187 44 44 <arg>--user=<replaceable>login</replaceable></arg> 45 45 <arg>--password=<replaceable>password</replaceable></arg> 46 <arg>--password-file=<replaceable>file</replaceable></arg> 46 47 <arg>--full-user-name=<replaceable>name</replaceable></arg> 47 48 <arg>--key=<replaceable>product-key</replaceable></arg> … … 112 113 <varlistentry> 113 114 <term><option>--password=<replaceable>password</replaceable></option></term> 114 <listitem><para>The login password. (default: changeme)</para></listitem> 115 <listitem> 116 <para>The login password. This is used for the user given by <option>--user</option> as well as the 117 root/administrator user. (default: changeme)</para></listitem> 118 </varlistentry> 119 <varlistentry> 120 <term><option>--password-file=<replaceable>file</replaceable></option></term> 121 <listitem> 122 <para>Alternative to <option>--password</option> for providing the password. Special filename 123 <computeroutput>stdin</computeroutput> can be used to read the password from standard input.</para></listitem> 115 124 </varlistentry> 116 125 <varlistentry> -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r68153 r68187 1387 1387 { "--iso", 'i', RTGETOPT_REQ_STRING }, 1388 1388 { "--user", 'u', RTGETOPT_REQ_STRING }, 1389 { "--password", 'p', RTGETOPT_REQ_STRING }, /** @todo password file ++ */ 1389 { "--password", 'p', RTGETOPT_REQ_STRING }, 1390 { "--password-file", 'X', RTGETOPT_REQ_STRING }, 1390 1391 { "--full-user-name", 'U', RTGETOPT_REQ_STRING }, 1391 1392 { "--key", 'k', RTGETOPT_REQ_STRING }, … … 1446 1447 break; 1447 1448 1449 case 'X': // --password-file 1450 { 1451 Utf8Str strPassword; 1452 RTEXITCODE rcExit = readPasswordFile(ValueUnion.psz, &strPassword); 1453 if (rcExit != RTEXITCODE_SUCCESS) 1454 return rcExit; 1455 CHECK_ERROR2_RET(hrc, ptrUnattended, COMSETTER(Password)(Bstr(strPassword).raw()), RTEXITCODE_FAILURE); 1456 break; 1457 } 1458 1448 1459 case 'U': // --full-user-name 1449 1460 CHECK_ERROR2_RET(hrc, ptrUnattended, COMSETTER(FullUserName)(Bstr(ValueUnion.psz).raw()), RTEXITCODE_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.

