Changeset 102534 in vbox for trunk/src/VBox/Main/testcase
- Timestamp:
- Dec 8, 2023 11:06:41 AM (14 months ago)
- Location:
- trunk/src/VBox/Main/testcase
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/testcase/tstUnattendedScript-1.expected
r102416 r102534 31 31 01=vboxuser 32 32 02=changeme 33 03= changeme33 03=adminpw 34 34 04=VBox & VBox; 35 35 05=911 … … 75 75 01=vboxuser 76 76 02=changeme 77 03= changeme77 03=adminpw 78 78 04=VBox & VBox; 79 79 05=911 … … 119 119 01=vboxuser 120 120 02=changeme 121 03= changeme121 03=adminpw 122 122 04='VBox & VBox;' 123 123 05=911 … … 163 163 01=vboxuser 164 164 02=changeme 165 03= changeme165 03=adminpw 166 166 04='VBox & VBox;' 167 167 05=911 … … 207 207 01=vboxuser 208 208 02=changeme 209 03= changeme209 03=adminpw 210 210 04=VBox & VBox; 211 211 05=911 … … 251 251 01=vboxuser 252 252 02=changeme 253 03= changeme253 03=adminpw 254 254 04=VBox & VBox; 255 255 05=911 … … 295 295 01=vboxuser 296 296 02=changeme 297 03= changeme297 03=adminpw 298 298 04=VBox & VBox; 299 299 05=911 … … 339 339 01=vboxuser 340 340 02=changeme 341 03= changeme341 03=adminpw 342 342 04=VBox & VBox; 343 343 05=911 … … 384 384 385 385 /* 386 * SHAcrypt 512. Contains the word "changeme" as hashed results.386 * SHAcrypt 512. Contains the word "changeme" (01) and "adminpw" (02) as hashed results. 387 387 * Note: This uses a fixed salt ("testcase123") within UnattendedScript.cpp, so that we can compare the outputs. 388 388 */ 389 389 01=$6$testcase123$AtdiLq2Dp.l/NRkh9/9Ai6Eapd6d0bGxCOmqErpuGa4unRjiohzK5YERWtLHKvAYx26X0YhIrgSFRimkaLToI1 390 02=$6$testcase123$ AtdiLq2Dp.l/NRkh9/9Ai6Eapd6d0bGxCOmqErpuGa4unRjiohzK5YERWtLHKvAYx26X0YhIrgSFRimkaLToI1391 390 02=$6$testcase123$.ul/vC02q6oasrgQH/gqtOwHCo0jALPhIY63uypm0Mb2kJeDT0yedResX/mMNVZkm0fuMj24tpxs9gMAm7sEC0 391 -
trunk/src/VBox/Main/testcase/tstUnattendedScript-1.template
r102416 r102534 384 384 385 385 /* 386 * SHAcrypt 512. Contains the word "changeme" as hashed results.386 * SHAcrypt 512. Contains the word "changeme" (01) and "adminpw" (02) as hashed results. 387 387 * Note: This uses a fixed salt ("testcase123") within UnattendedScript.cpp, so that we can compare the outputs. 388 388 */ -
trunk/src/VBox/Main/testcase/tstUnattendedScript.cpp
r102381 r102534 59 59 { 60 60 mStrUser = "vboxuser"; 61 mStrPassword = "changeme"; 61 mStrUserPassword = "changeme"; 62 mStrAdminPassword = "adminpw"; 62 63 mStrFullUserName = "VBox & VBox;"; 63 64 mStrProductKey = "911"; … … 168 169 } 169 170 170 HRESULT Unattended::get Password(com::Utf8Str &password)171 HRESULT Unattended::getUserPassword(com::Utf8Str &password) 171 172 { 172 173 RT_NOREF(password); … … 174 175 } 175 176 176 HRESULT Unattended::setPassword(const com::Utf8Str &password) 177 HRESULT Unattended::setUserPassword(const com::Utf8Str &password) 178 { 179 RT_NOREF(password); 180 return E_NOTIMPL; 181 } 182 183 HRESULT Unattended::getAdminPassword(com::Utf8Str &password) 184 { 185 RT_NOREF(password); 186 return E_NOTIMPL; 187 } 188 189 HRESULT Unattended::setAdminPassword(const com::Utf8Str &password) 177 190 { 178 191 RT_NOREF(password); … … 544 557 } 545 558 546 Utf8Str const &Unattended::i_getPassword() const 547 { 548 return mStrPassword; 559 Utf8Str const &Unattended::i_getUserPassword() const 560 { 561 return mStrUserPassword; 562 } 563 564 Utf8Str const &Unattended::i_getAdminPassword() const 565 { 566 /* If no Administrator / 'root' password is being set, the user password will be used instead. 567 * Also see API documentation. */ 568 return mStrAdminPassword.isEmpty() ? mStrUserPassword : mStrAdminPassword; 549 569 } 550 570
Note:
See TracChangeset
for help on using the changeset viewer.