VirtualBox

Changeset 67896 in vbox


Ignore:
Timestamp:
Jul 11, 2017 7:57:11 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116868
Message:

IUnattended: Dropped the (VM) 'group' attribute as it had no perceivable purpose. Added a fullUserName attribute for setting the display name corresponding to 'user' when supported.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r67879 r67896  
    12751275    const char *pszUser              = NULL;
    12761276    const char *pszPassword          = NULL;
    1277     const char *pszGroup             = NULL;
     1277    const char *pszFullUserName      = NULL;
    12781278    const char *pszProductKey        = NULL;
    12791279    const char *pszAdditionsIsoPath  = NULL;
     
    12971297        { "--user",                 'u', RTGETOPT_REQ_STRING },
    12981298        { "--password",             'p', RTGETOPT_REQ_STRING },
    1299         { "--group",                'g', RTGETOPT_REQ_STRING },
     1299        { "--full-user-name",       'U', RTGETOPT_REQ_STRING },
    13001300        { "--key",                  'k', RTGETOPT_REQ_STRING },
    13011301        { "--install-additions",    'A', RTGETOPT_REQ_NOTHING },
     
    13381338                break;
    13391339
    1340             case 'g':   // --group
    1341                 pszGroup = ValueUnion.psz;
     1340            case 'U':   // --full-user-name
     1341                pszFullUserName = ValueUnion.psz;
    13421342                break;
    13431343
     
    14501450        if (pszPassword)
    14511451            CHECK_ERROR_BREAK(unAttended, COMSETTER(Password)(Bstr(pszPassword).raw()));
    1452         if (pszGroup)
    1453             CHECK_ERROR_BREAK(unAttended, COMSETTER(Group)(Bstr(pszGroup).raw()));
     1452        if (pszFullUserName)
     1453            CHECK_ERROR_BREAK(unAttended, COMSETTER(FullUserName)(Bstr(pszFullUserName).raw()));
    14541454        if (pszProductKey)
    14551455            CHECK_ERROR_BREAK(unAttended, COMSETTER(ProductKey)(Bstr(pszProductKey).raw()));
     
    15231523         * Retrieve and display the parameters actually used.
    15241524         */
    1525         Bstr bstrGroup;
    1526         CHECK_ERROR_BREAK(unAttended, COMGETTER(Group)(bstrGroup.asOutParam()));
    15271525        Bstr bstrAdditionsIsoPath;
    15281526        CHECK_ERROR_BREAK(unAttended, COMGETTER(AdditionsIsoPath)(bstrAdditionsIsoPath.asOutParam()));
     
    15441542                 " user:                  %ls\n"
    15451543                 " password:              %ls\n"
    1546                  " group:                 %ls\n"
    15471544                 " productKey:            %ls\n"
    15481545                 " image index:           %u\n"
     
    15531550                 bstrUser.raw(),
    15541551                 bstrPassword.raw(),
    1555                  bstrGroup.raw(),
    15561552                 bstrProductKey.raw(),
    15571553                 idxImageActual,
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r67895 r67896  
    37673767  <interface
    37683768    name="IUnattended" extends="$unknown"
    3769     uuid="2fb5b9e2-2fe6-4e60-e066-862fbafb1e9f"
     3769    uuid="41d87758-ec4a-495a-670a-35d9b1dff2a8"
    37703770    wsmap="managed"
    37713771    reservedMethods="4" reservedAttributes="16"
     
    37803780    </desc>
    37813781
    3782     <attribute name="group" type="wstring">
    3783       <desc>
    3784         A group this VM belongs to.
    3785       </desc>
    3786     </attribute>
    3787 
    37883782    <attribute name="isoPath" type="wstring">
    37893783      <desc>
     
    37943788    <attribute name="user" type="wstring">
    37953789      <desc>
    3796         Assign an user name.
     3790        Assign an user login name.
    37973791      </desc>
    37983792    </attribute>
     
    38023796        Assign a password to the user. The password is the same for both
    38033797        normal user and for Administrator / 'root' accounts.
     3798      </desc>
     3799    </attribute>
     3800
     3801    <attribute name="fullUserName" type="wstring">
     3802      <desc>
     3803        The full name of the user.  This is optional and defaults to
     3804        <link to="IUnattended::user"/>.  Please note that not all guests picks
     3805        up this attribute.
    38043806      </desc>
    38053807    </attribute>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette