VirtualBox

Ignore:
Timestamp:
Jul 19, 2010 11:32:16 AM (14 years ago)
Author:
vboxsync
Message:

Pass RDP credentials to the guest only if there are no logged in users (xTracker 4514)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r30899 r30907  
    887887    if (SUCCEEDED(hrc) && value == "1")
    888888    {
    889         fProvideGuestCredentials = TRUE;
     889        /* Provide credentials only if there are no logged in users. */
     890        Bstr noLoggedInUsersValue;
     891        ULONG64 ul64Timestamp = 0;
     892        Bstr flags;
     893
     894        hrc = getGuestProperty(Bstr("/VirtualBox/GuestInfo/OS/NoLoggedInUsers"),
     895                               noLoggedInUsersValue.asOutParam(), &ul64Timestamp, flags.asOutParam());
     896
     897        if (SUCCEEDED(hrc) && noLoggedInUsersValue != Bstr("false"))
     898        {
     899            fProvideGuestCredentials = TRUE;
     900        }
    890901    }
    891902
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